Oolite
Loading...
Searching...
No Matches
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
@implementation
OODrawable
32
33
- (void)
renderOpaqueParts
34
{
35
}
36
37
- (void)
renderTranslucentParts
38
{
39
}
40
41
- (BOOL)
hasOpaqueParts
42
{
43
return
NO;
44
}
45
46
- (BOOL)
hasTranslucentParts
47
{
48
return
NO;
49
}
50
51
- (GLfloat)
collisionRadius
52
{
53
return
0.0f;
54
}
55
56
- (GLfloat)
maxDrawDistance
57
{
58
return
0.0f;
59
}
60
61
- (
BoundingBox
)
boundingBox
62
{
63
return
kZeroBoundingBox
;
64
}
65
66
- (void)setBindingTarget:(
id
<OOWeakReferenceSupport>)target
67
{
68
}
69
70
- (void)
dumpSelfState
71
{
72
}
73
74
#ifdef OO_DEBUG_MONITOR_ENABLED
75
- (NSSet*)allTextures
76
{
77
return
nil
;
78
}
79
80
- (size_t)totalSize
81
{
82
return
[
self
oo_objectSize];
83
}
84
#endif
85
86
@end
NSObjectOOExtensions.h
kZeroBoundingBox
const BoundingBox kZeroBoundingBox
Definition
OOVector.m:36
OODrawable.h
nil
return nil
Definition
OOProbabilitySet.m:393
OODrawable
Definition
OODrawable.h:36
-[OODrawable renderTranslucentParts]
void renderTranslucentParts()
Definition
OODrawable.m:37
-[OODrawable collisionRadius]
GLfloat collisionRadius()
Definition
OODrawable.m:51
-[OODrawable renderOpaqueParts]
void renderOpaqueParts()
Definition
OODrawable.m:33
-[OODrawable hasOpaqueParts]
BOOL hasOpaqueParts()
Definition
OODrawable.m:41
-[OODrawable hasTranslucentParts]
BOOL hasTranslucentParts()
Definition
OODrawable.m:46
-[OODrawable maxDrawDistance]
GLfloat maxDrawDistance()
Definition
OODrawable.m:56
-[OODrawable boundingBox]
BoundingBox boundingBox()
Definition
OODrawable.m:61
-[OODrawable dumpSelfState]
void dumpSelfState()
Definition
OODrawable.m:70
BoundingBox
Definition
OOBoundingBox.h:32
src
Core
OODrawable.m
Generated by
1.15.0