A buffer to store particle mesh data to be rendered with Irrlicht. More...
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. |
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.
Definition at line 54 of file SPK_IRRBuffer.h.
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)
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.
Definition at line 217 of file SPK_IRRBuffer.h.
irr::scene::IIndexBuffer & getIndexBuffer | ( | ) |
Gets the inner index buffer.
Definition at line 198 of file SPK_IRRBuffer.h.
irr::scene::IDynamicMeshBuffer & getMeshBuffer | ( | ) |
Gets the inner mesh buffer.
Definition at line 203 of file SPK_IRRBuffer.h.
irr::scene::IVertexBuffer & getVertexBuffer | ( | ) |
Gets the inner vertex buffer.
Definition at line 193 of file SPK_IRRBuffer.h.
bool isVBOHintActivated | ( | ) | [static] |
Tells whether VBO hint is activated or not.
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.
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.
init | : true if VBOs are initialized, false of not |
Definition at line 222 of file SPK_IRRBuffer.h.