![]() |
Oolite 1.91.0.7668-250429-8542c40
|
Instance Methods | |
(double) | - sqrtZeroDistance |
(void) | - drawModelWithVertexArraysAndSubdivision: |
(void) | - initialiseBaseVertexArray |
(void) | - initialiseBaseTerrainArray: |
(void) | - paintVertex:vi: |
(void) | - scaleVertices |
(id) | - initAsAtmosphereForPlanet:dictionary: |
(void) | - setTextureColorForPlanet:inSystem: |
(id) | - initMiniatureFromPlanet:withAlpha: |
(void) | - loadTexture: |
(OOTexture *) | - planetTextureWithInfo: |
(OOTexture *) | - cloudTextureWithCloudColor:cloudImpress:cloudBias: |
(void) | - deleteDisplayLists |
(void) | - setUseTexturedModel: |
![]() | |
(void) | - resetGraphicsState |
Definition at line 67 of file PlanetEntity.m.
- (OOTexture *) cloudTextureWithCloudColor: | (OOColor *) | cloudColor | |
cloudImpress: | (GLfloat) | cloud_impress | |
cloudBias: | (GLfloat) | cloud_bias |
Extends class PlanetEntity.
Definition at line 1585 of file PlanetEntity.m.
References fillRanNoiseBuffer(), kOOPixMapRGBA, nil, OOMakePixMap(), and OOTexture::textureWithGenerator:.
Referenced by initAsAtmosphereForPlanet:dictionary:.
- (void) deleteDisplayLists |
Extends class PlanetEntity.
Definition at line 1503 of file PlanetEntity.m.
References deleteDisplayLists, and MAX_SUBDIVIDE.
Referenced by PlanetEntity::dealloc, deleteDisplayLists, initMiniatureFromPlanet:withAlpha:, PlanetEntity::resetGraphicsState, and PlanetEntity::setUpPlanetFromTexture:.
- (void) drawModelWithVertexArraysAndSubdivision: | (int) | subdivide |
Extends class PlanetEntity.
Definition at line 1163 of file PlanetEntity.m.
References n_triangles, OOGL, and triangle_start.
Referenced by PlanetEntity::drawUnconditionally.
- (id) initAsAtmosphereForPlanet: | (PlanetEntity *) | planet | |
dictionary: | (NSDictionary *) | dict |
Extends class PlanetEntity.
Definition at line 200 of file PlanetEntity.m.
References ATMOSPHERE_DEPTH, CLEAR_SKY_ALPHA, CLOUD_ALPHA, PlanetEntity::cloudTextureWithCloudColor:cloudImpress:cloudBias:, Entity::collision_radius, OOColor::colorWithDescription:, OOColor::colorWithRed:green:blue:alpha:, currentRandomSeed(), gen_rnd_number(), OOColor::getRed:green:blue:alpha:, Entity::init, PlanetEntity::initialiseBaseTerrainArray:, PlanetEntity::initialiseBaseVertexArray, next_free_vertex, nil, OOLogERR, Entity::orientation, PLANET_MINIATURE_FACTOR, PlanetEntity::planet_type, PlanetEntity, POLAR_CLEAR_SKY_ALPHA, POLAR_CLOUD_ALPHA, Entity::position, ranrot_rand, RANROTGetFullSeed(), RANROTSetFullSeed(), OOGraphicsResetManager::registerClient:, PlanetEntity::rotationalVelocity, PlanetEntity::scaleVertices, Entity::setOwner:, setRandomSeed(), PlanetEntity::setUseTexturedModel:, OOGraphicsResetManager::sharedManager, STELLAR_TYPE_ATMOSPHERE, STELLAR_TYPE_MINIATURE, STELLAR_TYPE_NORMAL_PLANET, and vector_up_from_quaternion().
- (void) initialiseBaseTerrainArray: | (int) | percent_land |
Extends class PlanetEntity.
Definition at line 1364 of file PlanetEntity.m.
References base_terrain_array, base_vertex_array, baseVertexIndexForEdge(), gen_rnd_number(), PlanetEntity::isTextured, MAX_SUBDIVIDE, n_triangles, ranrot_rand, ranrot_srand(), RANROTGetFullSeed(), RANROTSetFullSeed(), and vertex_index_array.
Referenced by initAsAtmosphereForPlanet:dictionary:, PlanetEntity::initFromDictionary:withAtmosphere:andSeed:, and PlanetEntity::setUpPlanetFromTexture:.
- (void) initialiseBaseVertexArray |
Extends class PlanetEntity.
Definition at line 1211 of file PlanetEntity.m.
References base_vertex_array, baseVertexIndexForEdge(), initialiseBaseVertexArray, PlanetEntity::isTextured, kTexturedFaces, kTexturedVertices, kUntexturedFaces, kUntexturedVertices, MAX_SUBDIVIDE, MAX_TRI_INDICES, n_triangles, next_free_vertex, sEdgeToVertex, texture_uv_array, triangle_start, and vertex_index_array.
Referenced by initAsAtmosphereForPlanet:dictionary:, PlanetEntity::initFromDictionary:withAtmosphere:andSeed:, initialiseBaseVertexArray, and PlanetEntity::setUpPlanetFromTexture:.
- (id) initMiniatureFromPlanet: | (PlanetEntity *) | planet | |
withAlpha: | (float) | alpha |
Extends class PlanetEntity.
References deleteDisplayLists, and PlanetEntity.
- (void) loadTexture: | (NSDictionary *) | configuration |
Extends class PlanetEntity.
Definition at line 1535 of file PlanetEntity.m.
References nil, and OOTexture::textureWithConfiguration:extraOptions:.
Referenced by PlanetEntity::initFromDictionary:withAtmosphere:andSeed:, and PlanetEntity::setUpPlanetFromTexture:.
- (void) paintVertex: | (unsigned) | ||
vi: | (int) | seed |
Extends class PlanetEntity.
Definition at line 1438 of file PlanetEntity.m.
References base_terrain_array, base_vertex_array, nil, ranrot_rand, ranrot_srand(), RANROTGetFullSeed(), RANROTSetFullSeed(), and STELLAR_TYPE_ATMOSPHERE.
- (OOTexture *) planetTextureWithInfo: | (NSDictionary *) | info |
Extends class PlanetEntity.
Definition at line 1561 of file PlanetEntity.m.
References fillRanNoiseBuffer(), kOOPixMapRGBA, nil, OOMakePixMap(), and OOTexture::textureWithGenerator:.
Referenced by PlanetEntity::initFromDictionary:withAtmosphere:andSeed:.
- (void) scaleVertices |
Extends class PlanetEntity.
Definition at line 1488 of file PlanetEntity.m.
References base_vertex_array, next_free_vertex, scaleVertices, and texture_uv_array.
Referenced by initAsAtmosphereForPlanet:dictionary:, PlanetEntity::initFromDictionary:withAtmosphere:andSeed:, PlanetEntity::miniaturize, scaleVertices, and PlanetEntity::setUpPlanetFromTexture:.
- (void) setTextureColorForPlanet: | (BOOL) | isMain | |
inSystem: | (BOOL) | isLocal |
Extends class PlanetEntity.
Definition at line 1019 of file PlanetEntity.m.
References OOColor::blueComponent, OOColor::colorWithHue:saturation:brightness:alpha:, OOColor::greenComponent, PLAYER, OOColor::redComponent, ScanVectorFromString(), and UNIVERSE.
Referenced by PlanetEntity::initFromDictionary:withAtmosphere:andSeed:, and PlanetEntity::setUpPlanetFromTexture:.
- (void) setUseTexturedModel: | (BOOL) | flag |
Extends class PlanetEntity.
Definition at line 747 of file PlanetEntity.m.
References kTexturedVertices, and kUntexturedVertices.
Referenced by initAsAtmosphereForPlanet:dictionary:, PlanetEntity::initFromDictionary:withAtmosphere:andSeed:, and PlanetEntity::setUpPlanetFromTexture:.
- (double) sqrtZeroDistance |
Extends class PlanetEntity.
Definition at line 1151 of file PlanetEntity.m.
References sqrtZeroDistance.
Referenced by sqrtZeroDistance.