Oolite
Loading...
Searching...
No Matches
DustEntity Class Reference

#include <DustEntity.h>

Inheritance diagram for DustEntity:
Collaboration diagram for DustEntity:

Instance Methods

(void) - setDustColor:
(OOColor *) - dustColor
(id) - init [implementation]
(void) - dealloc [implementation]
(BOOL) - canCollide [implementation]
(void) - updateCameraRelativePosition [implementation]
(void) - update: [implementation]
(Vector) - warpVector [implementation]
(void) - drawImmediate:translucent: [implementation]
(void) - resetGraphicsState [implementation]
(void) - checkShaderMode [implementation]
Instance Methods inherited from Entity
(NSUInteger) - sessionID
(BOOL) - isShip
(BOOL) - isDock
(BOOL) - isStation
(BOOL) - isSubEntity
(BOOL) - isPlayer
(BOOL) - isPlanet
(BOOL) - isSun
(BOOL) - isSunlit
(BOOL) - isStellarObject
(BOOL) - isSky
(BOOL) - isWormhole
(BOOL) - isEffect
(BOOL) - isVisualEffect
(BOOL) - isWaypoint
(BOOL) - validForAddToUniverse
(void) - addToLinkedLists
(void) - removeFromLinkedLists
(void) - updateLinkedLists
(void) - wasAddedToUniverse
(void) - wasRemovedFromUniverse
(void) - warnAboutHostiles
(CollisionRegion *) - collisionRegion
(void) - setCollisionRegion:
(void) - setUniversalID:
(OOUniversalID) - universalID
(BOOL) - throwingSparks
(void) - setThrowSparks:
(void) - throwSparks
(void) - setOwner:
(id) - owner
(ShipEntity *) - parentEntity
(ShipEntity *) - rootShipEntity
(void) - setPosition:
(void) - setPositionX:y:z:
(HPVector) - position
(Vector) - cameraRelativePosition
(GLfloat) - cameraRangeFront
(GLfloat) - cameraRangeBack
(Vector) - vectorTo:
(HPVector) - absolutePositionForSubentity
(HPVector) - absolutePositionForSubentityOffset:
(double) - zeroDistance
(double) - camZeroDistance
(NSComparisonResult) - compareZeroDistance:
(BoundingBox) - boundingBox
(GLfloat) - mass
(Quaternion) - orientation
(void) - setOrientation:
(Quaternion) - normalOrientation
(void) - setNormalOrientation:
(void) - orientationChanged
(void) - setVelocity:
(Vector) - velocity
(double) - speed
(GLfloat) - distanceTravelled
(void) - setDistanceTravelled:
(void) - setStatus:
(OOEntityStatus) - status
(void) - setScanClass:
(OOScanClass) - scanClass
(void) - setEnergy:
(GLfloat) - energy
(void) - setMaxEnergy:
(GLfloat) - maxEnergy
(void) - applyRoll:andClimb:
(void) - applyRoll:climb:andYaw:
(void) - moveForward:
(OOMatrix) - rotationMatrix
(OOMatrix) - drawRotationMatrix
(OOMatrix) - transformationMatrix
(OOMatrix) - drawTransformationMatrix
(GLfloat) - collisionRadius
(GLfloat) - frustumRadius
(void) - setCollisionRadius:
(NSMutableArray *) - collisionArray
(void) - applyVelocity:
(BOOL) - checkCloseCollisionWith:
(void) - takeEnergyDamage:from:becauseOf:weaponIdentifier:
(void) - dumpState
(void) - dumpSelfState
(NSUInteger) - lastDrawCounter
(void) - setLastDrawCounter:
(double) - findCollisionRadius
(BOOL) - isVisible
(BOOL) - isInSpace
(BOOL) - isImmuneToBreakPatternHide
(GLfloat) - universalTime
(GLfloat) - spawnTime
(GLfloat) - timeElapsedSinceSpawn
(void) - setAtmosphereFogging:
(OOColor *) - fogUniform
(NSString *) - descriptionComponents [implementation]
(BOOL) - checkLinkedLists [implementation]
(id< OOWeakReferenceSupport >) - superShaderBindingTarget [implementation]
(Vector) - relativePosition [implementation]
(void) - subEntityReallyDied: [implementation]
(BOOL) - isBreakPattern
(BOOL) - isECMBlast
(BOOL) - isExhaust
(BOOL) - isFlasher
(BOOL) - isVisibleToScripts
(BOOL) - isVisibleToScripts
(NSString *) - oo_jsClassName
(NSString *) - oo_jsClassName
(void) - getJSClass:andPrototype:
(void) - deleteJSSelf
(void) - deleteJSSelf
(JSClassID) - oo_jsClassID
(jsval) - oo_jsValueInContext: [implementation]
(BOOL) - isCascadeWeapon
(BOOL) - isPlayerLikeShip
(GLfloat) - clock [implementation]
(unsigned) - pseudoFixedD100 [implementation]
(unsigned) - pseudoFixedD256 [implementation]
(unsigned) - systemGovernment [implementation]
(unsigned) - systemEconomy [implementation]
(unsigned) - systemTechLevel [implementation]
(unsigned) - systemPopulation [implementation]
(unsigned) - systemProductivity [implementation]
(BOOL) - isShipWithSubEntityShip:
(void) - drawSubEntityImmediate:translucent: [implementation]
Instance Methods inherited from OOWeakRefObject
(id) - weakSelf
(id) - weakRetain [implementation]
(void) - weakRefDied: [implementation]
Instance Methods inherited from <OOWeakReferenceSupport>
(id) - OO_RETURNS_RETAINED

Private Attributes

OOColor * dust_color
Vector vertices [DUST_N_PARTICLES *2]
GLushort indices [DUST_N_PARTICLES *2]
GLfloat color_fv [4]
OOTexture * texture
bool hasPointSprites
bool drawDust

Additional Inherited Members

Public Attributes inherited from Entity
OOUniversalID universalID
unsigned isShip: 1
unsigned isStation: 1
unsigned isPlayer: 1
unsigned isWormhole: 1
unsigned isSubEntity: 1
unsigned hasMoved: 1
unsigned hasRotated: 1
unsigned hasCollided: 1
unsigned isSunlit: 1
unsigned collisionTestFilter: 2
unsigned throw_sparks: 1
unsigned isImmuneToBreakPatternHide: 1
unsigned isExplicitlyNotMainStation: 1
unsigned isVisualEffect: 1
OOScanClass scanClass
GLfloat zero_distance
GLfloat cam_zero_distance
GLfloat no_draw_distance
GLfloat collision_radius
HPVector position
Vector cameraRelativePosition
Quaternion orientation
OOColor * atmosphereFogging
int zero_index
Entity * x_previous
Entity * x_next
Entity * y_previous
Entity * y_next
Entity * z_previous
Entity * z_next
Entity * collision_chain
OOUniversalID shadingEntityID
Entity * collider
CollisionRegion * collisionRegion
Protected Attributes inherited from Entity
HPVector lastPosition
Quaternion lastOrientation
GLfloat distanceTravelled
OOMatrix rotMatrix
Vector velocity
GLfloat energy
GLfloat maxEnergy
BoundingBox boundingBox
GLfloat mass
NSMutableArray * collidingEntities
OOTimeAbsolute spawnTime
struct JSObject * _jsSelf
NSUInteger lastDrawCounter
Protected Attributes inherited from OOWeakRefObject
OOWeakReference * weakSelf

Detailed Description

Definition at line 36 of file DustEntity.h.

Method Documentation

◆ canCollide

- (BOOL) canCollide
implementation

Reimplemented from Entity.

Definition at line 140 of file DustEntity.m.

141{
142 return NO;
143}

References canCollide.

Referenced by canCollide.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkShaderMode

- (void) checkShaderMode
implementation

Provided by category DustEntity(Private).

Referenced by drawImmediate:translucent:, and update:.

Here is the caller graph for this function:

◆ dealloc

- (void) dealloc
implementation

Reimplemented from Entity.

Definition at line 113 of file DustEntity.m.

114{
117
119#if OO_SHADERS
120 DESTROY(shader);
121 DESTROY(uniforms);
122#endif
123
124 [super dealloc];
125}
#define DESTROY(x)
OOColor * dust_color
Definition DustEntity.h:38
OOTexture * texture
Definition DustEntity.h:42
void unregisterClient:(id< OOGraphicsResetClient > client)
OOGraphicsResetManager * sharedManager()

References dealloc, Entity::dealloc, DESTROY, dust_color, OOGraphicsResetManager::sharedManager, texture, and OOGraphicsResetManager::unregisterClient:.

Referenced by dealloc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ drawImmediate:translucent:

- (void) drawImmediate: (bool) immediate
translucent: (bool) translucent 
implementation

Reimplemented from Entity.

Definition at line 251 of file DustEntity.m.

251 :(bool)immediate translucent:(bool)translucent
252{
253 if (!drawDust || [UNIVERSE breakPatternHide] || !translucent)
254 return; // DON'T DRAW
255
256 PlayerEntity* player = PLAYER;
257 assert(player != nil);
258
259#ifdef OO_DEBUG_MONITOR_ENABLED
261 return;
262#endif
263
264#if OO_SHADERS
265 if (EXPECT_NOT(shaderMode == kShaderModeUnknown))
266 [self checkShaderMode];
267 BOOL useShader = (shaderMode == kShaderModeOn);
268#endif
269
270 GLfloat* fogcolor = [UNIVERSE skyClearColor];
271 float idealDustSize = [[UNIVERSE gameView] viewSize].width / 800.0f;
272
273 BOOL warp_stars = [player atHyperspeed];
274 float dustIntensity;
275
278 OOGL(glDisableClientState(GL_NORMAL_ARRAY));
279
280 if (!warp_stars) {
281 // Draw points.
282 float dustPointSize = ceil(idealDustSize);
283 if (dustPointSize < 1.0f)
284 dustPointSize = 1.0f;
285 OOGL(GLScaledPointSize(dustPointSize));
286 dustIntensity = OOClamp_0_1_f(idealDustSize / dustPointSize);
287 } else {
288 // Draw lines.
289 float idealLineSize = idealDustSize * 0.5f;
290 float dustLineSize = ceil(idealLineSize);
291 if (dustLineSize < 1.0f)
292 dustLineSize = 1.0f;
293 GLScaledLineWidth(dustLineSize);
294 dustIntensity = OOClamp_0_1_f(idealLineSize / dustLineSize);
295 }
296 if (fogcolor[3] > 0.0) {
297 // fade out dust when entering atmosphere (issue #100)
298 dustIntensity = OOClamp_0_1_f(dustIntensity - (fogcolor[3] * 3.0));
299 }
300
301 if (dustIntensity > 0.0) {
302
303 float* color = NULL;
304 if (player->isSunlit)
305 color = color_fv;
306 else
307 color = UNIVERSE->stars_ambient;
308 OOGL(glColor4f(color[0], color[1], color[2], dustIntensity));
309
310#if OO_SHADERS
311 if (useShader) {
312 [[self shader] apply];
313 [uniforms makeObjectsPerformSelector:@selector(apply)];
314 } else
315#endif
316 {
317 OOGL(glEnable(GL_FOG));
318 OOGL(glFogi(GL_FOG_MODE, GL_LINEAR));
319 OOGL(glFogfv(GL_FOG_COLOR, fogcolor));
320 OOGL(glHint(GL_FOG_HINT, GL_NICEST));
321 OOGL(glFogf(GL_FOG_START, NEAR_PLANE));
322 OOGL(glFogf(GL_FOG_END, FAR_PLANE));
323 }
324
325 OOGL(glEnable(GL_BLEND));
326 OOGL(glDepthMask(GL_FALSE));
327
328 if (warp_stars) {
329 OOGL(glDisable(GL_TEXTURE_2D));
330#if OO_SHADERS
331 if (useShader) {
332 OOGL(glEnableVertexAttribArrayARB(kTangentAttributeIndex));
333 OOGL(glVertexAttribPointerARB(kTangentAttributeIndex, 1, GL_FLOAT, GL_FALSE, 0, warpinessAttr));
334 } else
335#endif
336 {
337 Vector warpVector = [self warpVector];
338 unsigned vi;
339 for (vi = 0; vi < DUST_N_PARTICLES; vi++) {
340 vertices[vi + DUST_N_PARTICLES] = vector_subtract(vertices[vi], warpVector);
341 }
342 }
343
344 OOGL(glVertexPointer(3, GL_FLOAT, 0, vertices));
345 OOGL(glDrawElements(GL_LINES, DUST_N_PARTICLES * 2, GL_UNSIGNED_SHORT, indices));
346
347#if OO_SHADERS
348 if (useShader) {
349 OOGL(glDisableVertexAttribArrayARB(kTangentAttributeIndex));
350 }
351#endif
352 OOGL(glEnable(GL_TEXTURE_2D));
353
354 } else {
355 if (hasPointSprites) {
356#if OO_SHADERS
357 if (!useShader)
358#endif
359 {
360 OOGL(glBlendFunc(GL_SRC_ALPHA, GL_ONE));
361 }
362 OOGL(glEnable(GL_POINT_SPRITE_ARB));
363 [texture apply];
364 OOGL(glVertexPointer(3, GL_FLOAT, 0, vertices));
365 OOGL(glDrawArrays(GL_POINTS, 0, DUST_N_PARTICLES));
366 OOGL(glDisable(GL_POINT_SPRITE_ARB));
367 } else {
368 OOGL(glDisable(GL_TEXTURE_2D));
369 OOGL(glVertexPointer(3, GL_FLOAT, 0, vertices));
370 OOGL(glDrawArrays(GL_POINTS, 0, DUST_N_PARTICLES));
371 OOGL(glEnable(GL_TEXTURE_2D));
372 }
373 }
374
375 // reapply normal conditions
376#if OO_SHADERS
377 if (useShader) {
378 [OOShaderProgram applyNone];
379 } else
380#endif
381 {
382 OOGL(glDisable(GL_FOG));
383 OOGL(glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA));
384 }
385
386 OOGL(glDisable(GL_BLEND));
387 OOGL(glDepthMask(GL_TRUE));
388 }
389 OOGL(glEnableClientState(GL_NORMAL_ARRAY));
390
392 OOCheckOpenGLErrors(@"DustEntity after drawing %@", self);
393}
#define DUST_N_PARTICLES
Definition DustEntity.h:32
#define NEAR_PLANE
Definition DustEntity.m:43
#define FAR_PLANE
Definition DustEntity.m:42
#define gDebugFlags
@ DEBUG_NO_DUST
OOINLINE float OOClamp_0_1_f(float value) INLINE_CONST_FUNC
#define EXPECT_NOT(x)
#define OO_ENTER_OPENGL()
@ OPENGL_STATE_OPAQUE
Definition OOOpenGL.h:121
#define OOVerifyOpenGLState()
Definition OOOpenGL.h:133
BOOL OOCheckOpenGLErrors(NSString *format,...)
Definition OOOpenGL.m:38
void GLScaledLineWidth(GLfloat width)
Definition OOOpenGL.m:206
#define OOSetOpenGLState(STATE)
Definition OOOpenGL.h:132
#define OOGL(statement)
Definition OOOpenGL.h:262
void GLScaledPointSize(GLfloat size)
Definition OOOpenGL.m:212
return nil
OOINLINE Vector vector_subtract(Vector a, Vector b) INLINE_CONST_FUNC
Definition OOVector.h:218
struct Vector Vector
#define PLAYER
#define UNIVERSE
Definition Universe.h:827
Vector vertices[DUST_N_PARTICLES *2]
Definition DustEntity.h:39
bool drawDust
Definition DustEntity.h:44
bool hasPointSprites
Definition DustEntity.h:43
GLushort indices[DUST_N_PARTICLES *2]
Definition DustEntity.h:40
GLfloat color_fv[4]
Definition DustEntity.h:41
Vector warpVector()
Definition DustEntity.m:246
unsigned isSunlit
Definition Entity.m:160

References OOTexture::apply, PlayerEntity::atHyperspeed, checkShaderMode, color_fv, DEBUG_NO_DUST, drawDust, DUST_N_PARTICLES, EXPECT_NOT, FAR_PLANE, gDebugFlags, GLScaledLineWidth(), GLScaledPointSize(), hasPointSprites, indices, Entity::isSunlit, NEAR_PLANE, nil, OO_ENTER_OPENGL, OOCheckOpenGLErrors(), OOClamp_0_1_f(), OOGL, OOSetOpenGLState, OOVerifyOpenGLState, OPENGL_STATE_OPAQUE, PLAYER, UNIVERSE, vector_subtract(), vertices, and warpVector.

Here is the call graph for this function:

◆ dustColor

- (OOColor *) dustColor

Definition at line 135 of file DustEntity.m.

136{
137 return dust_color;
138}

References dust_color, and dustColor.

Referenced by dustColor.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init

- (id) init
implementation

Reimplemented from Entity.

Definition at line 62 of file DustEntity.m.

63{
64 int vi;
65
66 // this should be unnecessary
67 // ranrot_srand((uint32_t)[[NSDate date] timeIntervalSince1970]); // seed randomiser by time
68
69 self = [super init];
70
71 for (vi = 0; vi < DUST_N_PARTICLES; vi++) {
72 vertices[vi].x = (ranrot_rand() % DUST_SCALE) - DUST_SCALE / 2;
73 vertices[vi].y = (ranrot_rand() % DUST_SCALE) - DUST_SCALE / 2;
74 vertices[vi].z = (ranrot_rand() % DUST_SCALE) - DUST_SCALE / 2;
75
76 // Set up element index array for warp mode.
77 indices[vi * 2] = vi;
78 indices[vi * 2 + 1] = vi + DUST_N_PARTICLES;
79
80#if OO_SHADERS
81 vertices[vi + DUST_N_PARTICLES] = vertices[vi];
82 warpinessAttr[vi] = 0.0f;
83 warpinessAttr[vi + DUST_N_PARTICLES] = 1.0f;
84#endif
85 }
86
87#if OO_SHADERS
88 shaderMode = kShaderModeUnknown;
89#endif
90
91 drawDust = ![[[NSProcessInfo processInfo] arguments] containsObject:@"-nodust"];
92
93 dust_color = [[OOColor colorWithRed:0.5 green:1.0 blue:1.0 alpha:1.0] retain];
94 [self setStatus:STATUS_ACTIVE];
95
97
98 if (hasPointSprites) {
99 texture = [[OOTexture textureWithName:@"oolite-particle-dust.png"
100 inFolder:@"Textures"
101 options:kOOTextureMinFilterMipMap | kOOTextureMagFilterLinear | kOOTextureAlphaMask
102 anisotropy:kOOTextureDefaultAnisotropy / 2.0
103 lodBias:0.0] retain];
104 }
105
106 collision_radius = DUST_SCALE; // for draw pass calculations
107
109
110 return self;
111}
#define DUST_SCALE
Definition DustEntity.h:31
GLfloat collision_radius
Definition Entity.h:107
OOColor * colorWithRed:green:blue:alpha:(float red,[green] float green,[blue] float blue,[alpha] float alpha)
Definition OOColor.m:107
void registerClient:(id< OOGraphicsResetClient > client)
OOOpenGLExtensionManager * sharedManager()
BOOL haveExtension:(NSString *extension)
id textureWithName:inFolder:options:anisotropy:lodBias:(NSString *name,[inFolder] NSString *directory,[options] OOTextureFlags options,[anisotropy] GLfloat anisotropy,[lodBias] GLfloat lodBias)
Definition OOTexture.m:132
#define ranrot_rand()

References Entity::collision_radius, OOColor::colorWithRed:green:blue:alpha:, drawDust, dust_color, DUST_N_PARTICLES, DUST_SCALE, hasPointSprites, OOOpenGLExtensionManager::haveExtension:, indices, init, Entity::init, ranrot_rand, OOGraphicsResetManager::registerClient:, Entity::setStatus:, OOGraphicsResetManager::sharedManager, OOOpenGLExtensionManager::sharedManager, texture, OOTexture::textureWithName:inFolder:options:anisotropy:lodBias:, and vertices.

Referenced by init.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ resetGraphicsState

- (void) resetGraphicsState
implementation

Definition at line 395 of file DustEntity.m.

396{
397#if OO_SHADERS
398 DESTROY(shader);
399 DESTROY(uniforms);
400
401 shaderMode = kShaderModeUnknown;
402
403 /* Duplicate vertex data. This is only required if we're switching from
404 non-shader mode to a shader mode, but let's KISS.
405 */
407#endif
408}

References DESTROY, DUST_N_PARTICLES, resetGraphicsState, and vertices.

Referenced by resetGraphicsState.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setDustColor:

- (void) setDustColor: (OOColor*) color

Definition at line 127 of file DustEntity.m.

127 :(OOColor*)color
128{
129 if (dust_color)
130 [dust_color release];
131 dust_color = [color retain];
132 [dust_color getRed:&color_fv[0] green:&color_fv[1] blue:&color_fv[2] alpha:&color_fv[3]];
133}

References dust_color, and OOColor::getRed:green:blue:alpha:.

Referenced by Universe::setSystemDataForGalaxy:planet:key:value:fromManifest:forLayer:, and Universe::setUpSpace.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update:

- (void) update: (OOTimeDelta) delta_t
implementation

Reimplemented from Entity.

Definition at line 151 of file DustEntity.m.

151 :(OOTimeDelta)delta_t
152{
153 // [self setPosition:position];
154 zero_distance = 0.0;
155
156#if OO_SHADERS
157 if (EXPECT_NOT(shaderMode == kShaderModeUnknown))
158 [self checkShaderMode];
159
160 // Shader takes care of repositioning.
161 if (shaderMode == kShaderModeOn)
162 return;
163#endif
164
166 GLfloat half_scale = DUST_SCALE * 0.50;
167 int vi;
168 for (vi = 0; vi < DUST_N_PARTICLES; vi++) {
169 while (vertices[vi].x - offset.x < -half_scale)
170 vertices[vi].x += DUST_SCALE;
171 while (vertices[vi].x - offset.x > half_scale)
172 vertices[vi].x -= DUST_SCALE;
173
174 while (vertices[vi].y - offset.y < -half_scale)
175 vertices[vi].y += DUST_SCALE;
176 while (vertices[vi].y - offset.y > half_scale)
177 vertices[vi].y -= DUST_SCALE;
178
179 while (vertices[vi].z - offset.z < -half_scale)
180 vertices[vi].z += DUST_SCALE;
181 while (vertices[vi].z - offset.z > half_scale)
182 vertices[vi].z -= DUST_SCALE;
183 }
184}
float y
float x
double OOTimeDelta
Definition OOTypes.h:193
OOINLINE Vector vector_flip(Vector v) INLINE_CONST_FUNC
Definition OOVector.h:227
GLfloat zero_distance
Definition Entity.h:104
Vector cameraRelativePosition
Definition Entity.m:581
voidpf uLong offset
Definition ioapi.h:132

References Entity::cameraRelativePosition, checkShaderMode, DUST_N_PARTICLES, DUST_SCALE, EXPECT_NOT, vector_flip(), vertices, x, y, and Entity::zero_distance.

Here is the call graph for this function:

◆ updateCameraRelativePosition

- (void) updateCameraRelativePosition
implementation

Reimplemented from Entity.

Definition at line 145 of file DustEntity.m.

146{
147 HPVector c_pos = [PLAYER viewpointPosition];
148 cameraRelativePosition = make_vector((OOScalar)-fmod(c_pos.x, DUST_SCALE), (OOScalar)-fmod(c_pos.y, DUST_SCALE), (OOScalar)-fmod(c_pos.z, DUST_SCALE));
149}
struct HPVector HPVector
GLfloat OOScalar
Definition OOMaths.h:49
OOINLINE Vector make_vector(OOScalar vx, OOScalar vy, OOScalar vz) INLINE_CONST_FUNC
Definition OOVector.h:149
OOHPScalar x
Definition OOHPVector.h:36
OOHPScalar y
Definition OOHPVector.h:37
OOHPScalar z
Definition OOHPVector.h:38

References Entity::cameraRelativePosition, DUST_SCALE, make_vector(), updateCameraRelativePosition, HPVector::x, HPVector::y, and HPVector::z.

Referenced by updateCameraRelativePosition.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ warpVector

- (Vector) warpVector
implementation

Definition at line 246 of file DustEntity.m.

247{
249}
OOINLINE Vector vector_multiply_scalar(Vector v, OOScalar s) INLINE_CONST_FUNC
Definition OOVector.h:180
#define HYPERSPEED_FACTOR
Vector velocity
Definition Entity.m:708

References HYPERSPEED_FACTOR, PLAYER, vector_multiply_scalar(), Entity::velocity, and warpVector.

Referenced by drawImmediate:translucent:, and warpVector.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ color_fv

- (GLfloat color_fv[4])
private

Definition at line 41 of file DustEntity.h.

Referenced by drawImmediate:translucent:.

◆ drawDust

- (bool) drawDust
private

Definition at line 44 of file DustEntity.h.

Referenced by drawImmediate:translucent:, and init.

◆ dust_color

- (OOColor*) dust_color
private

Definition at line 38 of file DustEntity.h.

Referenced by dealloc, dustColor, init, and setDustColor:.

◆ hasPointSprites

- (bool) hasPointSprites
private

Definition at line 43 of file DustEntity.h.

Referenced by drawImmediate:translucent:, and init.

◆ indices

- (GLushort indices[DUST_N_PARTICLES *2])
private

Definition at line 40 of file DustEntity.h.

Referenced by drawImmediate:translucent:, and init.

◆ texture

- (OOTexture*) texture
private

Definition at line 42 of file DustEntity.h.

Referenced by dealloc, and init.

◆ vertices

- (Vector vertices[DUST_N_PARTICLES *2])
private

Definition at line 39 of file DustEntity.h.

Referenced by drawImmediate:translucent:, init, resetGraphicsState, and update:.


The documentation for this class was generated from the following files: