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

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
virtual const core::aabbox3d<
f32 > & 
getBoundingBox () const
 Get bounding box.
virtual u32 getIndexCount () const
 Get index count.
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 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 MoveTo_2TCoords ()
 Convert to 2tcoords vertex type.
virtual void MoveTo_Tangents ()
 Convert to tangents vertex type.
virtual void recalculateBoundingBox ()
 Recalculate bounding box.
virtual void setBoundingBox (const core::aabbox3df &box)
 Set bounding box.
 SSkinMeshBuffer (video::E_VERTEX_TYPE vt=video::EVT_STANDARD)
 Default constructor.

Public Attributes

core::aabbox3d< f32BoundingBox
core::array< u16Indices
video::SMaterial Material
core::matrix4 Transformation
video::E_VERTEX_TYPE VertexType
core::array< video::S3DVertex2TCoordsVertices_2TCoords
core::array< video::S3DVertexVertices_Standard
core::array< video::S3DVertexTangentsVertices_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 233 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 230 of file SSkinMeshBuffer.h.

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

Get bounding box.

Implements irr::scene::IMeshBuffer.

Definition at line 116 of file SSkinMeshBuffer.h.

References BoundingBox.

virtual u32 irr::scene::SSkinMeshBuffer::getIndexCount  )  const [inline, virtual]
 

Get index count.

Implements irr::scene::IMeshBuffer.

Definition at line 110 of file SSkinMeshBuffer.h.

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

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

Get pointer to index array.

Implements irr::scene::IMeshBuffer.

Definition at line 104 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 98 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 36 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 30 of file SSkinMeshBuffer.h.

References Material.

virtual video::S3DVertex* irr::scene::SSkinMeshBuffer::getVertex u32  index  )  [inline, virtual]
 

Get standard vertex at given index.

Definition at line 42 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 84 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 172 of file SSkinMeshBuffer.h.

References VertexType.

virtual void* irr::scene::SSkinMeshBuffer::getVertices  )  [inline, virtual]
 

Get pointer to vertex array.

Implements irr::scene::IMeshBuffer.

Definition at line 70 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 const void* irr::scene::SSkinMeshBuffer::getVertices  )  const [inline, virtual]
 

Get pointer to vertex array.

Implements irr::scene::IMeshBuffer.

Definition at line 56 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::MoveTo_2TCoords  )  [inline, virtual]
 

Convert to 2tcoords vertex type.

Definition at line 178 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::MoveTo_Tangents  )  [inline, virtual]
 

Convert to tangents vertex type.

Definition at line 197 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 void irr::scene::SSkinMeshBuffer::recalculateBoundingBox  )  [inline, virtual]
 

Recalculate bounding box.

Implements irr::scene::IMeshBuffer.

Definition at line 128 of file SSkinMeshBuffer.h.

References irr::core::aabbox3d< T >::addInternalPoint(), BoundingBox, 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 122 of file SSkinMeshBuffer.h.

References BoundingBox.


Member Data Documentation

core::aabbox3d<f32> irr::scene::SSkinMeshBuffer::BoundingBox
 

Definition at line 245 of file SSkinMeshBuffer.h.

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

core::array<u16> irr::scene::SSkinMeshBuffer::Indices
 

Definition at line 244 of file SSkinMeshBuffer.h.

Referenced by getIndexCount(), and getIndices().

video::SMaterial irr::scene::SSkinMeshBuffer::Material
 

Definition at line 239 of file SSkinMeshBuffer.h.

Referenced by getMaterial().

core::matrix4 irr::scene::SSkinMeshBuffer::Transformation
 

Definition at line 237 of file SSkinMeshBuffer.h.

video::E_VERTEX_TYPE irr::scene::SSkinMeshBuffer::VertexType
 

Definition at line 240 of file SSkinMeshBuffer.h.

Referenced by getVertex(), getVertexCount(), getVertexType(), getVertices(), MoveTo_2TCoords(), MoveTo_Tangents(), and recalculateBoundingBox().

core::array<video::S3DVertex2TCoords> irr::scene::SSkinMeshBuffer::Vertices_2TCoords
 

Definition at line 242 of file SSkinMeshBuffer.h.

Referenced by getVertex(), getVertexCount(), getVertices(), MoveTo_2TCoords(), MoveTo_Tangents(), and recalculateBoundingBox().

core::array<video::S3DVertex> irr::scene::SSkinMeshBuffer::Vertices_Standard
 

Definition at line 243 of file SSkinMeshBuffer.h.

Referenced by getVertex(), getVertexCount(), getVertices(), MoveTo_2TCoords(), MoveTo_Tangents(), and recalculateBoundingBox().

core::array<video::S3DVertexTangents> irr::scene::SSkinMeshBuffer::Vertices_Tangents
 

Definition at line 241 of file SSkinMeshBuffer.h.

Referenced by getVertex(), getVertexCount(), getVertices(), MoveTo_Tangents(), and recalculateBoundingBox().


The documentation for this struct was generated from the following file:
The Irrlicht Engine
The Irrlicht Engine Documentation © 2003-2008 by Nikolaus Gebhardt. Generated on Sun Sep 21 08:58:01 2008 by Doxygen (1.4.2)