![]() |
Oolite 1.91.0.7650-250121-affa790
|
#include <OOExhaustPlumeEntity.h>
Class Methods | |
(id) | + exhaustForShip:withDefinition:andScale: |
(void) | + setUpTexture |
(OOTexture *) | + plumeTexture |
(void) | + resetGraphicsState |
Private Attributes | |
Vector | _exhaustScale |
OOHPScalar | _vertices [34 *3] |
GLfloat | _glVertices [34 *3] |
GLfloat | _exhaustBaseColors [34 *4] |
Frame | _track [kExhaustFrameCount] |
OOTimeAbsolute | _trackTime |
uint8_t | _nextFrame |
Definition at line 44 of file OOExhaustPlumeEntity.h.
|
implementation |
Reimplemented from Entity.
Definition at line 383 of file OOExhaustPlumeEntity.m.
References _exhaustBaseColors, _glVertices, _vertices, afttstr1, afttstr2, afttstr3, afttstr4, OOTexture::apply, Entity::isPlayer, OO_ENTER_OPENGL, OOGL, OOGLPopModelView(), OOGLPushModelView(), OOSetOpenGLState, OOVerifyOpenGLState, OPENGL_STATE_ADDITIVE_BLENDING, Entity::owner, pA, texture, tfan1, tstr1, tstr2, tstr3, tstr4, and UNIVERSE.
+ (id) exhaustForShip: | (ShipEntity *) | ship | |
withDefinition: | (NSArray *) | definition | |
andScale: | (float) | scale |
Definition at line 61 of file OOExhaustPlumeEntity.m.
Referenced by ShipEntity::setUpSubEntities.
|
implementation |
Reimplemented from Entity.
Definition at line 111 of file OOExhaustPlumeEntity.m.
References Entity::collision_radius, and findCollisionRadius.
Referenced by findCollisionRadius, and ShipEntity::frustumRadius.
Provided by category OOExhaustPlumeEntity(Private).
Definition at line 540 of file OOExhaustPlumeEntity.m.
References Frame::k, NEXT, Frame::orientation, Frame::position, PREV, Frame::timeframe, and vector_forward_from_quaternion().
Referenced by update:.
- (void) getJSClass: | (JSClass **) | outClass | |
andPrototype: | (JSObject **) | outPrototype |
Reimplemented from Entity.
Provided by category OOExhaustPlumeEntity(OOJavaScriptExtensions).
Definition at line 117 of file OOJSExhaustPlume.m.
- (id) initForShip: | (ShipEntity *) | ship | |
withDefinition: | (NSArray *) | definition | |
andScale: | (float) | scale |
Definition at line 67 of file OOExhaustPlumeEntity.m.
References count, Entity::init, nil, scale, Entity::setOwner:, Entity::setPosition:, and setScale:.
|
implementation |
Reimplemented from Entity.
Definition at line 105 of file OOExhaustPlumeEntity.m.
References isExhaust.
Referenced by isExhaust.
- (BOOL) isVisibleToScripts |
Reimplemented from Entity.
Provided by category OOExhaustPlumeEntity(OOJavaScriptExtensions).
Definition at line 129 of file OOJSExhaustPlume.m.
- (NSString *) oo_jsClassName |
Reimplemented from Entity.
Provided by category OOExhaustPlumeEntity(OOJavaScriptExtensions).
Definition at line 124 of file OOJSExhaustPlume.m.
+ (OOTexture *) plumeTexture |
Definition at line 653 of file OOExhaustPlumeEntity.m.
References nil, plumeTexture, setUpTexture, and sPlumeTexture.
Referenced by plumeTexture, and texture.
|
implementation |
Reimplemented from <OOSubEntity>.
Definition at line 619 of file OOExhaustPlumeEntity.m.
References _exhaustScale.
|
implementation |
Reimplemented from <OOSubEntity>.
Definition at line 625 of file OOExhaustPlumeEntity.m.
+ (void) resetGraphicsState |
Definition at line 660 of file OOExhaustPlumeEntity.m.
References nil, OOTexture::release, resetGraphicsState, and sPlumeTexture.
Referenced by resetGraphicsState.
- (void) resetPlume |
Definition at line 596 of file OOExhaustPlumeEntity.m.
References _nextFrame, _track, Entity::drawTransformationMatrix, kExhaustFrameCount, kIdentityQuaternion, kZeroVector, OOHPVectorMultiplyMatrix(), Entity::owner, Entity::position, and resetPlume.
Referenced by ShipEntity::resetExhaustPlumes, and resetPlume.
|
implementation |
Provided by category OOExhaustPlumeEntity(Private).
Definition at line 523 of file OOExhaustPlumeEntity.m.
References kExhaustFrameCount, Entity::normalOrientation, OOHPVectorMultiplyMatrix(), Entity::owner, OOExhaustPlumeEntity(Private)::saveToLastFrame, and ShipEntity::upVector.
Referenced by OOExhaustPlumeEntity(Private)::saveToLastFrame, and update:.
- (Vector) scale |
Definition at line 89 of file OOExhaustPlumeEntity.m.
References _exhaustScale, and scale.
Referenced by initForShip:withDefinition:andScale:, scale, and setScale:.
- (void) setScale: | (Vector) | scale |
Definition at line 95 of file OOExhaustPlumeEntity.m.
References _exhaustScale, and scale.
Referenced by ExhaustPlumeSetProperty(), and initForShip:withDefinition:andScale:.
+ (void) setUpTexture |
Definition at line 638 of file OOExhaustPlumeEntity.m.
References nil, OOGraphicsResetManager::registerClient:, setUpTexture, OOGraphicsResetManager::sharedManager, sPlumeTexture, and OOTexture::textureWithName:inFolder:options:anisotropy:lodBias:.
Referenced by plumeTexture, and setUpTexture.
- (OOTexture *) texture |
Definition at line 632 of file OOExhaustPlumeEntity.m.
References plumeTexture, and texture.
Referenced by drawSubEntityImmediate:translucent:, and texture.
|
implementation |
Reimplemented from Entity.
Definition at line 117 of file OOExhaustPlumeEntity.m.
References _exhaustBaseColors, _exhaustScale, _trackTime, _vertices, Entity::collision_radius, ShipEntity::damage, ShipEntity::exhaustEmissiveColor, EXPECT_NOT, ShipEntity::flightSpeed, ShipEntity::forwardVector, frameAtTime:fromFrame:, OOColor::getRed:green:blue:alpha:, Entity::isPlayer, Entity::isVisible, Frame::k, kFadeLevel1, kFadeLevel2, kFadeLevel3, kOverallAlpha, kScaleLevel1, kScaleLevel2, kScaleLevel3, kTimeStep, M_SQRT1_2, nil, Entity::normalOrientation, Entity::owner, Entity::position, Frame::position, randf(), ranrot_rand, ShipEntity::rightVector, saveToLastFrame, Entity::speed, ShipEntity::speedFactor, UNIVERSE, and ShipEntity::upVector.
|
private |
Definition at line 51 of file OOExhaustPlumeEntity.h.
Referenced by drawSubEntityImmediate:translucent:, and update:.
|
private |
Definition at line 48 of file OOExhaustPlumeEntity.h.
Referenced by rescaleBy:, scale, setScale:, and update:.
|
private |
Definition at line 50 of file OOExhaustPlumeEntity.h.
Referenced by drawSubEntityImmediate:translucent:.
|
private |
Definition at line 54 of file OOExhaustPlumeEntity.h.
Referenced by resetPlume.
|
private |
Definition at line 52 of file OOExhaustPlumeEntity.h.
Referenced by resetPlume.
|
private |
Definition at line 53 of file OOExhaustPlumeEntity.h.
Referenced by update:.
|
private |
Definition at line 49 of file OOExhaustPlumeEntity.h.
Referenced by drawSubEntityImmediate:translucent:, and update:.