Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members | Tutorials

irr::scene::SSkinMeshBuffer Struct Reference

A mesh buffer able to choose between S3DVertex2TCoords, S3DVertex and S3DVertexTangents at runtime. More...

#include <SSkinMeshBuffer.h>

Inheritance diagram for irr::scene::SSkinMeshBuffer:
irr::scene::IMeshBuffer irr::IReferenceCounted

List of all members.

Public Member Functions

virtual void append (const IMeshBuffer *const other)
 append the meshbuffer to the current buffer
virtual void append (const void *const vertices, u32 numVertices, const u16 *const indices, u32 numIndices)
 append the vertices and indices to the current buffer
void boundingBoxNeedsRecalculated (void)
 Call this after changing the positions of any vertex.
virtual void convertTo2TCoords ()
 Convert to 2tcoords vertex type.
virtual void convertToTangents ()
 Convert to tangents vertex type.
virtual const core::aabbox3d
< f32 > & 
getBoundingBox () const
 Get bounding box.
virtual u32 getChangedID_Index () const
 Get the currently used ID for identification of changes.
virtual u32 getChangedID_Vertex () const
 Get the currently used ID for identification of changes.
virtual E_HARDWARE_MAPPING getHardwareMappingHint_Index () const
 get the current hardware mapping hint for index buffers
virtual E_HARDWARE_MAPPING getHardwareMappingHint_Vertex () const
 get the current hardware mapping hint for vertex buffers
virtual u32 getIndexCount () const
 Get index count.
virtual video::E_INDEX_TYPE getIndexType () const
 Get type of index data which is stored in this meshbuffer.
virtual u16getIndices ()
 Get pointer to index array.
virtual const u16getIndices () const
 Get pointer to index array.
virtual video::SMaterialgetMaterial ()
 Get Material of this buffer.
virtual const video::SMaterialgetMaterial () const
 Get Material of this buffer.
virtual core::vector3dfgetNormal (u32 i)
 returns normal of vertex i
virtual const core::vector3dfgetNormal (u32 i) const
 returns normal of vertex i
virtual core::vector3dfgetPosition (u32 i)
 returns position of vertex i
virtual const core::vector3dfgetPosition (u32 i) const
 returns position of vertex i
virtual core::vector2dfgetTCoords (u32 i)
 returns texture coords of vertex i
virtual const core::vector2dfgetTCoords (u32 i) const
 returns texture coords of vertex i
virtual video::S3DVertexgetVertex (u32 index)
 Get standard vertex at given index.
virtual u32 getVertexCount () const
 Get vertex count.
virtual video::E_VERTEX_TYPE getVertexType () const
 Get vertex type.
virtual void * getVertices ()
 Get pointer to vertex array.
virtual const void * getVertices () const
 Get pointer to vertex array.
virtual void recalculateBoundingBox ()
 Recalculate bounding box.
virtual void setBoundingBox (const core::aabbox3df &box)
 Set bounding box.
virtual void setDirty (E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX)
 flags the mesh as changed, reloads hardware buffers
virtual void setHardwareMappingHint (E_HARDWARE_MAPPING NewMappingHint, E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX)
 set the hardware mapping hint, for driver
 SSkinMeshBuffer (video::E_VERTEX_TYPE vt=video::EVT_STANDARD)
 Default constructor.

Public Attributes

core::aabbox3d< f32BoundingBox
bool BoundingBoxNeedsRecalculated:1
u32 ChangedID_Index
u32 ChangedID_Vertex
core::array< u16Indices
E_HARDWARE_MAPPING MappingHint_Index:3
E_HARDWARE_MAPPING MappingHint_Vertex:3
video::SMaterial Material
core::matrix4 Transformation
video::E_VERTEX_TYPE VertexType
core::array
< video::S3DVertex2TCoords
Vertices_2TCoords
core::array< video::S3DVertexVertices_Standard
core::array
< video::S3DVertexTangents
Vertices_Tangents

Detailed Description

A mesh buffer able to choose between S3DVertex2TCoords, S3DVertex and S3DVertexTangents at runtime.

Definition at line 19 of file SSkinMeshBuffer.h.


Constructor & Destructor Documentation

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().


Member Function Documentation

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 329 of file SSkinMeshBuffer.h.

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 326 of file SSkinMeshBuffer.h.

void irr::scene::SSkinMeshBuffer::boundingBoxNeedsRecalculated ( void   )  [inline]

Call this after changing the positions of any vertex.

Definition at line 371 of file SSkinMeshBuffer.h.

References BoundingBoxNeedsRecalculated.

virtual void irr::scene::SSkinMeshBuffer::convertTo2TCoords (  )  [inline, virtual]
virtual void irr::scene::SSkinMeshBuffer::convertToTangents (  )  [inline, virtual]
virtual const core::aabbox3d<f32>& irr::scene::SSkinMeshBuffer::getBoundingBox (  )  const [inline, virtual]

Get bounding box.

Implements irr::scene::IMeshBuffer.

Definition at line 123 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 368 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 366 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 338 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 332 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 117 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.

Returns:
Index type of this buffer.

Implements irr::scene::IMeshBuffer.

Definition at line 102 of file SSkinMeshBuffer.h.

References irr::video::EIT_16BIT.

virtual u16* irr::scene::SSkinMeshBuffer::getIndices (  )  [inline, virtual]

Get pointer to index array.

Implements irr::scene::IMeshBuffer.

Definition at line 111 of file SSkinMeshBuffer.h.

References Indices, and irr::core::array< T, TAlloc >::pointer().

virtual const u16* irr::scene::SSkinMeshBuffer::getIndices (  )  const [inline, virtual]

Get pointer to index array.

Implements irr::scene::IMeshBuffer.

Definition at line 105 of file SSkinMeshBuffer.h.

References irr::core::array< T, TAlloc >::const_pointer(), and Indices.

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 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 core::vector3df& irr::scene::SSkinMeshBuffer::getNormal ( u32  i  )  [inline, virtual]
virtual const core::vector3df& irr::scene::SSkinMeshBuffer::getNormal ( u32  i  )  const [inline, virtual]
virtual core::vector3df& irr::scene::SSkinMeshBuffer::getPosition ( u32  i  )  [inline, virtual]
virtual const core::vector3df& irr::scene::SSkinMeshBuffer::getPosition ( u32  i  )  const [inline, virtual]
virtual core::vector2df& irr::scene::SSkinMeshBuffer::getTCoords ( u32  i  )  [inline, virtual]

returns texture coords of vertex i

Implements irr::scene::IMeshBuffer.

Definition at line 312 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 298 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]
virtual video::E_VERTEX_TYPE irr::scene::SSkinMeshBuffer::getVertexType (  )  const [inline, virtual]

Get vertex type.

Implements irr::scene::IMeshBuffer.

Definition at line 184 of file SSkinMeshBuffer.h.

References VertexType.

virtual void* irr::scene::SSkinMeshBuffer::getVertices (  )  [inline, virtual]
virtual const void* irr::scene::SSkinMeshBuffer::getVertices (  )  const [inline, virtual]
virtual void irr::scene::SSkinMeshBuffer::recalculateBoundingBox (  )  [inline, virtual]
virtual void irr::scene::SSkinMeshBuffer::setBoundingBox ( const core::aabbox3df box  )  [inline, virtual]

Set bounding box.

Implements irr::scene::IMeshBuffer.

Definition at line 129 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 358 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 344 of file SSkinMeshBuffer.h.

References irr::scene::EBT_INDEX, irr::scene::EBT_VERTEX, irr::scene::EBT_VERTEX_AND_INDEX, MappingHint_Index, and MappingHint_Vertex.


Member Data Documentation

Definition at line 387 of file SSkinMeshBuffer.h.

Referenced by getBoundingBox(), recalculateBoundingBox(), and setBoundingBox().

Definition at line 393 of file SSkinMeshBuffer.h.

Referenced by boundingBoxNeedsRecalculated(), and recalculateBoundingBox().

Definition at line 379 of file SSkinMeshBuffer.h.

Referenced by getChangedID_Index(), and setDirty().

Definition at line 378 of file SSkinMeshBuffer.h.

Referenced by getChangedID_Vertex(), and setDirty().

Definition at line 376 of file SSkinMeshBuffer.h.

Referenced by getIndexCount(), and getIndices().

Definition at line 391 of file SSkinMeshBuffer.h.

Referenced by getHardwareMappingHint_Index(), and setHardwareMappingHint().

Definition at line 390 of file SSkinMeshBuffer.h.

Referenced by getHardwareMappingHint_Vertex(), and setHardwareMappingHint().

Definition at line 384 of file SSkinMeshBuffer.h.

Referenced by getMaterial().

Definition at line 382 of file SSkinMeshBuffer.h.


The documentation for this struct was generated from the following file:

The Irrlicht Engine
The Irrlicht Engine Documentation © 2003-2010 by Nikolaus Gebhardt. Generated on Sun Oct 24 12:42:09 2010 by Doxygen (1.6.2)