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

#include <OOLightParticleEntity.h>

Inheritance diagram for OOLightParticleEntity:
Collaboration diagram for OOLightParticleEntity:

Instance Methods

(id) - initWithDiameter:
(float) - diameter
(void) - setDiameter:
(void) - setColor:
(void) - setColor:alpha:
(OOTexture *) - texture
(void) - drawSubEntityImmediate:translucent:
(void) - drawImmediate:translucent: [implementation]
(BOOL) - isEffect [implementation]
(BOOL) - canCollide [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) - 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
(void) - updateCameraRelativePosition
(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) - update:
(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
(id) - init [implementation]
(void) - dealloc [implementation]
(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:
Instance Methods inherited from OOWeakRefObject
(id) - weakSelf
(id) - weakRetain [implementation]
(void) - weakRefDied: [implementation]
Instance Methods inherited from <OOWeakReferenceSupport>
(id) - OO_RETURNS_RETAINED

Class Methods

(void) + setUpTexture
(OOTexture *) + defaultParticleTexture
(void) + resetGraphicsState [implementation]

Protected Attributes

GLfloat _colorComponents [4]
float _diameter
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

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

Detailed Description

Definition at line 32 of file OOLightParticleEntity.h.

Method Documentation

◆ canCollide

- (BOOL) canCollide
implementation

Reimplemented from Entity.

Reimplemented in OOPlasmaShotEntity.

Definition at line 317 of file OOLightParticleEntity.m.

318{
319 return NO;
320}

References canCollide.

Referenced by canCollide.

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

◆ defaultParticleTexture

+ (OOTexture *) defaultParticleTexture

Definition at line 299 of file OOLightParticleEntity.m.

300{
301 if (sBlobTexture == nil)
302 [self setUpTexture];
303 return sBlobTexture;
304}
static OOTexture * sBlobTexture
return nil

References defaultParticleTexture, nil, sBlobTexture, and setUpTexture.

Referenced by defaultParticleTexture, texture, and OOParticleSystem::texture.

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

◆ diameter

- (float) diameter

Definition at line 69 of file OOLightParticleEntity.m.

70{
71 return _diameter;
72}

References _diameter, and diameter.

Referenced by diameter, OOFlasherEntity::findCollisionRadius, initWithDiameter:, OOFlasherEntity::rescaleBy:, and setDiameter:.

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.

Reimplemented in OOFlasherEntity.

Definition at line 129 of file OOLightParticleEntity.m.

129 :(bool)immediate translucent:(bool)translucent
130{
131 if (!translucent)
132 return;
133 if ([UNIVERSE breakPatternHide] && ![self isImmuneToBreakPatternHide]) {
134 Entity* father = [self owner];
135 while (father != nil && father != NO_TARGET) {
136 if (![father isSubEntity])
137 break;
138 father = [father owner];
139 }
140 if (![father isImmuneToBreakPatternHide]) {
141 return;
142 }
143 }
145 return;
146
149
150 OOGL(glPushAttrib(GL_COLOR_BUFFER_BIT | GL_ENABLE_BIT));
151 OOGL(glEnable(GL_BLEND));
152 OOGL(glBlendFunc(GL_SRC_ALPHA, GL_ONE));
153
154 OOGL(glEnable(GL_TEXTURE_2D));
155 OOGL(glDepthMask(GL_FALSE));
156
157 GLfloat distanceAttenuation = cam_zero_distance / no_draw_distance;
158 distanceAttenuation = 1.0 - distanceAttenuation;
159 GLfloat components[4] = { _colorComponents[0], _colorComponents[1], _colorComponents[2], _colorComponents[3] * distanceAttenuation };
160 OOGL(glColor4fv(components));
161
162 OOGL(glTexEnvfv(GL_TEXTURE_ENV, GL_TEXTURE_ENV_COLOR, components));
163 OOGL(glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_BLEND));
164
165 OOViewID viewDir = [UNIVERSE viewDirection];
166 if (viewDir != VIEW_GUI_DISPLAY)
168 [[self texture] apply];
169
170 /* NOTE: nominal diameter is actual radius, because of the black border
171 in the texture. However, the offset along the view axis is not
172 affected by the border and needs to be scaled.
173 -- Ahruman 2009-12-20
174 */
175 float viewOffset = _diameter * 0.5f;
176
177 OOGLBEGIN(GL_QUADS);
178 switch (viewDir) {
179 case VIEW_FORWARD:
180 case VIEW_GUI_DISPLAY:
181 glTexCoord2f(0.0, 1.0);
182 glVertex3f(-_diameter, -_diameter, -viewOffset);
183
184 glTexCoord2f(1.0, 1.0);
185 glVertex3f(_diameter, -_diameter, -viewOffset);
186
187 glTexCoord2f(1.0, 0.0);
188 glVertex3f(_diameter, _diameter, -viewOffset);
189
190 glTexCoord2f(0.0, 0.0);
191 glVertex3f(-_diameter, _diameter, -viewOffset);
192 break;
193
194 case VIEW_AFT:
195 glTexCoord2f(0.0, 1.0);
196 glVertex3f(_diameter, -_diameter, viewOffset);
197
198 glTexCoord2f(1.0, 1.0);
199 glVertex3f(-_diameter, -_diameter, viewOffset);
200
201 glTexCoord2f(1.0, 0.0);
202 glVertex3f(-_diameter, _diameter, viewOffset);
203
204 glTexCoord2f(0.0, 0.0);
205 glVertex3f(_diameter, _diameter, viewOffset);
206 break;
207
208 case VIEW_STARBOARD:
209 glTexCoord2f(0.0, 1.0);
210 glVertex3f(-viewOffset, -_diameter, _diameter);
211
212 glTexCoord2f(1.0, 1.0);
213 glVertex3f(-viewOffset, -_diameter, -_diameter);
214
215 glTexCoord2f(1.0, 0.0);
216 glVertex3f(-viewOffset, _diameter, -_diameter);
217
218 glTexCoord2f(0.0, 0.0);
219 glVertex3f(-viewOffset, _diameter, _diameter);
220 break;
221
222 case VIEW_PORT:
223 glTexCoord2f(0.0, 1.0);
224 glVertex3f(viewOffset, -_diameter, -_diameter);
225
226 glTexCoord2f(1.0, 1.0);
227 glVertex3f(viewOffset, -_diameter, _diameter);
228
229 glTexCoord2f(1.0, 0.0);
230 glVertex3f(viewOffset, _diameter, _diameter);
231
232 glTexCoord2f(0.0, 0.0);
233 glVertex3f(viewOffset, _diameter, -_diameter);
234 break;
235
236 case VIEW_CUSTOM: {
237 PlayerEntity* player = PLAYER;
238 Vector vi = [player customViewRightVector];
239 vi.x *= _diameter;
240 vi.y *= _diameter;
241 vi.z *= _diameter;
242 Vector vj = [player customViewUpVector];
243 vj.x *= _diameter;
244 vj.y *= _diameter;
245 vj.z *= _diameter;
246 Vector vk = [player customViewForwardVector];
247 vk.x *= viewOffset;
248 vk.y *= viewOffset;
249 vk.z *= viewOffset;
250 glTexCoord2f(0.0, 1.0);
251 glVertex3f(-vi.x - vj.x - vk.x, -vi.y - vj.y - vk.y, -vi.z - vj.z - vk.z);
252 glTexCoord2f(1.0, 1.0);
253 glVertex3f(+vi.x - vj.x - vk.x, +vi.y - vj.y - vk.y, +vi.z - vj.z - vk.z);
254 glTexCoord2f(1.0, 0.0);
255 glVertex3f(+vi.x + vj.x - vk.x, +vi.y + vj.y - vk.y, +vi.z + vj.z - vk.z);
256 glTexCoord2f(0.0, 0.0);
257 glVertex3f(-vi.x + vj.x - vk.x, -vi.y + vj.y - vk.y, -vi.z + vj.z - vk.z);
258 } break;
259
260 default:
261 glTexCoord2f(0.0, 1.0);
262 glVertex3f(-_diameter, -_diameter, -_diameter);
263
264 glTexCoord2f(1.0, 1.0);
265 glVertex3f(_diameter, -_diameter, -_diameter);
266
267 glTexCoord2f(1.0, 0.0);
268 glVertex3f(_diameter, _diameter, -_diameter);
269
270 glTexCoord2f(0.0, 0.0);
271 glVertex3f(-_diameter, _diameter, -_diameter);
272 break;
273 }
274 OOGLEND();
275
276 OOGL(glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE));
277 OOGL(glPopAttrib());
278
280}
#define OO_ENTER_OPENGL()
void OOGLMultModelView(OOMatrix matrix)
#define OOGLBEGIN
Definition OOOpenGL.h:269
@ OPENGL_STATE_ADDITIVE_BLENDING
Definition OOOpenGL.h:123
#define OOVerifyOpenGLState()
Definition OOOpenGL.h:133
#define OOSetOpenGLState(STATE)
Definition OOOpenGL.h:132
#define OOGL(statement)
Definition OOOpenGL.h:262
#define OOGLEND
Definition OOOpenGL.h:270
@ NO_TARGET
Definition OOTypes.h:169
OOViewID
Definition OOTypes.h:39
struct Vector Vector
#define PLAYER
#define UNIVERSE
Definition Universe.h:827
unsigned isImmuneToBreakPatternHide
Definition Entity.m:1050
unsigned isSubEntity
Definition Entity.m:140
GLfloat cam_zero_distance
Definition Entity.h:105
GLfloat no_draw_distance
Definition Entity.h:106
id owner()
Definition Entity.m:548
OOMatrix drawRotationMatrix()
Definition Entity.m:808
Vector customViewRightVector
Vector customViewUpVector
Vector customViewForwardVector
OOScalar x
Definition OOVector.h:32
OOScalar y
Definition OOVector.h:33
OOScalar z
Definition OOVector.h:34

References _colorComponents, _diameter, OOTexture::apply, Entity::cam_zero_distance, PlayerEntity::customViewForwardVector, PlayerEntity::customViewRightVector, PlayerEntity::customViewUpVector, Entity::drawRotationMatrix, Entity::isImmuneToBreakPatternHide, Entity::isSubEntity, nil, Entity::no_draw_distance, NO_TARGET, OO_ENTER_OPENGL, OOGL, OOGLBEGIN, OOGLEND, OOGLMultModelView(), OOSetOpenGLState, OOVerifyOpenGLState, OPENGL_STATE_ADDITIVE_BLENDING, Entity::owner, PLAYER, texture, UNIVERSE, Vector::x, Vector::y, and Vector::z.

Referenced by OOFlasherEntity::drawImmediate:translucent:, and drawSubEntityImmediate:translucent:.

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

◆ drawSubEntityImmediate:translucent:

- (void) drawSubEntityImmediate: (bool) immediate
translucent: (bool) translucent 

Reimplemented from Entity.

Reimplemented in OOFlasherEntity.

Definition at line 90 of file OOLightParticleEntity.m.

90 :(bool)immediate translucent:(bool)translucent
91{
92 if (!translucent)
93 return;
94
95 /* TODO: someone will inevitably build a ship so big that individual
96 zero_distances are necessary for flashers, if they haven't already.
97 -- Ahruman 2009-09-20
98 */
99 cam_zero_distance = [[self owner] camZeroDistance];
101 return;
102
103 Entity* father = [self owner];
104 Entity* last = nil;
105 HPVector abspos = position;
106
107 while (father != nil && father != last && father != NO_TARGET) {
108 OOMatrix rM = [father drawRotationMatrix];
109 abspos = HPvector_add(OOHPVectorMultiplyMatrix(abspos, rM), [father position]);
110 last = father;
111
112 if (![father isSubEntity])
113 break;
114 father = [father owner];
115 }
116
117 OOMatrix temp_matrix = OOGLPopModelView();
119
120 /* Flashers are drawn using the absolute view matrix */
121 OOGLLoadModelView([UNIVERSE viewMatrix]);
122 /* ...modified by the aggregate translation calculated above */
123 OOGLTranslateModelView(HPVectorToVector(HPvector_subtract(abspos, [PLAYER viewpointPosition]))); // move to camera-relative position
124 [self drawImmediate:immediate translucent:translucent];
125
126 OOGLLoadModelView(temp_matrix);
127}
OOINLINE HPVector HPvector_subtract(HPVector a, HPVector b) INLINE_CONST_FUNC
Definition OOHPVector.h:236
struct HPVector HPVector
OOINLINE Vector HPVectorToVector(HPVector v) INLINE_CONST_FUNC
Definition OOHPVector.h:175
OOINLINE HPVector HPvector_add(HPVector a, HPVector b) INLINE_CONST_FUNC
Definition OOHPVector.h:213
HPVector OOHPVectorMultiplyMatrix(HPVector v, OOMatrix m) CONST_FUNC
Definition OOMatrix.m:137
struct OOMatrix OOMatrix
void OOGLLoadModelView(OOMatrix matrix)
void OOGLPushModelView(void)
void OOGLTranslateModelView(Vector vector)
OOMatrix OOGLPopModelView(void)
HPVector position
Definition Entity.m:576

References Entity::cam_zero_distance, Entity::camZeroDistance, drawImmediate:translucent:, Entity::drawRotationMatrix, HPvector_add(), HPvector_subtract(), HPVectorToVector(), Entity::isSubEntity, nil, Entity::no_draw_distance, NO_TARGET, OOGLLoadModelView(), OOGLPopModelView(), OOGLPushModelView(), OOGLTranslateModelView(), OOHPVectorMultiplyMatrix(), Entity::owner, PLAYER, Entity::position, and UNIVERSE.

Referenced by OOFlasherEntity::drawSubEntityImmediate:translucent:.

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

◆ initWithDiameter:

- (id) initWithDiameter: (float) diameter

Definition at line 50 of file OOLightParticleEntity.m.

50 :(float)diameter
51{
52 if ((self = [super init])) {
56
57 _colorComponents[0] = 1.0f;
58 _colorComponents[1] = 1.0f;
59 _colorComponents[2] = 1.0f;
60 _colorComponents[3] = 1.0f;
61
62 [self setScanClass:CLASS_NO_DRAW];
63 [self setStatus:STATUS_EFFECT];
64 }
65
66 return self;
67}
#define NO_DRAW_DISTANCE_FACTOR
Definition Entity.h:49
#define PARTICLE_DISTANCE_SCALE_HIGH
#define PARTICLE_DISTANCE_SCALE_LOW
#define M_SQRT2
Definition OOMaths.h:72
id init()
Definition Entity.m:64

References _colorComponents, _diameter, diameter, Entity::init, M_SQRT2, Entity::no_draw_distance, NO_DRAW_DISTANCE_FACTOR, PARTICLE_DISTANCE_SCALE_HIGH, PARTICLE_DISTANCE_SCALE_LOW, Entity::setScanClass:, and Entity::setStatus:.

Here is the call graph for this function:

◆ isEffect

- (BOOL) isEffect
implementation

Reimplemented from Entity.

Definition at line 312 of file OOLightParticleEntity.m.

313{
314 return YES;
315}

References isEffect.

Referenced by isEffect.

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

◆ resetGraphicsState

+ (void) resetGraphicsState
implementation

Reimplemented in OOFlashEffectEntity.

Provided by category OOLightParticleEntity(Private).

Definition at line 306 of file OOLightParticleEntity.m.

307{
308 [sBlobTexture release];
310}

References nil, resetGraphicsState, and sBlobTexture.

Referenced by resetGraphicsState.

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

◆ setColor:

- (void) setColor: (OOColor*) color

Definition at line 79 of file OOLightParticleEntity.m.

79 :(OOColor*)color
80{
81 [color getRed:&_colorComponents[0] green:&_colorComponents[1] blue:&_colorComponents[2] alpha:&_colorComponents[3]];
82}
void getRed:green:blue:alpha:(float *red,[green] float *green,[blue] float *blue,[alpha] float *alpha)
Definition OOColor.m:344

References OOColor::getRed:green:blue:alpha:.

Referenced by ShipEntity::fireDirectLaserShotAt:, ShipEntity::fireLaserShotInDirection:weaponIdentifier:, ShipEntity::fireSubentityLaserShot:, FlasherSetProperty(), FlasherSetProperty(), OOPlasmaBurstEntity::initWithPosition:, setColor:alpha:, and OOFlasherEntity::update:.

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

◆ setColor:alpha:

- (void) setColor: (OOColor*) color
alpha: (GLfloat) alpha 

Definition at line 84 of file OOLightParticleEntity.m.

84 :(OOColor*)color alpha:(GLfloat)alpha
85{
86 [self setColor:color];
87 _colorComponents[3] = alpha;
88}

References _colorComponents, and setColor:.

Referenced by OOFlasherEntity(Internal)::getCurrentColorComponents, OOFlashEffectEntity(Private)::initWithPosition:size:color:duration:, and OOPlasmaShotEntity::initWithPosition:velocity:energy:duration:color:.

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

◆ setDiameter:

- (void) setDiameter: (float) diameter

Definition at line 74 of file OOLightParticleEntity.m.

74 :(float)diameter
75{
77}

References _diameter, and diameter.

Referenced by FlasherSetProperty(), FlasherSetProperty(), and OOFlasherEntity::rescaleBy:.

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

◆ setUpTexture

+ (void) setUpTexture

Reimplemented in OOFlashEffectEntity.

Definition at line 287 of file OOLightParticleEntity.m.

288{
289 if (sBlobTexture == nil) {
290 sBlobTexture = [[OOTexture textureWithName:@"oolite-particle-blur.png"
291 inFolder:@"Textures"
292 options:kOOTextureMinFilterMipMap | kOOTextureMagFilterLinear | kOOTextureAlphaMask
293 anisotropy:kOOTextureDefaultAnisotropy / 2.0
294 lodBias:0.0] retain];
295 [[OOGraphicsResetManager sharedManager] registerClient:(id<OOGraphicsResetClient>)[OOLightParticleEntity class]];
296 }
297}
void registerClient:(id< OOGraphicsResetClient > client)
OOGraphicsResetManager * sharedManager()
id textureWithName:inFolder:options:anisotropy:lodBias:(NSString *name,[inFolder] NSString *directory,[options] OOTextureFlags options,[anisotropy] GLfloat anisotropy,[lodBias] GLfloat lodBias)
Definition OOTexture.m:132

References nil, OOGraphicsResetManager::registerClient:, sBlobTexture, setUpTexture, OOGraphicsResetManager::sharedManager, and OOTexture::textureWithName:inFolder:options:anisotropy:lodBias:.

Referenced by defaultParticleTexture, Universe::initWithGameView:, and setUpTexture.

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

◆ texture

- (OOTexture *) texture

Reimplemented in OOFlashEffectEntity.

Definition at line 282 of file OOLightParticleEntity.m.

References defaultParticleTexture, and texture.

Referenced by drawImmediate:translucent:, and texture.

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

Member Data Documentation

◆ _colorComponents

◆ _diameter


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