Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

OpenGLParticleSystem Class Reference

#include <OpenGLParticleSystem.h>

Inherits ParticleSystem.

Inheritance diagram for OpenGLParticleSystem:

Inheritance graph
[legend]
List of all members.

Public Member Functions

void draw ()
bool drawAndUpdate (Camera *camera, float dTime, bool absoluteTime=false, bool billboard=true)

Detailed Description

OpenGLParticleSystem.h

Author: Petter Alstermark, petter@alstermark.com

Definition at line 14 of file OpenGLParticleSystem.h.


Member Function Documentation

void OpenGLParticleSystem::draw  )  [virtual]
 

OpenGLParticleSystem.cpp

Author: Petter Alstermark, petter@alstermark.com

Implements ParticleSystem.

Definition at line 9 of file OpenGLParticleSystem.cpp.

References GL_TEXTURE0_ARB, glMultiTexCoord2fARB, ParticleSystem::m_age, Particle::m_alpha, Particle::m_color, Particle::m_location, ParticleSystem::m_location, ParticleSystem::m_particles, Particle::m_size, MAX_PARTICLES, Vec3::x, Vec3::y, Vec4::y, Vec3::z, and Vec4::z.

bool OpenGLParticleSystem::drawAndUpdate Camera camera,
float  dTime,
bool  absoluteTime = false,
bool  billboard = true
[virtual]
 

Implements ParticleSystem.

Definition at line 55 of file OpenGLParticleSystem.cpp.

References Clamp, GL_TEXTURE0_ARB, glMultiTexCoord2fARB, int(), Particle::m_age, ParticleSystem::m_age, ParticleSystem::m_alive, Particle::m_alpha, ParticleSystem::m_alphaEnd, ParticleSystem::m_alphaStart, ParticleSystem::m_alphaVar, ParticleSystem::m_baseLocation, Particle::m_color, ParticleSystem::m_colorEnd, ParticleSystem::m_colorStart, ParticleSystem::m_colorVar, Particle::m_dAlpha, Particle::m_dColor, Particle::m_dGravity, Particle::m_dSize, ParticleSystem::m_emissionResidue, Particle::m_gravity, ParticleSystem::m_gravityEnd, ParticleSystem::m_gravityStart, ParticleSystem::m_gravityVar, ParticleSystem::m_isMoving, ParticleSystem::m_isSuppressed, ParticleSystem::m_life, Particle::m_lifetime, ParticleSystem::m_lifeVar, Particle::m_location, ParticleSystem::m_location, ParticleSystem::m_particles, ParticleSystem::m_particlesAlive, ParticleSystem::m_particlesPerSec, Particle::m_prevLocation, ParticleSystem::m_prevLocation, Particle::m_size, ParticleSystem::m_sizeEnd, ParticleSystem::m_sizeStart, ParticleSystem::m_sizeVar, ParticleSystem::m_speed, ParticleSystem::m_speedVar, ParticleSystem::m_theta, ParticleSystem::m_timeLastUpdate, Particle::m_velocity, MAX_ALPHA, MAX_GRAVITY, MAX_LIFETIME, MAX_PARTICLES, MAX_SIZE, MAX_SPEED, MIN_ALPHA, MIN_GRAVITY, MIN_LIFETIME, MIN_SIZE, MIN_SPEED, RANDOM_NUM, Particle::setParent(), ParticleSystem::update(), Vec4::w, Vec4::x, Vec3::x, Vec3::y, Vec4::y, Vec4::z, and Vec3::z.

Referenced by Menu::drawFrame(), and Play::drawParticleSystems().

Here is the call graph for this function:


Generated on Sun Jun 5 15:50:32 2005 for Defacto by  doxygen 1.4.3