IRRLineRenderer Class Reference

A Renderer drawing particles as lines with Irrlicht. More...

Inheritance diagram for IRRLineRenderer:
IRRRenderer LineRendererInterface Renderer Registerable BufferHandler

List of all members.

Public Member Functions

 IRRLineRenderer (irr::IrrlichtDevice *d, float length=1.0f, float width=1.0f)
 Constructor of IRRLineRenderer.
virtual void setWidth (float width)
 Sets the width of this LineRendererInterface.
virtual void render (const Group &group)
 Renders a Group of particles.
void createBuffers (const Group &group)
 Creates the buffers for this buffer handler in the given group.

Static Public Member Functions

static IRRLineRenderercreate (irr::IrrlichtDevice *d, float length=1.0f, float width=1.0f)
 Creates and registers a new IRRLineRenderer.

Detailed Description

A Renderer drawing particles as lines with Irrlicht.

The length of the lines is function of the Particle velocity and is defined in the universe space while the width is fixed and defines in the screen space (in pixels).
Note that the width only works when using Irrlicht with OpenGL. With Direct3D, the parameter is ignored and 1 is used instead.
Below are the parameters of Particle that are used in this Renderer (others have no effects) :

Since:
1.04.00

Definition at line 51 of file SPK_IRRLineRenderer.h.


Constructor & Destructor Documentation

IRRLineRenderer ( irr::IrrlichtDevice *  d,
float  length = 1.0f,
float  width = 1.0f 
)

Constructor of IRRLineRenderer.

Parameters:
d : the Irrlicht device
length : the length multiplier of this IRRLineRenderer
width : the width of this IRRLineRenderer in pixels

Member Function Documentation

IRRLineRenderer * create ( irr::IrrlichtDevice *  d,
float  length = 1.0f,
float  width = 1.0f 
) [static]

Creates and registers a new IRRLineRenderer.

Parameters:
d : the Irrlicht device
length : the length multiplier of this IRRLineRenderer
width : the width of this IRRLineRenderer in pixels
Returns:
A new registered IRRLineRenderer

Definition at line 104 of file SPK_IRRLineRenderer.h.

void createBuffers ( const Group group  )  [virtual]

Creates the buffers for this buffer handler in the given group.

If the buffers for this type of buffer handler already exists within the Group, they are priorly destroyed.
The type of buffers created depends on the state of the buffer handler at the time this method is called.

This method has to be overridden in derived classes that use buffers

Parameters:
group : the Group in which to create the buffers for this buffer handler

Reimplemented from BufferHandler.

virtual void render ( const Group group  )  [virtual]

Renders a Group of particles.

Parameters:
group : the Group to render

Implements Renderer.

void setWidth ( float  width  )  [virtual]

Sets the width of this LineRendererInterface.

Parameters:
width : the width of this LineRendererInterface

Reimplemented from LineRendererInterface.

Definition at line 111 of file SPK_IRRLineRenderer.h.


Generated on Wed Apr 27 21:09:27 2011 for SPARK Particle Engine by  doxygen 1.6.1