Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

test_recparticles.cxx File Reference

#include <framework.h>
#include <eventHandler.h>
#include <chancfg.h>
#include <string>
#include <renderModeTransition.h>
#include <colorTransition.h>
#include <cullFaceTransition.h>
#include <depthTestTransition.h>
#include <depthWriteTransition.h>
#include <textureTransition.h>
#include <lightTransition.h>
#include <materialTransition.h>
#include <transformTransition.h>
#include <get_rel_pos.h>
#include <boundingSphere.h>
#include <geomSphere.h>
#include <geomNode.h>
#include <notify.h>
#include <directionalLight.h>
#include <renderRelation.h>
#include <camera.h>
#include <frustum.h>
#include <orthoProjection.h>
#include <perspectiveProjection.h>
#include <textNode.h>
#include <physicsManager.h>
#include <particleSystem.h>
#include <emitters.h>
#include <forces.h>
#include <sparkleParticleRenderer.h>
#include <pointParticleRenderer.h>
#include <spriteParticleRenderer.h>
#include <pointParticleFactory.h>
#include <particleSystemManager.h>
#include <clockObject.h>
#include <nodePath.h>
#include <memoryUsage.h>
#include <texture.h>
#include <texturePool.h>

Go to the source code of this file.

Functions

void event_csn_update (CPT_Event)
 PT (ParticleSystem) explosion_system=new ParticleSystem(128)
 PT (PointParticleFactory) explosion_factory=new PointParticleFactory
 PT (SpriteParticleRenderer) explosion_renderer=new SpriteParticleRenderer
 PT (SphereSurfaceEmitter) explosion_emitter=new SphereSurfaceEmitter
 PT (PointParticleRenderer) fireworks_renderer=new PointParticleRenderer
 PT (LineEmitter) fireworks_emitter=new LineEmitter
 PT (Texture) fireworks_texture
void event_add_particles (CPT_Event)
void demo_keys (EventHandler &)
int main (int argc, char *argv[])

Variables

PhysicsManager physics_manager
ParticleSystemManager ps_manager


Function Documentation

void demo_keys EventHandler  ) 
 

Definition at line 148 of file test_recparticles.cxx.

References EventHandler::add_hook(), event_add_particles(), and event_handler.

void event_add_particles CPT_Event   )  [static]
 

Definition at line 85 of file test_recparticles.cxx.

References EventHandler::add_hook(), ParticleSystemManager::attach_particlesystem(), PhysicsManager::attach_physical(), Colorf, event_csn_update(), event_handler, physics_manager, ps_manager, and render.

Referenced by demo_keys().

void event_csn_update CPT_Event   )  [static]
 

Definition at line 66 of file test_recparticles.cxx.

References ParticleSystemManager::do_particles(), PhysicsManager::do_physics(), ClockObject::get_dt(), ClockObject::get_global_clock(), physics_manager, and ps_manager.

Referenced by event_add_particles().

int main int  argc,
char *  argv[]
 

Definition at line 152 of file test_recparticles.cxx.

References define_keys, demo_keys(), framework_main(), and TexturePool::load_texture().

PT Texture   ) 
 

PT LineEmitter   ) 
 

PT PointParticleRenderer   ) 
 

PT SphereSurfaceEmitter   ) 
 

PT SpriteParticleRenderer   ) 
 

PT PointParticleFactory   ) 
 

PT ParticleSystem   ) 
 


Variable Documentation

PhysicsManager physics_manager
 

Definition at line 62 of file test_recparticles.cxx.

ParticleSystemManager ps_manager
 

Definition at line 63 of file test_recparticles.cxx.


Generated on Fri Apr 18 00:11:03 2003 for Panda by doxygen1.3