Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages  

particle_type_c Class Reference

Particle type class. More...

#include <particle.h>


Public Methods

 particle_type_c ()
 c'tor

virtual ~particle_type_c ()
 d'tor


Data Fields

vec2_c anglespeed
 add this degrees per second to angle

float lifetime
 total time to live

vec4_c begincolor
 colors

vec4_c endcolor
 colors

vec2_c beginsize
 sizes

vec2_c endsize
 sizes

vec3_c force
 direction of gravity

float mass
 mass

float sparkle
 amount of random sparkle


Protected Methods

void update ()
 called by particle system

void draw ()
 dito, to draw the particles

void new_particle (const vec3_t pos, const vec3_t speed)
 dito, create new particle


Protected Attributes

vertex_tverts
 the vertex buffer of all particles

ulong vertexcount
 vertex count

particle_tparticles
 all the particles themselves

ulong particlecount
 number of particles

particle_system_cpsystem
 particle system


Detailed Description

defines look and behaviour of it's particles

Todo:

float friction; ///< friction to apply

bool alignmotion; bool keepalignmotion; bool speedscalex; bool speedscaley;

Definition at line 219 of file particle.h.


Member Function Documentation

void new_particle const vec3_t    pos,
const vec3_t    speed
[protected]
 

Parameters:
pos  position of new particle
speed  speed of new particle

Definition at line 201 of file p_type.cpp.

References frand, SafeArrayDelete, and vec3_t.

Referenced by particle_emitter_c::update().


The documentation for this class was generated from the following files:
Generated on Wed Dec 18 15:48:49 2002 for omicron engine by doxygen1.2.18