- Timestamp:
- May 9, 2005, 4:10:16 PM (20 years ago)
- Location:
- orxonox/branches/particleEngine/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/particleEngine/src/defs/globals.h
r4119 r4128 46 46 #define CONFIG_NAME_TEXTURE_DETAIL "Texture-Detail" 47 47 #define CONFIG_NAME_MODEL_DETAIL "Model-Detail" 48 #define CONFIG_NAME_PARTICLES_ENABLED "Particles Enabled" 48 49 #define CONFIG_NAME_ANTI_ALIASING "Anti-Aliasing" 49 50 #define CONFIG_NAME_FILTER_METHOD "Filtering-Method" -
orxonox/branches/particleEngine/src/lib/graphics/particles/particle_emitter.h
r3966 r4128 22 22 23 23 public: 24 ParticleEmitter(const Vector& direction, float angle = .5, float emissionRate = 1.0,25 float velocity = 1.0);24 ParticleEmitter(const Vector& direction, float angle = .5, 25 float emissionRate = 1.0, float velocity = 1.0); 26 26 virtual ~ParticleEmitter(void); 27 27 -
orxonox/branches/particleEngine/src/lib/graphics/particles/particle_engine.h
r3966 r4128 8 8 9 9 #include "base_object.h" 10 #include "particle_system.h" 11 #include "particle_emitter.h" 10 12 11 13 // FORWARD DEFINITION -
orxonox/branches/particleEngine/src/lib/graphics/particles/particle_system.h
r4125 r4128 54 54 55 55 public: 56 ParticleSystem(unsigned int maxCount = PARTICLE_DEFAULT_MAX_COUNT, PARTICLE_TYPE type = PARTICLE_DEFAULT_TYPE); 56 ParticleSystem(unsigned int maxCount = PARTICLE_DEFAULT_MAX_COUNT, 57 PARTICLE_TYPE type = PARTICLE_DEFAULT_TYPE); 57 58 virtual ~ParticleSystem(); 58 59 void setName(const char* name); … … 63 64 void setInheritSpeed(float value); 64 65 void setLifeSpan(float lifeSpan, float randomLifeSpan = 0.0); 65 void setRadius(float startRadius, float endRadius, float randomStartRadius = 0.0, float randomEndRadius = 0.0); 66 void setRadius(float startRadius, float endRadius, 67 float randomStartRadius = 0.0, float randomEndRadius = 0.0); 66 68 void setConserve(float conserve); 67 69 void setMass(float mass, float randomMass); -
orxonox/branches/particleEngine/src/lib/gui/gui/gui_video.cc
r4091 r4128 104 104 Label* modelDetailLabel; //!< Label for model-detail. 105 105 Menu* modelDetail; //!< model-detail. 106 CheckButton* particles; //!< If the Particles should be enabled 106 107 Label* antiAliasingLabel; //!< Label for the anti-aliasing mode. 107 108 Menu* antiAliasing; //!< Menu for the Antialiasing-mode. … … 139 140 advancedBox->fill(modelDetail); 140 141 142 particles = new CheckButton(CONFIG_NAME_PARTICLES_ENABLED); 143 particles->saveability(); 144 particles->setDefaultValue(1); 145 advancedBox->fill(particles); 146 141 147 antiAliasingLabel = new Label("Anti-Aliasing-depth:"); 142 148 advancedBox->fill(antiAliasingLabel); … … 152 158 filterMethod->saveability(); 153 159 advancedBox->fill(filterMethod); 160 161 154 162 155 163 closeButton = new Button("close"); -
orxonox/branches/particleEngine/src/story_entities/world.cc
r4105 r4128 40 40 #include "garbage_collector.h" 41 41 #include "animation_player.h" 42 #include "particle_engine.h" 42 43 43 44 #include "command_node.h" … … 207 208 delete this->lightMan; 208 209 delete this->trackManager; 210 delete this->particleEngine; 209 211 TextEngine::getInstance()->flush(); 210 212 … … 251 253 this->garbageCollector = GarbageCollector::getInstance(); 252 254 255 this->particleEngine = ParticleEngine::getInstance(); 253 256 this->trackManager = TrackManager::getInstance(); 254 257 this->lightMan = LightManager::getInstance(); … … 489 492 this->spawn(terrain); 490 493 494 495 ParticleSystem* system = new ParticleSystem(1000); 496 system->setLifeSpan(1); 497 system->setRadius(2, 0, 2, 0); 498 ParticleEmitter* emitter = new ParticleEmitter(Vector(-1, 0, 0), 0, 500); 499 emitter->setParent(this->localPlayer); 500 501 particleEngine->addConnection(emitter, system); 491 502 } 492 503 … … 951 962 952 963 TextEngine::getInstance()->draw(); 964 particleEngine->draw(); 965 953 966 lightMan->draw(); // must be at the end of the drawing procedure, otherwise Light cannot be handled as PNodes // 954 967 } … … 1136 1149 1137 1150 AnimationPlayer::getInstance()->tick(seconds); 1151 particleEngine->tick(seconds); 1138 1152 } 1139 1153 this->lastFrame = currentFrame; -
orxonox/branches/particleEngine/src/story_entities/world.h
r4015 r4128 20 20 class GLMenuImageScreen; 21 21 class LightManager; 22 class ParticleEngine; 22 23 class Terrain; 23 24 class GarbageCollector; … … 107 108 PNode* nullParent; //!< The zero-point, that everything has as its parent. 108 109 TrackManager* trackManager; //!< The reference of the TrackManager that handles the course through the Level. 110 ParticleEngine* particleEngine; //!< The ParticleEngine of the World. 109 111 Camera* localCamera; //!< The current Camera 110 112 WorldEntity* sky; //!< The Environmental Heaven of orxonox \todo insert this to environment insted
Note: See TracChangeset
for help on using the changeset viewer.