Oolite 1.91.0.7604-240417-a536cbe
Loading...
Searching...
No Matches
Macros | Variables
OOParticleSystem.m File Reference
import "OOParticleSystem.h"
import "Universe.h"
import "OOTexture.h"
import "PlayerEntity.h"
import "OOLightParticleEntity.h"
import "OOMacroOpenGL.h"
import "MyOpenGLView.h"
+ Include dependency graph for OOParticleSystem.m:

Go to the source code of this file.

Macros

#define FREEZE_PARTICLES   0
 
#define DrawQuadForView(x, y, z, sz)
 

Variables

 __pad0__
 
 kMaxSpeed
 
unsigned count = 0.4f * size
 
OOColorhsvColor = [OOColor colorWithHue:0.12f + 0.08f * randf() saturation:1.0f brightness:1.0f alpha:1.0f]
 
GLfloat baseColor [4] = { 1.0f, 1.0f, 0.5f, 1.0f }
 
green __pad1__
 
return self
 
float maxSpeed = minSpeed * 4.0f
 

Macro Definition Documentation

◆ DrawQuadForView

#define DrawQuadForView ( x,
y,
z,
sz )
Value:
do { \
glTexCoord2f(0.0, 1.0); glVertex3f(x-sz, y-sz, z); \
glTexCoord2f(1.0, 1.0); glVertex3f(x+sz, y-sz, z); \
glTexCoord2f(1.0, 0.0); glVertex3f(x+sz, y+sz, z); \
glTexCoord2f(0.0, 0.0); glVertex3f(x-sz, y+sz, z); \
} while (0)
float y
float x

Definition at line 133 of file OOParticleSystem.m.

133#define DrawQuadForView(x, y, z, sz) \
134do { \
135 glTexCoord2f(0.0, 1.0); glVertex3f(x-sz, y-sz, z); \
136 glTexCoord2f(1.0, 1.0); glVertex3f(x+sz, y-sz, z); \
137 glTexCoord2f(1.0, 0.0); glVertex3f(x+sz, y+sz, z); \
138 glTexCoord2f(0.0, 0.0); glVertex3f(x-sz, y+sz, z); \
139} while (0)

◆ FREEZE_PARTICLES

#define FREEZE_PARTICLES   0

Definition at line 36 of file OOParticleSystem.m.

Variable Documentation

◆ __pad0__

__pad0__

Definition at line 1 of file OOParticleSystem.m.

◆ __pad1__

green __pad1__

Definition at line 277 of file OOParticleSystem.m.

◆ baseColor

GLfloat baseColor[4] = { 1.0f, 1.0f, 0.5f, 1.0f }

Definition at line 276 of file OOParticleSystem.m.

◆ count

count = 0.4f * size

Definition at line 270 of file OOParticleSystem.m.

Referenced by OORoleSet::anyRole, NSMutableString(OOExtensions)::appendFormatLine:, ArrayForErrorReport(), BuildOutlineContour(), CanonicalizeMaterialSpecifier(), AI::clearAllData, ComponentsFromVersionString(), DataArrayToPoints(), AI(OOAIDebugInspectorModule)::debugInspectorModules, DescribeValue(), EntityFromArgumentList(), ExpandDigitKey(), StationEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, OOVisualEffectEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, GetRGBAArrayFromInfo(), OOSmallFragmentBurstEntity::if, HeadUpDisplay::InitTextEngine(void), IsZeroString(), JSArrayConverter(), JSArrayFromNSArray(), LookUpLegacySelector(), MissionVariablesEnumerate(), NewRandomDigrams(), OOConstantFromJSStringPRIVATE(), OOConvertSystemDescriptionsToArrayFormat(), OOIsNumberLiteral(), OOLegacyConditionsAreSanitized(), OOLookUpPluralDescriptionPRIV(), OOParseRolesFromString(), PlayerEntity(Scripting)::PerformActionStatment, RunDeferredOperations(), SanitizeConditionalStatement(), ShipDamageAssessment(), ShipDumpCargo(), ShipGetProperty(), ShipGroupAddShip(), ShipGroupGetProperty(), ShipRestoreSubEntities(), ShipSetCargo(), ShipSetProperty(), ShipSpawn(), SoundSourcePlay(), SpecialSubstitutionSelectors(), SplitGeometryX(), SplitGeometryY(), SplitGeometryZ(), StationAddShipToShipyard(), SVGDumpAppendBaseContour(), SystemAddShipsOrGroup(), SystemAddShipsOrGroupToRoute(), SystemInfoEnumerate(), SystemLegacyAddShips(), SystemLegacyAddShipsAt(), SystemLegacyAddShipsAtPrecisely(), SystemLegacyAddShipsWithinRadius(), SystemLegacyAddSystemShips(), TranslateGeometryX(), TranslateGeometryY(), TranslateGeometryZ(), Verify_Array(), and Verify_Dictionary().

◆ hsvColor

OOColor* hsvColor = [OOColor colorWithHue:0.12f + 0.08f * randf() saturation:1.0f brightness:1.0f alpha:1.0f]

Definition at line 275 of file OOParticleSystem.m.

◆ kMaxSpeed

kMaxSpeed
Initial value:
= 400
}

Definition at line 267 of file OOParticleSystem.m.

◆ maxSpeed

float maxSpeed = minSpeed * 4.0f

Definition at line 325 of file OOParticleSystem.m.

◆ self

return self

Definition at line 288 of file OOParticleSystem.m.

Referenced by OOOctreeBuilder::SetNode_slow.