Irrlicht 3D Engine
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:

List of all members.

Public Member Functions

Public Attributes


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

Returns:
Index type of this buffer.

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


Member Data Documentation


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