#include <IDynamicMeshBuffer.h>
Public Member Functions | |
virtual void | append (const void *const vertices, u32 numVertices, const u16 *const indices, u32 numIndices) |
Append the vertices and indices to the current buffer. More... | |
virtual void | append (const IMeshBuffer *const other) |
Append the meshbuffer to the current buffer. More... | |
virtual const core::aabbox3df & | getBoundingBox () const =0 |
Get the axis aligned bounding box of this meshbuffer. More... | |
virtual u32 | getChangedID_Index () const |
Get the currently used ID for identification of changes. More... | |
virtual u32 | getChangedID_Vertex () const |
Get the currently used ID for identification of changes. More... | |
virtual E_HARDWARE_MAPPING | getHardwareMappingHint_Index () const |
get the current hardware mapping hint More... | |
virtual E_HARDWARE_MAPPING | getHardwareMappingHint_Vertex () const |
get the current hardware mapping hint More... | |
virtual IIndexBuffer & | getIndexBuffer () const =0 |
virtual u32 | getIndexCount () const |
Get amount of indices in this meshbuffer. More... | |
virtual video::E_INDEX_TYPE | getIndexType () const |
Get type of index data which is stored in this meshbuffer. More... | |
virtual const u16 * | getIndices () const |
Get access to Indices. More... | |
virtual u16 * | getIndices () |
Get access to Indices. More... | |
virtual video::SMaterial & | getMaterial ()=0 |
Get the material of this meshbuffer. More... | |
virtual const video::SMaterial & | getMaterial () const =0 |
Get the material of this meshbuffer. More... | |
virtual const core::vector3df & | getNormal (u32 i) const |
returns normal of vertex i More... | |
virtual core::vector3df & | getNormal (u32 i) |
returns normal of vertex i More... | |
virtual const core::vector3df & | getPosition (u32 i) const |
returns position of vertex i More... | |
virtual core::vector3df & | getPosition (u32 i) |
returns position of vertex i More... | |
virtual const core::vector2df & | getTCoords (u32 i) const |
returns texture coords of vertex i More... | |
virtual core::vector2df & | getTCoords (u32 i) |
returns texture coords of vertex i More... | |
virtual IVertexBuffer & | getVertexBuffer () const =0 |
virtual u32 | getVertexCount () const |
Get amount of vertices in meshbuffer. More... | |
virtual video::E_VERTEX_TYPE | getVertexType () const |
Get type of vertex data which is stored in this meshbuffer. More... | |
virtual const void * | getVertices () const |
Get access to vertex data. The data is an array of vertices. More... | |
virtual void * | getVertices () |
Get access to vertex data. The data is an array of vertices. More... | |
virtual void | recalculateBoundingBox ()=0 |
Recalculates the bounding box. Should be called if the mesh changed. More... | |
virtual void | setBoundingBox (const core::aabbox3df &box)=0 |
Set axis aligned bounding box. More... | |
virtual void | setDirty (E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX) |
flags the mesh as changed, reloads hardware buffers More... | |
virtual void | setHardwareMappingHint (E_HARDWARE_MAPPING NewMappingHint, E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX) |
set the hardware mapping hint, for driver More... | |
virtual void | setIndexBuffer (IIndexBuffer *indexBuffer)=0 |
virtual void | setVertexBuffer (IVertexBuffer *vertexBuffer)=0 |
![]() | |
IReferenceCounted () | |
Constructor. More... | |
virtual | ~IReferenceCounted () |
Destructor. More... | |
bool | drop () const |
Drops the object. Decrements the reference counter by one. More... | |
const c8 * | getDebugName () const |
Returns the debug name of the object. More... | |
s32 | getReferenceCount () const |
Get the reference count. More... | |
void | grab () const |
Grabs the object. Increments the reference counter by one. More... | |
Additional Inherited Members | |
![]() | |
void | setDebugName (const c8 *newName) |
Sets the debug name of the object. More... | |
a dynamic meshBuffer
Definition at line 18 of file IDynamicMeshBuffer.h.
|
inlinevirtual |
Append the vertices and indices to the current buffer.
Only works for compatible vertex types.
vertices | Pointer to a vertex array. |
numVertices | Number of vertices in the array. |
indices | Pointer to index array. |
numIndices | Number of indices in array. |
Implements irr::scene::IMeshBuffer.
Definition at line 53 of file IDynamicMeshBuffer.h.
|
inlinevirtual |
Append the meshbuffer to the current buffer.
Only works for compatible vertex types
other | Buffer to append to this one. |
Implements irr::scene::IMeshBuffer.
Definition at line 61 of file IDynamicMeshBuffer.h.
|
pure virtual |
Get the axis aligned bounding box of this meshbuffer.
Implements irr::scene::IMeshBuffer.
Implemented in irr::scene::CDynamicMeshBuffer.
|
inlinevirtual |
Get the currently used ID for identification of changes.
This shouldn't be used for anything outside the VideoDriver.
Implements irr::scene::IMeshBuffer.
Definition at line 103 of file IDynamicMeshBuffer.h.
References irr::scene::IIndexBuffer::getChangedID(), and getIndexBuffer().
|
inlinevirtual |
Get the currently used ID for identification of changes.
This shouldn't be used for anything outside the VideoDriver.
Implements irr::scene::IMeshBuffer.
Definition at line 98 of file IDynamicMeshBuffer.h.
References irr::scene::IVertexBuffer::getChangedID(), and getVertexBuffer().
|
inlinevirtual |
get the current hardware mapping hint
Implements irr::scene::IMeshBuffer.
Definition at line 75 of file IDynamicMeshBuffer.h.
References irr::scene::IIndexBuffer::getHardwareMappingHint(), and getIndexBuffer().
|
inlinevirtual |
get the current hardware mapping hint
Implements irr::scene::IMeshBuffer.
Definition at line 69 of file IDynamicMeshBuffer.h.
References irr::scene::IVertexBuffer::getHardwareMappingHint(), and getVertexBuffer().
|
pure virtual |
Implemented in irr::scene::CDynamicMeshBuffer.
Referenced by getChangedID_Index(), getHardwareMappingHint_Index(), getIndexCount(), getIndexType(), getIndices(), setDirty(), and setHardwareMappingHint().
|
inlinevirtual |
Get amount of indices in this meshbuffer.
Implements irr::scene::IMeshBuffer.
Definition at line 163 of file IDynamicMeshBuffer.h.
References getIndexBuffer(), and irr::scene::IIndexBuffer::size().
|
inlinevirtual |
Get type of index data which is stored in this meshbuffer.
Implements irr::scene::IMeshBuffer.
Definition at line 142 of file IDynamicMeshBuffer.h.
References getIndexBuffer(), and irr::scene::IIndexBuffer::getType().
|
inlinevirtual |
Get access to Indices.
Implements irr::scene::IMeshBuffer.
Definition at line 149 of file IDynamicMeshBuffer.h.
References irr::scene::IIndexBuffer::getData(), and getIndexBuffer().
|
inlinevirtual |
Get access to Indices.
Implements irr::scene::IMeshBuffer.
Definition at line 156 of file IDynamicMeshBuffer.h.
References irr::scene::IIndexBuffer::getData(), and getIndexBuffer().
|
pure virtual |
Get the material of this meshbuffer.
Implements irr::scene::IMeshBuffer.
Implemented in irr::scene::CDynamicMeshBuffer.
|
pure virtual |
Get the material of this meshbuffer.
Implements irr::scene::IMeshBuffer.
Implemented in irr::scene::CDynamicMeshBuffer.
|
inlinevirtual |
returns normal of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 193 of file IDynamicMeshBuffer.h.
References getVertexBuffer().
|
inlinevirtual |
returns normal of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 199 of file IDynamicMeshBuffer.h.
References getVertexBuffer().
|
inlinevirtual |
returns position of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 169 of file IDynamicMeshBuffer.h.
References getVertexBuffer().
|
inlinevirtual |
returns position of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 175 of file IDynamicMeshBuffer.h.
References getVertexBuffer().
|
inlinevirtual |
returns texture coords of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 181 of file IDynamicMeshBuffer.h.
References getVertexBuffer().
|
inlinevirtual |
returns texture coords of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 187 of file IDynamicMeshBuffer.h.
References getVertexBuffer().
|
pure virtual |
Implemented in irr::scene::CDynamicMeshBuffer.
Referenced by getChangedID_Vertex(), getHardwareMappingHint_Vertex(), getNormal(), getPosition(), getTCoords(), getVertexCount(), getVertexType(), getVertices(), setDirty(), and setHardwareMappingHint().
|
inlinevirtual |
Get amount of vertices in meshbuffer.
Implements irr::scene::IMeshBuffer.
Definition at line 135 of file IDynamicMeshBuffer.h.
References getVertexBuffer(), and irr::scene::IVertexBuffer::size().
|
inlinevirtual |
Get type of vertex data which is stored in this meshbuffer.
Implements irr::scene::IMeshBuffer.
Definition at line 112 of file IDynamicMeshBuffer.h.
References irr::scene::IVertexBuffer::getType(), and getVertexBuffer().
|
inlinevirtual |
Get access to vertex data. The data is an array of vertices.
Which vertex type is used can be determined by getVertexType().
Implements irr::scene::IMeshBuffer.
Definition at line 120 of file IDynamicMeshBuffer.h.
References irr::scene::IVertexBuffer::getData(), and getVertexBuffer().
|
inlinevirtual |
Get access to vertex data. The data is an array of vertices.
Which vertex type is used can be determined by getVertexType().
Implements irr::scene::IMeshBuffer.
Definition at line 128 of file IDynamicMeshBuffer.h.
References irr::scene::IVertexBuffer::getData(), and getVertexBuffer().
|
pure virtual |
Recalculates the bounding box. Should be called if the mesh changed.
Implements irr::scene::IMeshBuffer.
Implemented in irr::scene::CDynamicMeshBuffer.
|
pure virtual |
Set axis aligned bounding box.
box | User defined axis aligned bounding box to use for this buffer. |
Implements irr::scene::IMeshBuffer.
Implemented in irr::scene::CDynamicMeshBuffer.
|
inlinevirtual |
flags the mesh as changed, reloads hardware buffers
Implements irr::scene::IMeshBuffer.
Definition at line 90 of file IDynamicMeshBuffer.h.
References irr::scene::EBT_INDEX, irr::scene::EBT_VERTEX, irr::scene::EBT_VERTEX_AND_INDEX, getIndexBuffer(), getVertexBuffer(), irr::scene::IVertexBuffer::setDirty(), and irr::scene::IIndexBuffer::setDirty().
|
inlinevirtual |
set the hardware mapping hint, for driver
Implements irr::scene::IMeshBuffer.
Definition at line 81 of file IDynamicMeshBuffer.h.
References irr::scene::EBT_INDEX, irr::scene::EBT_VERTEX, irr::scene::EBT_VERTEX_AND_INDEX, getIndexBuffer(), getVertexBuffer(), irr::scene::IVertexBuffer::setHardwareMappingHint(), and irr::scene::IIndexBuffer::setHardwareMappingHint().
|
pure virtual |
Implemented in irr::scene::CDynamicMeshBuffer.
|
pure virtual |
Implemented in irr::scene::CDynamicMeshBuffer.