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

panda/src/testbed/test_particles.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 <particlefactories.h>
#include <forces.h>
#include <sparkleParticleRenderer.h>
#include <pointParticleRenderer.h>
#include <lineParticleRenderer.h>
#include <geomParticleRenderer.h>
#include <spriteParticleRenderer.h>
#include <particleSystemManager.h>
#include <clockObject.h>
#include <nodePath.h>
#include <pointShapeTransition.h>
#include <texture.h>
#include <texturePool.h>
#include <physicalNode.h>
#include <forceNode.h>
#include <linearEulerIntegrator.h>

Go to the source code of this file.

Defines

#define PARTICLE_SYSTEM_MANAGER_FRAME_STEPPING   1
#define PARTICLE_SYSTEM_POOL_SIZE   1000
#define PARTICLE_SYSTEM_BIRTH_RATE   0.01f
#define PARTICLE_SYSTEM_LITTER_SIZE   10
#define PARTICLE_SYSTEM_LITTER_SPREAD   0
#define POINT_PARTICLES
#define LINE_PARTICLE_RENDERER
#define SPHERE_VOLUME_EMITTER
#define PARTICLE_FACTORY_LIFESPAN_BASE   5.0f
#define SPRITE_PARTICLE_RENDERER_ALPHA_DISABLE   false
#define PARTICLE_RENDERER_ALPHA_MODE   BaseParticleRenderer::PR_ALPHA_NONE
#define LINE_PARTICLE_RENDERER_HEAD_COLOR   Colorf(1.0f, 1.0f, 1.0f, 1.0f)
#define LINE_PARTICLE_RENDERER_TAIL_COLOR   Colorf(1.0f, 1.0f, 1.0f, 1.0f)
#define EMISSION_TYPE_EXPLICIT
#define EMITTER_AMPLITUDE   1.0
#define EXPLICIT_LAUNCH_VEC   LVector3f(-1.0f, -1.0f, 1.0f)
#define SPHERE_VOLUME_EMITTER_RADIUS   1.0f

Functions

 PT (ParticleSystem) particle_system=new ParticleSystem(1000)
 PT (BaseParticleFactory) pf=new PointParticleFactory
 PT (LineParticleRenderer) pr=new LineParticleRenderer
 PT (SphereVolumeEmitter) pe=new SphereVolumeEmitter
 PT (Texture) texture
 PT (PhysicalNode) pn=new PhysicalNode
 PT (ForceNode) fn=new ForceNode
void event_csn_update (CPT_Event)
void event_add_particles (CPT_Event)
void set_pool_size (int size)
void event_more_particles (CPT_Event)
void event_switch_particle_factory_type (CPT_Event)
void demo_keys (EventHandler &)
int main (int argc, char *argv[])

Variables

PhysicsManager physics_manager
ParticleSystemManager ps_manager
int particles_added = 0


Detailed Description

Definition in file test_particles.cxx.


Define Documentation

#define EMISSION_TYPE_EXPLICIT
 

Definition at line 176 of file test_particles.cxx.

#define EMITTER_AMPLITUDE   1.0
 

Definition at line 181 of file test_particles.cxx.

#define EXPLICIT_LAUNCH_VEC   LVector3f(-1.0f, -1.0f, 1.0f)
 

Definition at line 187 of file test_particles.cxx.

#define LINE_PARTICLE_RENDERER
 

Definition at line 96 of file test_particles.cxx.

#define LINE_PARTICLE_RENDERER_HEAD_COLOR   Colorf(1.0f, 1.0f, 1.0f, 1.0f)
 

Definition at line 148 of file test_particles.cxx.

#define LINE_PARTICLE_RENDERER_TAIL_COLOR   Colorf(1.0f, 1.0f, 1.0f, 1.0f)
 

Definition at line 149 of file test_particles.cxx.

#define PARTICLE_FACTORY_LIFESPAN_BASE   5.0f
 

Definition at line 115 of file test_particles.cxx.

#define PARTICLE_RENDERER_ALPHA_MODE   BaseParticleRenderer::PR_ALPHA_NONE
 

Definition at line 132 of file test_particles.cxx.

#define PARTICLE_SYSTEM_BIRTH_RATE   0.01f
 

Definition at line 78 of file test_particles.cxx.

#define PARTICLE_SYSTEM_LITTER_SIZE   10
 

Definition at line 80 of file test_particles.cxx.

#define PARTICLE_SYSTEM_LITTER_SPREAD   0
 

Definition at line 81 of file test_particles.cxx.

#define PARTICLE_SYSTEM_MANAGER_FRAME_STEPPING   1
 

Definition at line 74 of file test_particles.cxx.

#define PARTICLE_SYSTEM_POOL_SIZE   1000
 

Definition at line 77 of file test_particles.cxx.

#define POINT_PARTICLES
 

Definition at line 90 of file test_particles.cxx.

#define SPHERE_VOLUME_EMITTER
 

Definition at line 109 of file test_particles.cxx.

#define SPHERE_VOLUME_EMITTER_RADIUS   1.0f
 

Definition at line 222 of file test_particles.cxx.

#define SPRITE_PARTICLE_RENDERER_ALPHA_DISABLE   false
 

Definition at line 131 of file test_particles.cxx.


Function Documentation

void demo_keys EventHandler  ) 
 

Definition at line 635 of file test_particles.cxx.

References event_handler.

void event_add_particles CPT_Event   )  [static]
 

Definition at line 307 of file test_particles.cxx.

References event_handler, nout, particles_added, physics_manager, and ps_manager.

void event_csn_update CPT_Event   )  [static]
 

Definition at line 299 of file test_particles.cxx.

References physics_manager, and ps_manager.

void event_more_particles CPT_Event   )  [static]
 

Definition at line 575 of file test_particles.cxx.

void event_switch_particle_factory_type CPT_Event   )  [static]
 

Definition at line 604 of file test_particles.cxx.

References particles_added.

int main int  argc,
char *  argv[]
 

Definition at line 644 of file test_particles.cxx.

PT ForceNode   ) 
 

PT PhysicalNode   ) 
 

PT Texture   ) 
 

PT SphereVolumeEmitter   ) 
 

PT LineParticleRenderer   ) 
 

PT BaseParticleFactory   ) 
 

PT ParticleSystem   ) 
 

void set_pool_size int  size  )  [static]
 

Definition at line 569 of file test_particles.cxx.


Variable Documentation

int particles_added = 0 [static]
 

Definition at line 235 of file test_particles.cxx.

Referenced by event_add_particles(), and event_switch_particle_factory_type().

PhysicsManager physics_manager
 

Definition at line 230 of file test_particles.cxx.

Referenced by Baseball::Baseball(), event_add_particles(), event_csn_update(), and main().

ParticleSystemManager ps_manager
 

Definition at line 231 of file test_particles.cxx.

Referenced by event_add_particles(), and event_csn_update().


Generated on Fri May 2 00:46:16 2003 for Panda by doxygen1.3