Oolite 1.91.0.7647-241230-5e1c242
All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Modules Pages
OOPlanetDrawable Class Reference

#include <OOPlanetDrawable.h>

+ Inheritance diagram for OOPlanetDrawable:
+ Collaboration diagram for OOPlanetDrawable:

Instance Methods

(id) - initAsAtmosphere
 
(OOMaterial *) - material
 
(void) - setMaterial:
 
(NSString *) - textureName
 
(void) - setTextureName:
 
(float) - radius
 
(void) - setRadius:
 
(float) - levelOfDetail
 
(void) - setLevelOfDetail:
 
(void) - calculateLevelOfDetailForViewDistance:
 
(void) - renderTranslucentPartsOnOpaquePass
 
- Instance Methods inherited from OODrawable
(void) - renderOpaqueParts
 
(void) - renderTranslucentParts
 
(BOOL) - hasOpaqueParts
 
(BOOL) - hasTranslucentParts
 
(GLfloat) - collisionRadius
 
(GLfloat) - maxDrawDistance
 
(BoundingBox) - boundingBox
 
(void) - setBindingTarget:
 
(void) - dumpSelfState
 
(NSSet *) - allTextures
 
(size_t) - totalSize
 

Class Methods

(instancetype) + planetWithTextureName:radius:
 
(instancetype) + atmosphereWithRadius:
 

Private Attributes

OOMaterial_material
 
BOOL _isAtmosphere
 
float _radius
 
OOMatrix _transform
 
unsigned _lod
 

Detailed Description

Definition at line 33 of file OOPlanetDrawable.h.

Method Documentation

◆ atmosphereWithRadius:

+ (instancetype) atmosphereWithRadius: (float) radius

References initAsAtmosphere.

+ Here is the call graph for this function:

◆ calculateLevelOfDetailForViewDistance:

- (void) calculateLevelOfDetailForViewDistance: (float) distance

References renderTranslucentPartsOnOpaquePass.

+ Here is the call graph for this function:

◆ initAsAtmosphere

- (id) initAsAtmosphere

References material.

Referenced by atmosphereWithRadius:.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ levelOfDetail

- (float) levelOfDetail

Referenced by setRadius:.

+ Here is the caller graph for this function:

◆ material

- (OOMaterial *) material

Referenced by initAsAtmosphere.

+ Here is the caller graph for this function:

◆ planetWithTextureName:radius:

+ (instancetype) planetWithTextureName: (NSString *) textureName
radius: (float) radius 

◆ radius

- (float) radius

Referenced by setTextureName:.

+ Here is the caller graph for this function:

◆ renderTranslucentPartsOnOpaquePass

- (void) renderTranslucentPartsOnOpaquePass

Referenced by calculateLevelOfDetailForViewDistance:.

+ Here is the caller graph for this function:

◆ setLevelOfDetail:

- (void) setLevelOfDetail: (float) lod

◆ setMaterial:

- (void) setMaterial: (OOMaterial *) material

References textureName.

+ Here is the call graph for this function:

◆ setRadius:

- (void) setRadius: (float) radius

References levelOfDetail.

+ Here is the call graph for this function:

◆ setTextureName:

- (void) setTextureName: (NSString *) textureName

References radius.

+ Here is the call graph for this function:

◆ textureName

- (NSString *) textureName

Referenced by setMaterial:.

+ Here is the caller graph for this function:

Member Data Documentation

◆ _isAtmosphere

- (BOOL) _isAtmosphere
private

Definition at line 38 of file OOPlanetDrawable.h.

◆ _lod

- (unsigned) _lod
private

Definition at line 41 of file OOPlanetDrawable.h.

◆ _material

- (OOMaterial*) _material
private

Definition at line 37 of file OOPlanetDrawable.h.

◆ _radius

- (float) _radius
private

Definition at line 39 of file OOPlanetDrawable.h.

◆ _transform

- (OOMatrix) _transform
private

Definition at line 40 of file OOPlanetDrawable.h.


The documentation for this class was generated from the following file: