Oolite
1.91.0.7659-250410-0031890
Toggle main menu visibility
Main Page
Topics
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
z
Enumerations
g
k
m
o
r
s
t
w
Enumerator
a
b
c
d
e
g
j
k
m
n
o
p
r
s
t
u
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
•
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Macros
Modules
Pages
Loading...
Searching...
No Matches
src
Core
OOPlanetDrawable.h
Go to the documentation of this file.
1
/*
2
3
OOPlanetDrawable.h
4
5
Draw a ball, such as might be used to represent a planet.
6
7
Oolite
8
Copyright (C) 2004-2013 Giles C Williams and contributors
9
10
This program is free software; you can redistribute it and/or
11
modify it under the terms of the GNU General Public License
12
as published by the Free Software Foundation; either version 2
13
of the License, or (at your option) any later version.
14
15
This program is distributed in the hope that it will be useful,
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
GNU General Public License for more details.
19
20
You should have received a copy of the GNU General Public License
21
along with this program; if not, write to the Free Software
22
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
23
MA 02110-1301, USA.
24
25
*/
26
27
#import "
OODrawable.h
"
28
#import "
OOMaths.h
"
29
30
@class
OOMaterial
;
31
32
33
@interface
OOPlanetDrawable
:
OODrawable
<NSCopying>
34
{
35
@private
36
OOMaterial
*
_material
;
37
BOOL
_isAtmosphere
;
38
float
_radius
;
39
OOMatrix
_transform
;
40
unsigned
_lod
;
41
}
42
43
+ (instancetype) planetWithTextureName:(NSString *)textureName radius:(
float
)radius;
44
+ (instancetype) atmosphereWithRadius:(
float
)radius;
45
46
- (id)
initAsAtmosphere
;
47
48
- (
OOMaterial
*)
material
;
49
- (void) setMaterial:(
OOMaterial
*)material;
50
51
- (NSString *)
textureName
;
52
- (void) setTextureName:(NSString *)textureName;
53
54
// Radius, in game metres.
55
- (float)
radius
;
56
- (void) setRadius:(
float
)radius;
57
58
// Level of detail, [0..1]. Granularity is implementation-defined.
59
- (float)
levelOfDetail
;
60
- (void) setLevelOfDetail:(
float
)lod;
61
- (void) calculateLevelOfDetailForViewDistance:(
float
)distance;
62
63
// depth-buffer hack
64
- (void)
renderTranslucentPartsOnOpaquePass
;
65
66
@end
OODrawable.h
OOMaths.h
OODrawable
Definition
OODrawable.h:37
OOMaterial
Definition
OOMaterial.h:43
OOPlanetDrawable
Definition
OOPlanetDrawable.h:35
-[OOPlanetDrawable textureName]
NSString * textureName()
-[OOPlanetDrawable radius]
float radius()
OOPlanetDrawable::_isAtmosphere
BOOL _isAtmosphere
Definition
OOPlanetDrawable.h:38
OOPlanetDrawable::_material
OOMaterial * _material
Definition
OOPlanetDrawable.h:37
-[OOPlanetDrawable renderTranslucentPartsOnOpaquePass]
void renderTranslucentPartsOnOpaquePass()
OOPlanetDrawable::_transform
OOMatrix _transform
Definition
OOPlanetDrawable.h:40
-[OOPlanetDrawable levelOfDetail]
float levelOfDetail()
-[OOPlanetDrawable initAsAtmosphere]
id initAsAtmosphere()
OOPlanetDrawable::_lod
unsigned _lod
Definition
OOPlanetDrawable.h:41
-[OOPlanetDrawable material]
OOMaterial * material()
OOPlanetDrawable::_radius
float _radius
Definition
OOPlanetDrawable.h:39
Generated by
1.13.2