Implementation of the IMeshBuffer interface with shared vertex list. More...
#include <SSharedMeshBuffer.h>
Public Member Functions | |
SSharedMeshBuffer () | |
constructor More... | |
SSharedMeshBuffer (core::array< video::S3DVertex > *vertices) | |
constructor More... | |
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::aabbox3d< f32 > & | getBoundingBox () const |
returns an axis aligned bounding box 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 u32 | getIndexCount () const |
returns amount of indices 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 |
returns pointer to Indices More... | |
virtual u16 * | getIndices () |
returns pointer to Indices More... | |
virtual const video::SMaterial & | getMaterial () const |
returns the material of this meshbuffer More... | |
virtual video::SMaterial & | getMaterial () |
returns 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 coord of vertex i More... | |
virtual core::vector2df & | getTCoords (u32 i) |
returns texture coord of vertex i More... | |
virtual u32 | getVertexCount () const |
returns amount of vertices More... | |
virtual video::E_VERTEX_TYPE | getVertexType () const |
returns which type of vertex data is stored. More... | |
virtual const void * | getVertices () const |
returns pointer to vertices More... | |
virtual void * | getVertices () |
returns pointer to vertices More... | |
virtual void | recalculateBoundingBox () |
recalculates the bounding box. should be called if the mesh changed. More... | |
virtual void | setBoundingBox (const core::aabbox3df &box) |
set user 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... | |
![]() | |
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... | |
Public Attributes | |
core::aabbox3df | BoundingBox |
Bounding box. More... | |
u32 | ChangedID_Index |
ID used for hardware buffer management. More... | |
u32 | ChangedID_Vertex |
ID used for hardware buffer management. More... | |
core::array< u16 > | Indices |
Array of Indices. More... | |
E_HARDWARE_MAPPING | MappingHintIndex |
E_HARDWARE_MAPPING | MappingHintVertex |
hardware mapping hint More... | |
video::SMaterial | Material |
Material of this meshBuffer. More... | |
core::array< video::S3DVertex > * | Vertices |
Shared Array of vertices. More... | |
Additional Inherited Members | |
![]() | |
void | setDebugName (const c8 *newName) |
Sets the debug name of the object. More... | |
Implementation of the IMeshBuffer interface with shared vertex list.
Definition at line 16 of file SSharedMeshBuffer.h.
|
inline |
constructor
Definition at line 19 of file SSharedMeshBuffer.h.
References irr::IReferenceCounted::setDebugName().
|
inline |
constructor
Definition at line 27 of file SSharedMeshBuffer.h.
References irr::IReferenceCounted::setDebugName().
|
inlinevirtual |
append the vertices and indices to the current buffer
Implements irr::scene::IMeshBuffer.
Definition at line 171 of file SSharedMeshBuffer.h.
|
inlinevirtual |
append the meshbuffer to the current buffer
Implements irr::scene::IMeshBuffer.
Definition at line 174 of file SSharedMeshBuffer.h.
|
inlinevirtual |
returns an axis aligned bounding box
Implements irr::scene::IMeshBuffer.
Definition at line 98 of file SSharedMeshBuffer.h.
References BoundingBox.
|
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 212 of file SSharedMeshBuffer.h.
References ChangedID_Index.
|
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 208 of file SSharedMeshBuffer.h.
References ChangedID_Vertex.
|
inlinevirtual |
get the current hardware mapping hint
Implements irr::scene::IMeshBuffer.
Definition at line 183 of file SSharedMeshBuffer.h.
References MappingHintIndex.
|
inlinevirtual |
get the current hardware mapping hint
Implements irr::scene::IMeshBuffer.
Definition at line 177 of file SSharedMeshBuffer.h.
References MappingHintVertex.
|
inlinevirtual |
returns amount of indices
Implements irr::scene::IMeshBuffer.
Definition at line 86 of file SSharedMeshBuffer.h.
References Indices, and irr::core::array< T, TAlloc >::size().
|
inlinevirtual |
Get type of index data which is stored in this meshbuffer.
Implements irr::scene::IMeshBuffer.
Definition at line 92 of file SSharedMeshBuffer.h.
References irr::video::EIT_16BIT.
|
inlinevirtual |
returns pointer to Indices
Implements irr::scene::IMeshBuffer.
Definition at line 74 of file SSharedMeshBuffer.h.
References irr::core::array< T, TAlloc >::const_pointer(), and Indices.
|
inlinevirtual |
returns pointer to Indices
Implements irr::scene::IMeshBuffer.
Definition at line 80 of file SSharedMeshBuffer.h.
References Indices, and irr::core::array< T, TAlloc >::pointer().
|
inlinevirtual |
returns the material of this meshbuffer
Implements irr::scene::IMeshBuffer.
Definition at line 35 of file SSharedMeshBuffer.h.
References Material.
|
inlinevirtual |
returns the material of this meshbuffer
Implements irr::scene::IMeshBuffer.
Definition at line 41 of file SSharedMeshBuffer.h.
References Material.
|
inlinevirtual |
returns normal of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 143 of file SSharedMeshBuffer.h.
References _IRR_DEBUG_BREAK_IF, Indices, and Vertices.
|
inlinevirtual |
returns normal of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 150 of file SSharedMeshBuffer.h.
References _IRR_DEBUG_BREAK_IF, Indices, and Vertices.
|
inlinevirtual |
returns position of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 129 of file SSharedMeshBuffer.h.
References _IRR_DEBUG_BREAK_IF, Indices, and Vertices.
|
inlinevirtual |
returns position of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 136 of file SSharedMeshBuffer.h.
References _IRR_DEBUG_BREAK_IF, Indices, and Vertices.
|
inlinevirtual |
returns texture coord of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 157 of file SSharedMeshBuffer.h.
References _IRR_DEBUG_BREAK_IF, Indices, and Vertices.
|
inlinevirtual |
returns texture coord of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 164 of file SSharedMeshBuffer.h.
References _IRR_DEBUG_BREAK_IF, Indices, and Vertices.
|
inlinevirtual |
returns amount of vertices
Implements irr::scene::IMeshBuffer.
Definition at line 65 of file SSharedMeshBuffer.h.
References irr::core::array< T, TAlloc >::size(), and Vertices.
|
inlinevirtual |
returns which type of vertex data is stored.
Implements irr::scene::IMeshBuffer.
Definition at line 110 of file SSharedMeshBuffer.h.
References irr::video::EVT_STANDARD.
|
inlinevirtual |
returns pointer to vertices
Implements irr::scene::IMeshBuffer.
Definition at line 47 of file SSharedMeshBuffer.h.
References irr::core::array< T, TAlloc >::const_pointer(), and Vertices.
|
inlinevirtual |
returns pointer to vertices
Implements irr::scene::IMeshBuffer.
Definition at line 56 of file SSharedMeshBuffer.h.
References irr::core::array< T, TAlloc >::pointer(), and Vertices.
|
inlinevirtual |
recalculates the bounding box. should be called if the mesh changed.
Implements irr::scene::IMeshBuffer.
Definition at line 116 of file SSharedMeshBuffer.h.
References irr::core::aabbox3d< T >::addInternalPoint(), BoundingBox, irr::core::array< T, TAlloc >::empty(), Indices, irr::core::aabbox3d< T >::reset(), irr::core::array< T, TAlloc >::size(), and Vertices.
|
inlinevirtual |
set user axis aligned bounding box
Implements irr::scene::IMeshBuffer.
Definition at line 104 of file SSharedMeshBuffer.h.
References BoundingBox.
|
inlinevirtual |
flags the mesh as changed, reloads hardware buffers
Implements irr::scene::IMeshBuffer.
Definition at line 198 of file SSharedMeshBuffer.h.
References ChangedID_Index, ChangedID_Vertex, irr::scene::EBT_INDEX, irr::scene::EBT_VERTEX, and irr::scene::EBT_VERTEX_AND_INDEX.
|
inlinevirtual |
set the hardware mapping hint, for driver
Implements irr::scene::IMeshBuffer.
Definition at line 189 of file SSharedMeshBuffer.h.
References irr::scene::EBT_INDEX, irr::scene::EBT_VERTEX, irr::scene::EBT_VERTEX_AND_INDEX, MappingHintIndex, and MappingHintVertex.
core::aabbox3df irr::scene::SSharedMeshBuffer::BoundingBox |
Bounding box.
Definition at line 230 of file SSharedMeshBuffer.h.
Referenced by getBoundingBox(), recalculateBoundingBox(), and setBoundingBox().
u32 irr::scene::SSharedMeshBuffer::ChangedID_Index |
ID used for hardware buffer management.
Definition at line 227 of file SSharedMeshBuffer.h.
Referenced by getChangedID_Index(), and setDirty().
u32 irr::scene::SSharedMeshBuffer::ChangedID_Vertex |
ID used for hardware buffer management.
Definition at line 224 of file SSharedMeshBuffer.h.
Referenced by getChangedID_Vertex(), and setDirty().
core::array<u16> irr::scene::SSharedMeshBuffer::Indices |
Array of Indices.
Definition at line 221 of file SSharedMeshBuffer.h.
Referenced by getIndexCount(), getIndices(), getNormal(), getPosition(), getTCoords(), and recalculateBoundingBox().
E_HARDWARE_MAPPING irr::scene::SSharedMeshBuffer::MappingHintIndex |
Definition at line 234 of file SSharedMeshBuffer.h.
Referenced by getHardwareMappingHint_Index(), and setHardwareMappingHint().
E_HARDWARE_MAPPING irr::scene::SSharedMeshBuffer::MappingHintVertex |
hardware mapping hint
Definition at line 233 of file SSharedMeshBuffer.h.
Referenced by getHardwareMappingHint_Vertex(), and setHardwareMappingHint().
video::SMaterial irr::scene::SSharedMeshBuffer::Material |
Material of this meshBuffer.
Definition at line 215 of file SSharedMeshBuffer.h.
Referenced by getMaterial().
core::array<video::S3DVertex>* irr::scene::SSharedMeshBuffer::Vertices |
Shared Array of vertices.
Definition at line 218 of file SSharedMeshBuffer.h.
Referenced by getNormal(), getPosition(), getTCoords(), getVertexCount(), getVertices(), and recalculateBoundingBox().