Oolite 1.91.0.7644-241112-7f5034b
Loading...
Searching...
No Matches
OOLaserShotEntity.m File Reference
import "OOLaserShotEntity.h"
import "Universe.h"
import "ShipEntity.h"
import "OOMacroOpenGL.h"
import "OOTexture.h"
import "OOGraphicsResetManager.h"
import "MyOpenGLView.h"
+ Include dependency graph for OOLaserShotEntity.m:

Go to the source code of this file.

Macros

#define kLaserDuration   (0.09)
 
#define kLaserRed   (1.0f)
 
#define kLaserGreen   (0.0f)
 
#define kLaserBlue   (0.0f)
 
#define kLaserBrightness   (5.0f)
 
#define kLaserAlpha   (0.45f / kLaserBrightness)
 
#define kLaserCoreWidth   (0.4f)
 
#define kLaserFlareWidth   (1.8f)
 
#define kLaserHalfWidth   (3.6f)
 

Variables

static OOTexturesShotTexture = nil
 
static OOTexturesShotTexture2 = nil
 
static const GLfloat kLaserVertices []
 

Macro Definition Documentation

◆ kLaserAlpha

#define kLaserAlpha   (0.45f / kLaserBrightness)

Definition at line 48 of file OOLaserShotEntity.m.

Referenced by OOLaserShotEntity::dealloc.

◆ kLaserBlue

#define kLaserBlue   (0.0f)

Definition at line 42 of file OOLaserShotEntity.m.

Referenced by OOLaserShotEntity::dealloc.

◆ kLaserBrightness

#define kLaserBrightness   (5.0f)

Definition at line 45 of file OOLaserShotEntity.m.

◆ kLaserCoreWidth

#define kLaserCoreWidth   (0.4f)

Definition at line 50 of file OOLaserShotEntity.m.

◆ kLaserDuration

#define kLaserDuration   (0.09)

Definition at line 37 of file OOLaserShotEntity.m.

Referenced by OOLaserShotEntity::dealloc.

◆ kLaserFlareWidth

#define kLaserFlareWidth   (1.8f)

Definition at line 51 of file OOLaserShotEntity.m.

◆ kLaserGreen

#define kLaserGreen   (0.0f)

Definition at line 41 of file OOLaserShotEntity.m.

Referenced by OOLaserShotEntity::dealloc.

◆ kLaserHalfWidth

#define kLaserHalfWidth   (3.6f)

Definition at line 52 of file OOLaserShotEntity.m.

◆ kLaserRed

#define kLaserRed   (1.0f)

Definition at line 40 of file OOLaserShotEntity.m.

Referenced by OOLaserShotEntity::dealloc.

Variable Documentation

◆ kLaserVertices

const GLfloat kLaserVertices[]
static
Initial value:
=
{
1.0f, 0.0f, 0.0f,
1.0f, 0.0f, 1.0f,
-1.0f, 0.0f, 1.0f,
-1.0f, 0.0f, 0.0f,
0.0f, 1.0f, 0.0f,
0.0f, 1.0f, 1.0f,
0.0f, -1.0f, 1.0f,
0.0f, -1.0f, 0.0f,
}

Definition at line 182 of file OOLaserShotEntity.m.

183{
184 1.0f, 0.0f, 0.0f,
185 1.0f, 0.0f, 1.0f,
186 -1.0f, 0.0f, 1.0f,
187 -1.0f, 0.0f, 0.0f,
188
189 0.0f, 1.0f, 0.0f,
190 0.0f, 1.0f, 1.0f,
191 0.0f, -1.0f, 1.0f,
192 0.0f, -1.0f, 0.0f,
193};

◆ sShotTexture

OOTexture* sShotTexture = nil
static

Definition at line 54 of file OOLaserShotEntity.m.

◆ sShotTexture2

OOTexture* sShotTexture2 = nil
static

Definition at line 55 of file OOLaserShotEntity.m.