Public Member Functions

CustomParticleDisplay Class Reference

Search for all occurrences

Detailed Description

See also:
Class ParticleSys, Class GraphicsWindow.

Description:
This class allow a plug-in particle system to provide its own custom drawing routine. Implement the DrawParticle() method of this class and register this callback with the SetCustomDraw() method of class ParticleSys.

#include <particle.h>

Inheritance diagram for CustomParticleDisplay:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual BOOL  DrawParticle (GraphicsWindow *gw, ParticleSys &parts, int i)=0

Member Function Documentation

virtual BOOL DrawParticle ( GraphicsWindow gw,
ParticleSys parts,
int  i 
) [pure virtual]
Remarks:
Draws the 'i-th' particle of the specified particle system.
Parameters:
GraphicsWindow *gw

The window into which to draw the particle.

ParticleSys &parts

The particle system whose 'i-th' particle is to be drawn.

int i

The index of the particle to draw.

CustomParticleDisplay CustomParticleDisplay CustomParticleDisplay CustomParticleDisplay CustomParticleDisplay CustomParticleDisplay CustomParticleDisplay CustomParticleDisplay CustomParticleDisplay CustomParticleDisplay
CustomParticleDisplay CustomParticleDisplay CustomParticleDisplay CustomParticleDisplay CustomParticleDisplay CustomParticleDisplay CustomParticleDisplay CustomParticleDisplay CustomParticleDisplay CustomParticleDisplay