Oolite 1.91.0.7699-250829-cea269d
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)

◆ kLaserBlue

#define kLaserBlue   (0.0f)

◆ kLaserBrightness

#define kLaserBrightness   (5.0f)

◆ kLaserCoreWidth

#define kLaserCoreWidth   (0.4f)

Definition at line 50 of file OOLaserShotEntity.m.

Referenced by OOLaserShotEntity::drawImmediate:translucent:.

◆ kLaserDuration

#define kLaserDuration   (0.09)

◆ kLaserFlareWidth

#define kLaserFlareWidth   (1.8f)

Definition at line 51 of file OOLaserShotEntity.m.

Referenced by OOLaserShotEntity::drawImmediate:translucent:.

◆ kLaserGreen

#define kLaserGreen   (0.0f)

◆ kLaserHalfWidth

#define kLaserHalfWidth   (3.6f)

Definition at line 52 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 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};

Referenced by OOLaserShotEntity::drawImmediate:translucent:.

◆ sShotTexture

◆ sShotTexture2