Oolite 1.91.0.7646-241128-10e222e
Loading...
Searching...
No Matches
OODrawable.m
Go to the documentation of this file.
1/*
2
3OODrawable.m
4
5
6Copyright (C) 2007-2013 Jens Ayton
7
8Permission is hereby granted, free of charge, to any person obtaining a copy
9of this software and associated documentation files (the "Software"), to deal
10in the Software without restriction, including without limitation the rights
11to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12copies of the Software, and to permit persons to whom the Software is
13furnished to do so, subject to the following conditions:
14
15The above copyright notice and this permission notice shall be included in all
16copies or substantial portions of the Software.
17
18THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24SOFTWARE.
25
26*/
27
28#import "OODrawable.h"
30
31
32@implementation OODrawable
33
35{
36
37}
38
39
41{
42
43}
44
45
46- (BOOL)hasOpaqueParts
47{
48 return NO;
49}
50
51
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
return nil
const BoundingBox kZeroBoundingBox
Definition OOVector.m:38
void renderTranslucentParts()
Definition OODrawable.m:40
GLfloat collisionRadius()
Definition OODrawable.m:58
void renderOpaqueParts()
Definition OODrawable.m:34
BOOL hasOpaqueParts()
Definition OODrawable.m:46
BOOL hasTranslucentParts()
Definition OODrawable.m:52
GLfloat maxDrawDistance()
Definition OODrawable.m:64
BoundingBox boundingBox()
Definition OODrawable.m:70
size_t totalSize()
Definition OODrawable.m:95
void dumpSelfState()
Definition OODrawable.m:82
NSSet * allTextures()
Definition OODrawable.m:89