arsa
2.7
|
A mesh buffer able to choose between S3DVertex2TCoords, S3DVertex and S3DVertexTangents at runtime. More...
#include <SSkinMeshBuffer.h>
Public Member Functions | |
SSkinMeshBuffer (video::E_VERTEX_TYPE vt=video::EVT_STANDARD) | |
Default constructor. More... | |
virtual const video::SMaterial & | getMaterial () const _IRR_OVERRIDE_ |
Get Material of this buffer. More... | |
virtual video::SMaterial & | getMaterial () _IRR_OVERRIDE_ |
Get Material of this buffer. More... | |
virtual video::S3DVertex * | getVertex (u32 index) |
Get standard vertex at given index. More... | |
virtual const void * | getVertices () const _IRR_OVERRIDE_ |
Get pointer to vertex array. More... | |
virtual void * | getVertices () _IRR_OVERRIDE_ |
Get pointer to vertex array. More... | |
virtual u32 | getVertexCount () const _IRR_OVERRIDE_ |
Get vertex count. 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 index array. More... | |
virtual u16 * | getIndices () _IRR_OVERRIDE_ |
Get pointer to index array. More... | |
virtual u32 | getIndexCount () const _IRR_OVERRIDE_ |
Get index count. More... | |
virtual const core::aabbox3d< f32 > & | getBoundingBox () const _IRR_OVERRIDE_ |
Get bounding box. More... | |
virtual void | setBoundingBox (const core::aabbox3df &box) _IRR_OVERRIDE_ |
Set bounding box. More... | |
virtual void | recalculateBoundingBox () _IRR_OVERRIDE_ |
Recalculate bounding box. More... | |
virtual video::E_VERTEX_TYPE | getVertexType () const _IRR_OVERRIDE_ |
Get vertex type. More... | |
void | convertTo2TCoords () |
Convert to 2tcoords vertex type. More... | |
void | convertToTangents () |
Convert to tangents vertex type. 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 coords of vertex i More... | |
virtual core::vector2df & | getTCoords (u32 i) _IRR_OVERRIDE_ |
returns texture coords 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 for vertex buffers More... | |
virtual E_HARDWARE_MAPPING | getHardwareMappingHint_Index () const _IRR_OVERRIDE_ |
get the current hardware mapping hint for index buffers 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... | |
void | boundingBoxNeedsRecalculated (void) |
Call this after changing the positions of any vertex. 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 | |
core::array< video::S3DVertexTangents > | Vertices_Tangents |
core::array< video::S3DVertex2TCoords > | Vertices_2TCoords |
core::array< video::S3DVertex > | Vertices_Standard |
core::array< u16 > | Indices |
u32 | ChangedID_Vertex |
u32 | ChangedID_Index |
core::matrix4 | Transformation |
video::SMaterial | Material |
video::E_VERTEX_TYPE | VertexType |
core::aabbox3d< f32 > | BoundingBox |
E_PRIMITIVE_TYPE | PrimitiveType |
Primitive type used for rendering (triangles, lines, ...) More... | |
E_HARDWARE_MAPPING | MappingHint_Vertex:3 |
E_HARDWARE_MAPPING | MappingHint_Index:3 |
bool | BoundingBoxNeedsRecalculated:1 |
Additional Inherited Members | |
Protected Member Functions inherited from irr::IReferenceCounted | |
void | setDebugName (const c8 *newName) |
Sets the debug name of the object. More... | |
A mesh buffer able to choose between S3DVertex2TCoords, S3DVertex and S3DVertexTangents at runtime.
Definition at line 19 of file SSkinMeshBuffer.h.
|
inline |
Default constructor.
Definition at line 22 of file SSkinMeshBuffer.h.
|
inlinevirtual |
append the vertices and indices to the current buffer
Implements irr::scene::IMeshBuffer.
Definition at line 330 of file SSkinMeshBuffer.h.
|
inlinevirtual |
append the meshbuffer to the current buffer
Implements irr::scene::IMeshBuffer.
Definition at line 333 of file SSkinMeshBuffer.h.
Call this after changing the positions of any vertex.
Definition at line 387 of file SSkinMeshBuffer.h.
|
inline |
Convert to 2tcoords vertex type.
Definition at line 194 of file SSkinMeshBuffer.h.
|
inline |
Convert to tangents vertex type.
Definition at line 213 of file SSkinMeshBuffer.h.
|
inlinevirtual |
Get bounding box.
Implements irr::scene::IMeshBuffer.
Definition at line 127 of file SSkinMeshBuffer.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 384 of file SSkinMeshBuffer.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 382 of file SSkinMeshBuffer.h.
|
inlinevirtual |
get the current hardware mapping hint for index buffers
Implements irr::scene::IMeshBuffer.
Definition at line 342 of file SSkinMeshBuffer.h.
|
inlinevirtual |
get the current hardware mapping hint for vertex buffers
Implements irr::scene::IMeshBuffer.
Definition at line 336 of file SSkinMeshBuffer.h.
|
inlinevirtual |
Get index count.
Implements irr::scene::IMeshBuffer.
Definition at line 121 of file SSkinMeshBuffer.h.
|
inlinevirtual |
Get type of index data which is stored in this meshbuffer.
Implements irr::scene::IMeshBuffer.
Definition at line 103 of file SSkinMeshBuffer.h.
Get pointer to index array.
Implements irr::scene::IMeshBuffer.
Definition at line 109 of file SSkinMeshBuffer.h.
|
inlinevirtual |
Get pointer to index array.
Implements irr::scene::IMeshBuffer.
Definition at line 115 of file SSkinMeshBuffer.h.
|
inlinevirtual |
Get Material of this buffer.
Implements irr::scene::IMeshBuffer.
Definition at line 34 of file SSkinMeshBuffer.h.
|
inlinevirtual |
Get Material of this buffer.
Implements irr::scene::IMeshBuffer.
Definition at line 40 of file SSkinMeshBuffer.h.
|
inlinevirtual |
returns normal of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 274 of file SSkinMeshBuffer.h.
|
inlinevirtual |
returns normal of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 288 of file SSkinMeshBuffer.h.
|
inlinevirtual |
returns position of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 246 of file SSkinMeshBuffer.h.
|
inlinevirtual |
returns position of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 260 of file SSkinMeshBuffer.h.
|
inlinevirtual |
Get the kind of primitive geometry which is used by the meshbuffer.
Implements irr::scene::IMeshBuffer.
Definition at line 368 of file SSkinMeshBuffer.h.
|
inlinevirtual |
returns texture coords of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 302 of file SSkinMeshBuffer.h.
|
inlinevirtual |
returns texture coords of vertex i
Implements irr::scene::IMeshBuffer.
Definition at line 316 of file SSkinMeshBuffer.h.
|
inlinevirtual |
Get standard vertex at given index.
Definition at line 46 of file SSkinMeshBuffer.h.
|
inlinevirtual |
Get vertex count.
Implements irr::scene::IMeshBuffer.
Definition at line 88 of file SSkinMeshBuffer.h.
|
inlinevirtual |
Get vertex type.
Implements irr::scene::IMeshBuffer.
Definition at line 188 of file SSkinMeshBuffer.h.
Get pointer to vertex array.
Implements irr::scene::IMeshBuffer.
Definition at line 60 of file SSkinMeshBuffer.h.
|
inlinevirtual |
Get pointer to vertex array.
Implements irr::scene::IMeshBuffer.
Definition at line 74 of file SSkinMeshBuffer.h.
|
inlinevirtual |
Recalculate bounding box.
Implements irr::scene::IMeshBuffer.
Definition at line 139 of file SSkinMeshBuffer.h.
|
inlinevirtual |
Set bounding box.
Implements irr::scene::IMeshBuffer.
Definition at line 133 of file SSkinMeshBuffer.h.
|
inlinevirtual |
flags the mesh as changed, reloads hardware buffers
Implements irr::scene::IMeshBuffer.
Definition at line 374 of file SSkinMeshBuffer.h.
|
inlinevirtual |
set the hardware mapping hint, for driver
Implements irr::scene::IMeshBuffer.
Definition at line 348 of file SSkinMeshBuffer.h.
|
inlinevirtual |
Describe what kind of primitive geometry is used by the meshbuffer.
Implements irr::scene::IMeshBuffer.
Definition at line 362 of file SSkinMeshBuffer.h.
core::aabbox3d<f32> irr::scene::SSkinMeshBuffer::BoundingBox |
Definition at line 403 of file SSkinMeshBuffer.h.
bool irr::scene::SSkinMeshBuffer::BoundingBoxNeedsRecalculated |
Definition at line 412 of file SSkinMeshBuffer.h.
u32 irr::scene::SSkinMeshBuffer::ChangedID_Index |
Definition at line 395 of file SSkinMeshBuffer.h.
u32 irr::scene::SSkinMeshBuffer::ChangedID_Vertex |
Definition at line 394 of file SSkinMeshBuffer.h.
core::array<u16> irr::scene::SSkinMeshBuffer::Indices |
Definition at line 392 of file SSkinMeshBuffer.h.
E_HARDWARE_MAPPING irr::scene::SSkinMeshBuffer::MappingHint_Index |
Definition at line 410 of file SSkinMeshBuffer.h.
E_HARDWARE_MAPPING irr::scene::SSkinMeshBuffer::MappingHint_Vertex |
Definition at line 409 of file SSkinMeshBuffer.h.
video::SMaterial irr::scene::SSkinMeshBuffer::Material |
Definition at line 400 of file SSkinMeshBuffer.h.
E_PRIMITIVE_TYPE irr::scene::SSkinMeshBuffer::PrimitiveType |
Primitive type used for rendering (triangles, lines, ...)
Definition at line 406 of file SSkinMeshBuffer.h.
core::matrix4 irr::scene::SSkinMeshBuffer::Transformation |
Definition at line 398 of file SSkinMeshBuffer.h.
video::E_VERTEX_TYPE irr::scene::SSkinMeshBuffer::VertexType |
Definition at line 401 of file SSkinMeshBuffer.h.
core::array<video::S3DVertex2TCoords> irr::scene::SSkinMeshBuffer::Vertices_2TCoords |
Definition at line 390 of file SSkinMeshBuffer.h.
core::array<video::S3DVertex> irr::scene::SSkinMeshBuffer::Vertices_Standard |
Definition at line 391 of file SSkinMeshBuffer.h.
core::array<video::S3DVertexTangents> irr::scene::SSkinMeshBuffer::Vertices_Tangents |
Definition at line 389 of file SSkinMeshBuffer.h.