Oolite
Loading...
Searching...
No Matches
OOLaserShotEntity.m File Reference
import "OOLaserShotEntity.h"
import "OOMacroOpenGL.h"
import "ShipEntity.h"
import "Universe.h"
import "OOGraphicsResetManager.h"
import "OOTexture.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 OOTexture * sShotTexture = nil
static OOTexture * sShotTexture2 = nil
static const GLfloat kLaserVertices []

Macro Definition Documentation

◆ kLaserAlpha

#define kLaserAlpha   (0.45f / kLaserBrightness)

◆ kLaserBlue

#define kLaserBlue   (0.0f)

◆ kLaserBrightness

#define kLaserBrightness   (5.0f)

◆ kLaserCoreWidth

#define kLaserCoreWidth   (0.4f)

Definition at line 49 of file OOLaserShotEntity.m.

Referenced by OOLaserShotEntity::drawImmediate:translucent:.

◆ kLaserDuration

#define kLaserDuration   (0.09)

◆ kLaserFlareWidth

#define kLaserFlareWidth   (1.8f)

Definition at line 50 of file OOLaserShotEntity.m.

Referenced by OOLaserShotEntity::drawImmediate:translucent:.

◆ kLaserGreen

#define kLaserGreen   (0.0f)

◆ kLaserHalfWidth

#define kLaserHalfWidth   (3.6f)

Definition at line 51 of file OOLaserShotEntity.m.

Referenced by OOLaserShotEntity::drawImmediate:translucent:.

◆ kLaserRed

#define kLaserRed   (1.0f)

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 169 of file OOLaserShotEntity.m.

169 {
170 1.0f,
171 0.0f,
172 0.0f,
173 1.0f,
174 0.0f,
175 1.0f,
176 -1.0f,
177 0.0f,
178 1.0f,
179 -1.0f,
180 0.0f,
181 0.0f,
182
183 0.0f,
184 1.0f,
185 0.0f,
186 0.0f,
187 1.0f,
188 1.0f,
189 0.0f,
190 -1.0f,
191 1.0f,
192 0.0f,
193 -1.0f,
194 0.0f,
195};

Referenced by OOLaserShotEntity::drawImmediate:translucent:.

◆ sShotTexture

◆ sShotTexture2