Graphics::SkyParticles Class Reference

Particles that float in the sky (rain, snow, dust, ...). More...

#include <SkyParticles.h>

List of all members.

Public Member Functions

 SkyParticles ()
 Initialise, placing the particles in a random place.
void update (unsigned milliseconds_elapsed)
 Simulate the particles over the given time period.
void draw (const Engine::CarCamera &camera)
 Draw the particles around the given camera.

Private Attributes

btVector3 particles [m_num_particles]
 The positions of the particles in the origin cube.
Track::Texturem_texture
 The texture the particles are drawn with.
float phase
 The phase of the spiral effect.

Static Private Attributes

static const int m_num_particles = 1024


Detailed Description

Particles that float in the sky (rain, snow, dust, ...).

Definition at line 23 of file SkyParticles.h.


Constructor & Destructor Documentation

Graphics::SkyParticles::SkyParticles (  ) 

Initialise, placing the particles in a random place.

Definition at line 28 of file SkyParticles.cpp.


Member Function Documentation

void Graphics::SkyParticles::draw ( const Engine::CarCamera camera  ) 

Draw the particles around the given camera.

Definition at line 64 of file SkyParticles.cpp.

void Graphics::SkyParticles::update ( unsigned  milliseconds_elapsed  ) 

Simulate the particles over the given time period.

Parameters:
milliseconds_elapsed The number of milliseconds to simulate. Should be less than 16000.


Member Data Documentation

const int Graphics::SkyParticles::m_num_particles = 1024 [static, private]

Definition at line 36 of file SkyParticles.h.

Track::Texture* Graphics::SkyParticles::m_texture [private]

The texture the particles are drawn with.

Definition at line 40 of file SkyParticles.h.

btVector3 Graphics::SkyParticles::particles[m_num_particles] [private]

The positions of the particles in the origin cube.

Definition at line 38 of file SkyParticles.h.

float Graphics::SkyParticles::phase [private]

The phase of the spiral effect.

Definition at line 42 of file SkyParticles.h.


The documentation for this class was generated from the following files:
Get Racer at SourceForge.net. Fast, secure and Free Open Source software downloads

Generated at Mon Sep 6 00:41:18 2010 by Doxygen version 1.4.7 for Racer version svn335.