arsa
2.7
|
Template implementation of the IMeshBuffer interface. More...
#include <CMeshBuffer.h>
Public Member Functions | |
CMeshBuffer () | |
Default constructor for empty meshbuffer. More... | |
virtual const video::SMaterial & | getMaterial () const _IRR_OVERRIDE_ |
Get material of this meshbuffer. More... | |
virtual video::SMaterial & | getMaterial () _IRR_OVERRIDE_ |
Get material of this meshbuffer. More... | |
virtual const void * | getVertices () const _IRR_OVERRIDE_ |
Get pointer to vertices. More... | |
virtual void * | getVertices () _IRR_OVERRIDE_ |
Get pointer to vertices. More... | |
virtual u32 | getVertexCount () const _IRR_OVERRIDE_ |
Get number of vertices. More... | |
virtual video::E_INDEX_TYPE | getIndexType () const _IRR_OVERRIDE_ |
Get type of index data which is stored in this meshbuffer. More... | |
virtual const u16 * | getIndices () const _IRR_OVERRIDE_ |
Get pointer to indices. More... | |
virtual u16 * | getIndices () _IRR_OVERRIDE_ |
Get pointer to indices. More... | |
virtual u32 | getIndexCount () const _IRR_OVERRIDE_ |
Get number of indices. More... | |
virtual const core::aabbox3d< f32 > & | getBoundingBox () const _IRR_OVERRIDE_ |
Get the axis aligned bounding box. More... | |
virtual void | setBoundingBox (const core::aabbox3df &box) _IRR_OVERRIDE_ |
Set the axis aligned bounding box. More... | |
virtual void | recalculateBoundingBox () _IRR_OVERRIDE_ |
Recalculate the bounding box. More... | |
virtual video::E_VERTEX_TYPE | getVertexType () const _IRR_OVERRIDE_ |
Get type of vertex data stored in this buffer. More... | |
virtual const core::vector3df & | getPosition (u32 i) const _IRR_OVERRIDE_ |
returns position of vertex i More... | |
virtual core::vector3df & | getPosition (u32 i) _IRR_OVERRIDE_ |
returns position of vertex i More... | |
virtual const core::vector3df & | getNormal (u32 i) const _IRR_OVERRIDE_ |
returns normal of vertex i More... | |
virtual core::vector3df & | getNormal (u32 i) _IRR_OVERRIDE_ |
returns normal of vertex i More... | |
virtual const core::vector2df & | getTCoords (u32 i) const _IRR_OVERRIDE_ |
returns texture coord of vertex i More... | |
virtual core::vector2df & | getTCoords (u32 i) _IRR_OVERRIDE_ |
returns texture coord of vertex i More... | |
virtual void | append (const void *const vertices, u32 numVertices, const u16 *const indices, u32 numIndices) _IRR_OVERRIDE_ |
Append the vertices and indices to the current buffer. More... | |
virtual void | append (const IMeshBuffer *const other) _IRR_OVERRIDE_ |
Append the meshbuffer to the current buffer. More... | |
virtual E_HARDWARE_MAPPING | getHardwareMappingHint_Vertex () const _IRR_OVERRIDE_ |
get the current hardware mapping hint More... | |
virtual E_HARDWARE_MAPPING | getHardwareMappingHint_Index () const _IRR_OVERRIDE_ |
get the current hardware mapping hint More... | |
virtual void | setHardwareMappingHint (E_HARDWARE_MAPPING NewMappingHint, E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX) _IRR_OVERRIDE_ |
set the hardware mapping hint, for driver More... | |
virtual void | setPrimitiveType (E_PRIMITIVE_TYPE type) _IRR_OVERRIDE_ |
Describe what kind of primitive geometry is used by the meshbuffer. More... | |
virtual E_PRIMITIVE_TYPE | getPrimitiveType () const _IRR_OVERRIDE_ |
Get the kind of primitive geometry which is used by the meshbuffer. More... | |
virtual void | setDirty (E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX) _IRR_OVERRIDE_ |
flags the mesh as changed, reloads hardware buffers More... | |
virtual u32 | getChangedID_Vertex () const _IRR_OVERRIDE_ |
Get the currently used ID for identification of changes. More... | |
virtual u32 | getChangedID_Index () const _IRR_OVERRIDE_ |
Get the currently used ID for identification of changes. More... | |
Public Member Functions inherited from irr::scene::IMeshBuffer | |
virtual u32 | getPrimitiveCount () const |
Calculate how many geometric primitives are used by this meshbuffer. More... | |
Public Member Functions inherited from irr::IReferenceCounted | |
IReferenceCounted () | |
Constructor. More... | |
virtual | ~IReferenceCounted () |
Destructor. More... | |
void | grab () const |
Grabs the object. Increments the reference counter by one. More... | |
bool | drop () const |
Drops the object. Decrements the reference counter by one. More... | |
s32 | getReferenceCount () const |
Get the reference count. More... | |
const c8 * | getDebugName () const |
Returns the debug name of the object. More... | |
Public Attributes | |
u32 | ChangedID_Vertex |
u32 | ChangedID_Index |
E_HARDWARE_MAPPING | MappingHint_Vertex |
hardware mapping hint More... | |
E_HARDWARE_MAPPING | MappingHint_Index |
video::SMaterial | Material |
Material for this meshbuffer. More... | |
core::array< T > | Vertices |
Vertices of this buffer. More... | |
core::array< u16 > | Indices |
Indices into the vertices of this buffer. More... | |
core::aabbox3d< f32 > | BoundingBox |
Bounding box of this meshbuffer. More... | |
E_PRIMITIVE_TYPE | PrimitiveType |
Primitive type used for rendering (triangles, lines, ...) More... | |
Additional Inherited Members | |
Protected Member Functions inherited from irr::IReferenceCounted | |
void | setDebugName (const c8 *newName) |
Sets the debug name of the object. More... | |
Template implementation of the IMeshBuffer interface.
Definition at line 17 of file CMeshBuffer.h.
|
inline |
Default constructor for empty meshbuffer.
Definition at line 21 of file CMeshBuffer.h.
|
inlinevirtual |
Append the vertices and indices to the current buffer.
Only works for compatible types, i.e. either the same type or the main buffer is of standard type. Otherwise, behavior is undefined.
Implements irr::scene::IMeshBuffer.
Definition at line 185 of file CMeshBuffer.h.
|
inlinevirtual |
Append the meshbuffer to the current buffer.
Only works for compatible types, i.e. either the same type or the main buffer is of standard type. Otherwise, behavior is undefined.
other | Meshbuffer to be appended to this one. |
Implements irr::scene::IMeshBuffer.
Definition at line 214 of file CMeshBuffer.h.
|
inlinevirtual |
Get the axis aligned bounding box.
Implements irr::scene::IMeshBuffer.
Definition at line 104 of file CMeshBuffer.h.
|
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 287 of file CMeshBuffer.h.
|
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 283 of file CMeshBuffer.h.
|
inlinevirtual |
get the current hardware mapping hint
Implements irr::scene::IMeshBuffer.
Definition at line 246 of file CMeshBuffer.h.
|
inlinevirtual |
get the current hardware mapping hint
Implements irr::scene::IMeshBuffer.
Definition at line 240 of file CMeshBuffer.h.
|
inlinevirtual |
Get number of indices.
Implements irr::scene::IMeshBuffer.
Definition at line 96 of file CMeshBuffer.h.
|
inlinevirtual |
Get type of index data which is stored in this meshbuffer.
Implements irr::scene::IMeshBuffer.
Definition at line 73 of file CMeshBuffer.h.
|
inlinevirtual |
Get pointer to indices.
Implements irr::scene::IMeshBuffer.
Definition at line 80 of file CMeshBuffer.h.
|
inlinevirtual |
Get pointer to indices.
Implements irr::scene::IMeshBuffer.
Definition at line 88 of file CMeshBuffer.h.
|
inlinevirtual |
Get material of this meshbuffer.
Implements irr::scene::IMeshBuffer.
Definition at line 34 of file CMeshBuffer.h.
|
inlinevirtual |
Get material of this meshbuffer.
Implements irr::scene::IMeshBuffer.
Definition at line 42 of file CMeshBuffer.h.
|
inlinevirtual |
returns normal of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 156 of file CMeshBuffer.h.
|
inlinevirtual |
returns normal of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 162 of file CMeshBuffer.h.
|
inlinevirtual |
returns position of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 144 of file CMeshBuffer.h.
|
inlinevirtual |
returns position of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 150 of file CMeshBuffer.h.
|
inlinevirtual |
Get the kind of primitive geometry which is used by the meshbuffer.
Implements irr::scene::IMeshBuffer.
Definition at line 267 of file CMeshBuffer.h.
|
inlinevirtual |
returns texture coord of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 168 of file CMeshBuffer.h.
|
inlinevirtual |
returns texture coord of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 174 of file CMeshBuffer.h.
|
inlinevirtual |
Get number of vertices.
Implements irr::scene::IMeshBuffer.
Definition at line 66 of file CMeshBuffer.h.
|
inlinevirtual |
Get type of vertex data stored in this buffer.
Implements irr::scene::IMeshBuffer.
Definition at line 138 of file CMeshBuffer.h.
|
inlinevirtual |
Get pointer to vertices.
Implements irr::scene::IMeshBuffer.
Definition at line 50 of file CMeshBuffer.h.
|
inlinevirtual |
Get pointer to vertices.
Implements irr::scene::IMeshBuffer.
Definition at line 58 of file CMeshBuffer.h.
|
inlinevirtual |
Recalculate the bounding box.
should be called if the mesh changed.
Implements irr::scene::IMeshBuffer.
Definition at line 121 of file CMeshBuffer.h.
|
inlinevirtual |
Set the axis aligned bounding box.
box | New axis aligned bounding box for this buffer. set user axis aligned bounding box |
Implements irr::scene::IMeshBuffer.
Definition at line 113 of file CMeshBuffer.h.
|
inlinevirtual |
flags the mesh as changed, reloads hardware buffers
Implements irr::scene::IMeshBuffer.
Definition at line 273 of file CMeshBuffer.h.
|
inlinevirtual |
set the hardware mapping hint, for driver
Implements irr::scene::IMeshBuffer.
Definition at line 252 of file CMeshBuffer.h.
|
inlinevirtual |
Describe what kind of primitive geometry is used by the meshbuffer.
Implements irr::scene::IMeshBuffer.
Definition at line 261 of file CMeshBuffer.h.
core::aabbox3d<f32> irr::scene::CMeshBuffer< T >::BoundingBox |
Bounding box of this meshbuffer.
Definition at line 303 of file CMeshBuffer.h.
u32 irr::scene::CMeshBuffer< T >::ChangedID_Index |
Definition at line 290 of file CMeshBuffer.h.
u32 irr::scene::CMeshBuffer< T >::ChangedID_Vertex |
Definition at line 289 of file CMeshBuffer.h.
core::array<u16> irr::scene::CMeshBuffer< T >::Indices |
Indices into the vertices of this buffer.
Definition at line 301 of file CMeshBuffer.h.
E_HARDWARE_MAPPING irr::scene::CMeshBuffer< T >::MappingHint_Index |
Definition at line 294 of file CMeshBuffer.h.
E_HARDWARE_MAPPING irr::scene::CMeshBuffer< T >::MappingHint_Vertex |
hardware mapping hint
Definition at line 293 of file CMeshBuffer.h.
video::SMaterial irr::scene::CMeshBuffer< T >::Material |
Material for this meshbuffer.
Definition at line 297 of file CMeshBuffer.h.
E_PRIMITIVE_TYPE irr::scene::CMeshBuffer< T >::PrimitiveType |
Primitive type used for rendering (triangles, lines, ...)
Definition at line 305 of file CMeshBuffer.h.
core::array<T> irr::scene::CMeshBuffer< T >::Vertices |
Vertices of this buffer.
Definition at line 299 of file CMeshBuffer.h.