A mesh buffer able to choose between S3DVertex2TCoords, S3DVertex and S3DVertexTangents at runtime. More...
#include <SSkinMeshBuffer.h>
A mesh buffer able to choose between S3DVertex2TCoords, S3DVertex and S3DVertexTangents at runtime.
Definition at line 19 of file SSkinMeshBuffer.h.
irr::scene::SSkinMeshBuffer::SSkinMeshBuffer | ( | video::E_VERTEX_TYPE | vt = video::EVT_STANDARD | ) | [inline] |
Default constructor.
Definition at line 22 of file SSkinMeshBuffer.h.
References irr::IReferenceCounted::setDebugName().
virtual void irr::scene::SSkinMeshBuffer::append | ( | const void *const | vertices, |
u32 | numVertices, | ||
const u16 *const | indices, | ||
u32 | numIndices | ||
) | [inline, virtual] |
append the vertices and indices to the current buffer
Implements irr::scene::IMeshBuffer.
Definition at line 329 of file SSkinMeshBuffer.h.
virtual void irr::scene::SSkinMeshBuffer::append | ( | const IMeshBuffer *const | other | ) | [inline, virtual] |
append the meshbuffer to the current buffer
Implements irr::scene::IMeshBuffer.
Definition at line 332 of file SSkinMeshBuffer.h.
void irr::scene::SSkinMeshBuffer::boundingBoxNeedsRecalculated | ( | void | ) | [inline] |
Call this after changing the positions of any vertex.
Definition at line 374 of file SSkinMeshBuffer.h.
References BoundingBoxNeedsRecalculated.
virtual void irr::scene::SSkinMeshBuffer::convertTo2TCoords | ( | ) | [inline, virtual] |
Convert to 2tcoords vertex type.
Definition at line 193 of file SSkinMeshBuffer.h.
References irr::core::array< T, TAlloc >::clear(), irr::video::S3DVertex::Color, irr::video::EVT_2TCOORDS, irr::video::EVT_STANDARD, irr::video::S3DVertex::Normal, irr::video::S3DVertex::Pos, irr::core::array< T, TAlloc >::push_back(), irr::core::array< T, TAlloc >::size(), irr::video::S3DVertex::TCoords, VertexType, Vertices_2TCoords, and Vertices_Standard.
virtual void irr::scene::SSkinMeshBuffer::convertToTangents | ( | ) | [inline, virtual] |
Convert to tangents vertex type.
Definition at line 212 of file SSkinMeshBuffer.h.
References irr::core::array< T, TAlloc >::clear(), irr::video::S3DVertex::Color, irr::video::EVT_2TCOORDS, irr::video::EVT_STANDARD, irr::video::EVT_TANGENTS, irr::video::S3DVertex::Normal, irr::video::S3DVertex::Pos, irr::core::array< T, TAlloc >::push_back(), irr::core::array< T, TAlloc >::size(), irr::video::S3DVertex::TCoords, VertexType, Vertices_2TCoords, Vertices_Standard, and Vertices_Tangents.
virtual const core::aabbox3d<f32>& irr::scene::SSkinMeshBuffer::getBoundingBox | ( | ) | const [inline, virtual] |
Get bounding box.
Implements irr::scene::IMeshBuffer.
Definition at line 126 of file SSkinMeshBuffer.h.
References BoundingBox.
virtual u32 irr::scene::SSkinMeshBuffer::getChangedID_Index | ( | ) | const [inline, virtual] |
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 371 of file SSkinMeshBuffer.h.
References ChangedID_Index.
virtual u32 irr::scene::SSkinMeshBuffer::getChangedID_Vertex | ( | ) | const [inline, virtual] |
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 369 of file SSkinMeshBuffer.h.
References ChangedID_Vertex.
virtual E_HARDWARE_MAPPING irr::scene::SSkinMeshBuffer::getHardwareMappingHint_Index | ( | ) | const [inline, virtual] |
get the current hardware mapping hint for index buffers
Implements irr::scene::IMeshBuffer.
Definition at line 341 of file SSkinMeshBuffer.h.
References MappingHint_Index.
virtual E_HARDWARE_MAPPING irr::scene::SSkinMeshBuffer::getHardwareMappingHint_Vertex | ( | ) | const [inline, virtual] |
get the current hardware mapping hint for vertex buffers
Implements irr::scene::IMeshBuffer.
Definition at line 335 of file SSkinMeshBuffer.h.
References MappingHint_Vertex.
virtual u32 irr::scene::SSkinMeshBuffer::getIndexCount | ( | ) | const [inline, virtual] |
Get index count.
Implements irr::scene::IMeshBuffer.
Definition at line 120 of file SSkinMeshBuffer.h.
References Indices, and irr::core::array< T, TAlloc >::size().
virtual video::E_INDEX_TYPE irr::scene::SSkinMeshBuffer::getIndexType | ( | ) | const [inline, virtual] |
Get type of index data which is stored in this meshbuffer.
Implements irr::scene::IMeshBuffer.
Definition at line 102 of file SSkinMeshBuffer.h.
References irr::video::EIT_16BIT.
virtual const u16* irr::scene::SSkinMeshBuffer::getIndices | ( | ) | const [inline, virtual] |
Get pointer to index array.
Implements irr::scene::IMeshBuffer.
Definition at line 108 of file SSkinMeshBuffer.h.
References irr::core::array< T, TAlloc >::const_pointer(), and Indices.
virtual u16* irr::scene::SSkinMeshBuffer::getIndices | ( | ) | [inline, virtual] |
Get pointer to index array.
Implements irr::scene::IMeshBuffer.
Definition at line 114 of file SSkinMeshBuffer.h.
References Indices, and irr::core::array< T, TAlloc >::pointer().
virtual const video::SMaterial& irr::scene::SSkinMeshBuffer::getMaterial | ( | ) | const [inline, virtual] |
Get Material of this buffer.
Implements irr::scene::IMeshBuffer.
Definition at line 33 of file SSkinMeshBuffer.h.
References Material.
virtual video::SMaterial& irr::scene::SSkinMeshBuffer::getMaterial | ( | ) | [inline, virtual] |
Get Material of this buffer.
Implements irr::scene::IMeshBuffer.
Definition at line 39 of file SSkinMeshBuffer.h.
References Material.
virtual const core::vector3df& irr::scene::SSkinMeshBuffer::getNormal | ( | u32 | i | ) | const [inline, virtual] |
returns normal of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 273 of file SSkinMeshBuffer.h.
References irr::video::EVT_2TCOORDS, irr::video::EVT_TANGENTS, VertexType, Vertices_2TCoords, Vertices_Standard, and Vertices_Tangents.
virtual core::vector3df& irr::scene::SSkinMeshBuffer::getNormal | ( | u32 | i | ) | [inline, virtual] |
returns normal of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 287 of file SSkinMeshBuffer.h.
References irr::video::EVT_2TCOORDS, irr::video::EVT_TANGENTS, VertexType, Vertices_2TCoords, Vertices_Standard, and Vertices_Tangents.
virtual const core::vector3df& irr::scene::SSkinMeshBuffer::getPosition | ( | u32 | i | ) | const [inline, virtual] |
returns position of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 245 of file SSkinMeshBuffer.h.
References irr::video::EVT_2TCOORDS, irr::video::EVT_TANGENTS, VertexType, Vertices_2TCoords, Vertices_Standard, and Vertices_Tangents.
virtual core::vector3df& irr::scene::SSkinMeshBuffer::getPosition | ( | u32 | i | ) | [inline, virtual] |
returns position of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 259 of file SSkinMeshBuffer.h.
References irr::video::EVT_2TCOORDS, irr::video::EVT_TANGENTS, VertexType, Vertices_2TCoords, Vertices_Standard, and Vertices_Tangents.
virtual const core::vector2df& irr::scene::SSkinMeshBuffer::getTCoords | ( | u32 | i | ) | const [inline, virtual] |
returns texture coords of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 301 of file SSkinMeshBuffer.h.
References irr::video::EVT_2TCOORDS, irr::video::EVT_TANGENTS, VertexType, Vertices_2TCoords, Vertices_Standard, and Vertices_Tangents.
virtual core::vector2df& irr::scene::SSkinMeshBuffer::getTCoords | ( | u32 | i | ) | [inline, virtual] |
returns texture coords of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 315 of file SSkinMeshBuffer.h.
References irr::video::EVT_2TCOORDS, irr::video::EVT_TANGENTS, VertexType, Vertices_2TCoords, Vertices_Standard, and Vertices_Tangents.
virtual video::S3DVertex* irr::scene::SSkinMeshBuffer::getVertex | ( | u32 | index | ) | [inline, virtual] |
Get standard vertex at given index.
Definition at line 45 of file SSkinMeshBuffer.h.
References irr::video::EVT_2TCOORDS, irr::video::EVT_TANGENTS, VertexType, Vertices_2TCoords, Vertices_Standard, and Vertices_Tangents.
virtual u32 irr::scene::SSkinMeshBuffer::getVertexCount | ( | ) | const [inline, virtual] |
Get vertex count.
Implements irr::scene::IMeshBuffer.
Definition at line 87 of file SSkinMeshBuffer.h.
References irr::video::EVT_2TCOORDS, irr::video::EVT_TANGENTS, irr::core::array< T, TAlloc >::size(), VertexType, Vertices_2TCoords, Vertices_Standard, and Vertices_Tangents.
virtual video::E_VERTEX_TYPE irr::scene::SSkinMeshBuffer::getVertexType | ( | ) | const [inline, virtual] |
Get vertex type.
Implements irr::scene::IMeshBuffer.
Definition at line 187 of file SSkinMeshBuffer.h.
References VertexType.
virtual const void* irr::scene::SSkinMeshBuffer::getVertices | ( | ) | const [inline, virtual] |
Get pointer to vertex array.
Implements irr::scene::IMeshBuffer.
Definition at line 59 of file SSkinMeshBuffer.h.
References irr::core::array< T, TAlloc >::const_pointer(), irr::video::EVT_2TCOORDS, irr::video::EVT_TANGENTS, VertexType, Vertices_2TCoords, Vertices_Standard, and Vertices_Tangents.
virtual void* irr::scene::SSkinMeshBuffer::getVertices | ( | ) | [inline, virtual] |
Get pointer to vertex array.
Implements irr::scene::IMeshBuffer.
Definition at line 73 of file SSkinMeshBuffer.h.
References irr::video::EVT_2TCOORDS, irr::video::EVT_TANGENTS, irr::core::array< T, TAlloc >::pointer(), VertexType, Vertices_2TCoords, Vertices_Standard, and Vertices_Tangents.
virtual void irr::scene::SSkinMeshBuffer::recalculateBoundingBox | ( | ) | [inline, virtual] |
Recalculate bounding box.
Implements irr::scene::IMeshBuffer.
Definition at line 138 of file SSkinMeshBuffer.h.
References irr::core::aabbox3d< T >::addInternalPoint(), BoundingBox, BoundingBoxNeedsRecalculated, irr::core::array< T, TAlloc >::empty(), irr::video::EVT_2TCOORDS, irr::video::EVT_STANDARD, irr::video::EVT_TANGENTS, irr::core::aabbox3d< T >::reset(), irr::core::array< T, TAlloc >::size(), VertexType, Vertices_2TCoords, Vertices_Standard, and Vertices_Tangents.
virtual void irr::scene::SSkinMeshBuffer::setBoundingBox | ( | const core::aabbox3df & | box | ) | [inline, virtual] |
Set bounding box.
Implements irr::scene::IMeshBuffer.
Definition at line 132 of file SSkinMeshBuffer.h.
References BoundingBox.
virtual void irr::scene::SSkinMeshBuffer::setDirty | ( | E_BUFFER_TYPE | Buffer = EBT_VERTEX_AND_INDEX | ) | [inline, virtual] |
flags the mesh as changed, reloads hardware buffers
Implements irr::scene::IMeshBuffer.
Definition at line 361 of file SSkinMeshBuffer.h.
References ChangedID_Index, ChangedID_Vertex, irr::scene::EBT_INDEX, irr::scene::EBT_VERTEX, and irr::scene::EBT_VERTEX_AND_INDEX.
virtual void irr::scene::SSkinMeshBuffer::setHardwareMappingHint | ( | E_HARDWARE_MAPPING | NewMappingHint, |
E_BUFFER_TYPE | Buffer = EBT_VERTEX_AND_INDEX |
||
) | [inline, virtual] |
set the hardware mapping hint, for driver
Implements irr::scene::IMeshBuffer.
Definition at line 347 of file SSkinMeshBuffer.h.
References irr::scene::EBT_INDEX, irr::scene::EBT_VERTEX, irr::scene::EBT_VERTEX_AND_INDEX, MappingHint_Index, and MappingHint_Vertex.
Definition at line 390 of file SSkinMeshBuffer.h.
Referenced by getBoundingBox(), recalculateBoundingBox(), and setBoundingBox().
Definition at line 396 of file SSkinMeshBuffer.h.
Referenced by boundingBoxNeedsRecalculated(), and recalculateBoundingBox().
Definition at line 382 of file SSkinMeshBuffer.h.
Referenced by getChangedID_Index(), and setDirty().
Definition at line 381 of file SSkinMeshBuffer.h.
Referenced by getChangedID_Vertex(), and setDirty().
Definition at line 379 of file SSkinMeshBuffer.h.
Referenced by getIndexCount(), and getIndices().
Definition at line 394 of file SSkinMeshBuffer.h.
Referenced by getHardwareMappingHint_Index(), and setHardwareMappingHint().
Definition at line 393 of file SSkinMeshBuffer.h.
Referenced by getHardwareMappingHint_Vertex(), and setHardwareMappingHint().
Definition at line 387 of file SSkinMeshBuffer.h.
Referenced by getMaterial().
Definition at line 385 of file SSkinMeshBuffer.h.
Definition at line 388 of file SSkinMeshBuffer.h.
Referenced by convertTo2TCoords(), convertToTangents(), getNormal(), getPosition(), getTCoords(), getVertex(), getVertexCount(), getVertexType(), getVertices(), and recalculateBoundingBox().
Definition at line 377 of file SSkinMeshBuffer.h.
Referenced by convertTo2TCoords(), convertToTangents(), getNormal(), getPosition(), getTCoords(), getVertex(), getVertexCount(), getVertices(), and recalculateBoundingBox().
Definition at line 378 of file SSkinMeshBuffer.h.
Referenced by convertTo2TCoords(), convertToTangents(), getNormal(), getPosition(), getTCoords(), getVertex(), getVertexCount(), getVertices(), and recalculateBoundingBox().
Definition at line 376 of file SSkinMeshBuffer.h.
Referenced by convertToTangents(), getNormal(), getPosition(), getTCoords(), getVertex(), getVertexCount(), getVertices(), and recalculateBoundingBox().