Oolite
1.91.0.7644-241112-7f5034b
Loading...
Searching...
No Matches
src
Core
OODrawable.m
Go to the documentation of this file.
1
/*
2
3
OODrawable.m
4
5
6
Copyright (C) 2007-2013 Jens Ayton
7
8
Permission is hereby granted, free of charge, to any person obtaining a copy
9
of this software and associated documentation files (the "Software"), to deal
10
in the Software without restriction, including without limitation the rights
11
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
copies of the Software, and to permit persons to whom the Software is
13
furnished to do so, subject to the following conditions:
14
15
The above copyright notice and this permission notice shall be included in all
16
copies or substantial portions of the Software.
17
18
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
SOFTWARE.
25
26
*/
27
28
#import "
OODrawable.h
"
29
#import "
NSObjectOOExtensions.h
"
30
31
32
@implementation
OODrawable
33
34
- (void)
renderOpaqueParts
35
{
36
37
}
38
39
40
- (void)
renderTranslucentParts
41
{
42
43
}
44
45
46
- (BOOL)
hasOpaqueParts
47
{
48
return
NO;
49
}
50
51
52
- (BOOL)
hasTranslucentParts
53
{
54
return
NO;
55
}
56
57
58
- (GLfloat)
collisionRadius
59
{
60
return
0.0f;
61
}
62
63
64
- (GLfloat)
maxDrawDistance
65
{
66
return
0.0f;
67
}
68
69
70
- (BoundingBox)
boundingBox
71
{
72
return
kZeroBoundingBox
;
73
}
74
75
76
- (void)setBindingTarget:(
id
<OOWeakReferenceSupport>)target
77
{
78
79
}
80
81
82
- (void)
dumpSelfState
83
{
84
85
}
86
87
88
#ifndef NDEBUG
89
- (NSSet *)
allTextures
90
{
91
return
nil
;
92
}
93
94
95
- (size_t)
totalSize
96
{
97
return
[
self
oo_objectSize];
98
}
99
#endif
100
101
@end
NSObjectOOExtensions.h
OODrawable.h
nil
return nil
Definition
OOProbabilitySet.m:449
kZeroBoundingBox
const BoundingBox kZeroBoundingBox
Definition
OOVector.m:38
OODrawable
Definition
OODrawable.h:37
-[OODrawable renderTranslucentParts]
void renderTranslucentParts()
Definition
OODrawable.m:40
-[OODrawable collisionRadius]
GLfloat collisionRadius()
Definition
OODrawable.m:58
-[OODrawable renderOpaqueParts]
void renderOpaqueParts()
Definition
OODrawable.m:34
-[OODrawable hasOpaqueParts]
BOOL hasOpaqueParts()
Definition
OODrawable.m:46
-[OODrawable hasTranslucentParts]
BOOL hasTranslucentParts()
Definition
OODrawable.m:52
-[OODrawable maxDrawDistance]
GLfloat maxDrawDistance()
Definition
OODrawable.m:64
-[OODrawable boundingBox]
BoundingBox boundingBox()
Definition
OODrawable.m:70
-[OODrawable totalSize]
size_t totalSize()
Definition
OODrawable.m:95
-[OODrawable dumpSelfState]
void dumpSelfState()
Definition
OODrawable.m:82
-[OODrawable allTextures]
NSSet * allTextures()
Definition
OODrawable.m:89
Generated by
1.12.0