IRRBuffer Class Reference

A buffer to store particle mesh data to be rendered with Irrlicht. More...

Inheritance diagram for IRRBuffer:
Buffer

List of all members.

Public Member Functions

void setVBOInitialized (bool init)
 Tells whether VBOs for this buffer are initialized or not.
void setUsed (size_t nb)
 Tells the amount of data that are used by the buffer.
irr::scene::IVertexBuffer & getVertexBuffer ()
 Gets the inner vertex buffer.
irr::scene::IIndexBuffer & getIndexBuffer ()
 Gets the inner index buffer.
irr::scene::IDynamicMeshBuffer & getMeshBuffer ()
 Gets the inner mesh buffer.
bool areVBOInitialized () const
 Tells whether VBOs are initialized for this buffer.

Static Public Member Functions

static void activateVBOHint (bool activate)
 Sets whether to try to store IRRBuffers on GPU or not.
static bool isVBOHintActivated ()
 Tells whether VBO hint is activated or not.

Detailed Description

A buffer to store particle mesh data to be rendered with Irrlicht.

The buffer can hold an index buffer of either 16 bits or 32 bits indices.
Moreover, it can be used as VBO and store on the GPU side in an optimized way.

Since:
1.04.00

Definition at line 54 of file SPK_IRRBuffer.h.


Member Function Documentation

static void activateVBOHint ( bool  activate  )  [static]

Sets whether to try to store IRRBuffers on GPU or not.

When creating an Irrlicht buffer, the system checks whether the VBO is activated or not.
If yes, VBOs may be used.

Not that activating VBOs is only a hint, the Irrlicht engine may not use them depending on the buffer size, the renderer used and the graphic card.
<br< By default, VBOs are not used (the hint is deactivated)

Parameters:
activate : true to try to use VBO when creating buffers, false not to
bool areVBOInitialized (  )  const

Tells whether VBOs are initialized for this buffer.

This is used internally by the renderers and may not be called by the user.

Returns:
true if VBOs are initialized, false of not

Definition at line 217 of file SPK_IRRBuffer.h.

irr::scene::IIndexBuffer & getIndexBuffer (  ) 

Gets the inner index buffer.

Returns:
the inner index buffer

Definition at line 198 of file SPK_IRRBuffer.h.

irr::scene::IDynamicMeshBuffer & getMeshBuffer (  ) 

Gets the inner mesh buffer.

Returns:
the inner mesh buffer

Definition at line 203 of file SPK_IRRBuffer.h.

irr::scene::IVertexBuffer & getVertexBuffer (  ) 

Gets the inner vertex buffer.

Returns:
the inner vertex buffer

Definition at line 193 of file SPK_IRRBuffer.h.

bool isVBOHintActivated (  )  [static]

Tells whether VBO hint is activated or not.

Returns:
true if VBO hint is activated, alse if not
Since:
1.05.03

Definition at line 227 of file SPK_IRRBuffer.h.

void setUsed ( size_t  nb  ) 

Tells the amount of data that are used by the buffer.

This is used internally by the renderers and may not be called by the user.

Parameters:
nb : the amount of data that are used by the buffer

Definition at line 208 of file SPK_IRRBuffer.h.

void setVBOInitialized ( bool  init  ) 

Tells whether VBOs for this buffer are initialized or not.

This is used internally by the renderers and may not be called by the user.

Parameters:
init : true if VBOs are initialized, false of not

Definition at line 222 of file SPK_IRRBuffer.h.


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