Oolite 1.91.0.7604-240417-a536cbe
Loading...
Searching...
No Matches
Classes | Macros | Variables
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)   ((n + kExhaustFrameCount - 1) % kExhaustFrameCount)
 
#define NEXT(n)   ((n + 1) % kExhaustFrameCount)
 

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.

◆ kFadeLevel2

#define kFadeLevel2   0.2f

Definition at line 42 of file OOExhaustPlumeEntity.m.

◆ kFadeLevel3

#define kFadeLevel3   0.02f

Definition at line 43 of file OOExhaustPlumeEntity.m.

◆ kOverallAlpha

#define kOverallAlpha   1.0f

Definition at line 39 of file OOExhaustPlumeEntity.m.

◆ kScaleLevel1

#define kScaleLevel1   1.0f

Definition at line 44 of file OOExhaustPlumeEntity.m.

◆ kScaleLevel2

#define kScaleLevel2   0.8f

Definition at line 45 of file OOExhaustPlumeEntity.m.

◆ kScaleLevel3

#define kScaleLevel3   0.6f

Definition at line 46 of file OOExhaustPlumeEntity.m.

◆ kTimeStep

#define kTimeStep   0.05f

Definition at line 40 of file OOExhaustPlumeEntity.m.

◆ NEXT

#define NEXT ( n)    ((n + 1) % kExhaustFrameCount)

Definition at line 520 of file OOExhaustPlumeEntity.m.

◆ PREV

#define PREV ( n)    ((n + kExhaustFrameCount - 1) % kExhaustFrameCount)

Definition at line 519 of file OOExhaustPlumeEntity.m.

Variable Documentation

◆ afttstr1

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

Definition at line 374 of file OOExhaustPlumeEntity.m.

374{ 1, 5, 25, 29 };

◆ afttstr2

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

Definition at line 375 of file OOExhaustPlumeEntity.m.

375{ 2, 6, 26, 30 };

◆ afttstr3

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

Definition at line 376 of file OOExhaustPlumeEntity.m.

376{ 3, 7, 27, 31 };

◆ afttstr4

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

Definition at line 377 of file OOExhaustPlumeEntity.m.

377{ 4, 8, 28, 32 };

◆ 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

◆ sPlumeTexture

OOTexture* sPlumeTexture = nil
static

Definition at line 48 of file OOExhaustPlumeEntity.m.

◆ 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

◆ 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 };

◆ 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 };

◆ 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 };

◆ 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 };