Oolite 1.91.0.7658-250404-b1488af
All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Modules Pages
OOExhaustPlumeEntity.m File Reference
import "OOExhaustPlumeEntity.h"
import "OOCollectionExtractors.h"
import "ShipEntity.h"
import "Universe.h"
import "OOMacroOpenGL.h"
import "PlayerEntity.h"
import "MyOpenGLView.h"
import "OOTexture.h"
import "OOGraphicsResetManager.h"
+ Include dependency graph for OOExhaustPlumeEntity.m:

Go to the source code of this file.

Classes

category  OOExhaustPlumeEntity(Private)
 

Macros

#define kOverallAlpha   1.0f
 
#define kTimeStep   0.05f
 
#define kFadeLevel1   0.4f
 
#define kFadeLevel2   0.2f
 
#define kFadeLevel3   0.02f
 
#define kScaleLevel1   1.0f
 
#define kScaleLevel2   0.8f
 
#define kScaleLevel3   0.6f
 
#define PREV(n)
 
#define NEXT(n)
 

Variables

static OOTexturesPlumeTexture = nil
 
static GLuint tfan1 [10] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 1 }
 
static GLuint tstr1 [9] = { 1, 5, 9, 13, 17, 21, 25, 29, 33 }
 
static GLuint tstr2 [9] = { 2, 6, 10, 14, 18, 22, 26, 30, 33 }
 
static GLuint tstr3 [9] = { 3, 7, 11, 15, 19, 23, 27, 31, 33 }
 
static GLuint tstr4 [9] = { 4, 8, 12, 16, 20, 24, 28, 32, 33 }
 
static GLuint afttstr1 [4] = { 1, 5, 25, 29 }
 
static GLuint afttstr2 [4] = { 2, 6, 26, 30 }
 
static GLuint afttstr3 [4] = { 3, 7, 27, 31 }
 
static GLuint afttstr4 [4] = { 4, 8, 28, 32 }
 
static GLfloat pA [6] = { 0.01, 0.0, 2.0, 4.0, 6.0, 10.0 }
 

Macro Definition Documentation

◆ kFadeLevel1

#define kFadeLevel1   0.4f

Definition at line 41 of file OOExhaustPlumeEntity.m.

Referenced by OOExhaustPlumeEntity::update:.

◆ kFadeLevel2

#define kFadeLevel2   0.2f

Definition at line 42 of file OOExhaustPlumeEntity.m.

Referenced by OOExhaustPlumeEntity::update:.

◆ kFadeLevel3

#define kFadeLevel3   0.02f

Definition at line 43 of file OOExhaustPlumeEntity.m.

Referenced by OOExhaustPlumeEntity::update:.

◆ kOverallAlpha

#define kOverallAlpha   1.0f

Definition at line 39 of file OOExhaustPlumeEntity.m.

Referenced by OOExhaustPlumeEntity::update:.

◆ kScaleLevel1

#define kScaleLevel1   1.0f

Definition at line 44 of file OOExhaustPlumeEntity.m.

Referenced by OOExhaustPlumeEntity::update:.

◆ kScaleLevel2

#define kScaleLevel2   0.8f

Definition at line 45 of file OOExhaustPlumeEntity.m.

Referenced by OOExhaustPlumeEntity::update:.

◆ kScaleLevel3

#define kScaleLevel3   0.6f

Definition at line 46 of file OOExhaustPlumeEntity.m.

Referenced by OOExhaustPlumeEntity::update:.

◆ kTimeStep

#define kTimeStep   0.05f

Definition at line 40 of file OOExhaustPlumeEntity.m.

Referenced by OOExhaustPlumeEntity::update:.

◆ NEXT

#define NEXT ( n)
Value:
((n + 1) % kExhaustFrameCount)
@ kExhaustFrameCount

Definition at line 520 of file OOExhaustPlumeEntity.m.

Referenced by OOExhaustPlumeEntity(Private)::frameAtTime:fromFrame:.

◆ PREV

#define PREV ( n)

Variable Documentation

◆ afttstr1

GLuint afttstr1[4] = { 1, 5, 25, 29 }
static

Definition at line 374 of file OOExhaustPlumeEntity.m.

374{ 1, 5, 25, 29 };

Referenced by OOExhaustPlumeEntity::drawSubEntityImmediate:translucent:.

◆ afttstr2

GLuint afttstr2[4] = { 2, 6, 26, 30 }
static

Definition at line 375 of file OOExhaustPlumeEntity.m.

375{ 2, 6, 26, 30 };

Referenced by OOExhaustPlumeEntity::drawSubEntityImmediate:translucent:.

◆ afttstr3

GLuint afttstr3[4] = { 3, 7, 27, 31 }
static

Definition at line 376 of file OOExhaustPlumeEntity.m.

376{ 3, 7, 27, 31 };

Referenced by OOExhaustPlumeEntity::drawSubEntityImmediate:translucent:.

◆ afttstr4

GLuint afttstr4[4] = { 4, 8, 28, 32 }
static

Definition at line 377 of file OOExhaustPlumeEntity.m.

377{ 4, 8, 28, 32 };

Referenced by OOExhaustPlumeEntity::drawSubEntityImmediate:translucent:.

◆ pA

GLfloat pA[6] = { 0.01, 0.0, 2.0, 4.0, 6.0, 10.0 }
static

Definition at line 380 of file OOExhaustPlumeEntity.m.

380{ 0.01, 0.0, 2.0, 4.0, 6.0, 10.0 }; // phase adjustments

Referenced by OOExhaustPlumeEntity::drawSubEntityImmediate:translucent:, and mz_zip_string_equal().

◆ sPlumeTexture

◆ tfan1

GLuint tfan1[10] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 1 }
static

Definition at line 365 of file OOExhaustPlumeEntity.m.

365{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 1 }; // initial fan 0..9

Referenced by OOExhaustPlumeEntity::drawSubEntityImmediate:translucent:.

◆ tstr1

GLuint tstr1[9] = { 1, 5, 9, 13, 17, 21, 25, 29, 33 }
static

Definition at line 368 of file OOExhaustPlumeEntity.m.

368{ 1, 5, 9, 13, 17, 21, 25, 29, 33 };

Referenced by OOExhaustPlumeEntity::drawSubEntityImmediate:translucent:.

◆ tstr2

GLuint tstr2[9] = { 2, 6, 10, 14, 18, 22, 26, 30, 33 }
static

Definition at line 369 of file OOExhaustPlumeEntity.m.

369{ 2, 6, 10, 14, 18, 22, 26, 30, 33 };

Referenced by OOExhaustPlumeEntity::drawSubEntityImmediate:translucent:.

◆ tstr3

GLuint tstr3[9] = { 3, 7, 11, 15, 19, 23, 27, 31, 33 }
static

Definition at line 370 of file OOExhaustPlumeEntity.m.

370{ 3, 7, 11, 15, 19, 23, 27, 31, 33 };

Referenced by OOExhaustPlumeEntity::drawSubEntityImmediate:translucent:.

◆ tstr4

GLuint tstr4[9] = { 4, 8, 12, 16, 20, 24, 28, 32, 33 }
static

Definition at line 371 of file OOExhaustPlumeEntity.m.

371{ 4, 8, 12, 16, 20, 24, 28, 32, 33 };

Referenced by OOExhaustPlumeEntity::drawSubEntityImmediate:translucent:.