Irrlicht 3D Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
irr::scene::CDynamicMeshBuffer Class Reference

#include <CDynamicMeshBuffer.h>

+ Inheritance diagram for irr::scene::CDynamicMeshBuffer:

Public Member Functions

 CDynamicMeshBuffer (video::E_VERTEX_TYPE vertexType, video::E_INDEX_TYPE indexType)
 constructor
virtual ~CDynamicMeshBuffer ()
 destructor
virtual const core::aabbox3d
< f32 > & 
getBoundingBox () const
 Get bounding box.
virtual IIndexBuffergetIndexBuffer () const
virtual const video::SMaterialgetMaterial () const
 Get Material of this buffer.
virtual video::SMaterialgetMaterial ()
 Get Material of this buffer.
virtual IVertexBuffergetVertexBuffer () const
virtual void recalculateBoundingBox ()
 Recalculate bounding box.
virtual void setBoundingBox (const core::aabbox3df &box)
 Set bounding box.
virtual void setIndexBuffer (IIndexBuffer *newIndexBuffer)
virtual void setVertexBuffer (IVertexBuffer *newVertexBuffer)
- Public Member Functions inherited from irr::scene::IDynamicMeshBuffer
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 void append (const IMeshBuffer *const other)
 Append the meshbuffer to the current buffer.
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
virtual E_HARDWARE_MAPPING getHardwareMappingHint_Vertex () const
 get the current hardware mapping hint
virtual u32 getIndexCount () const
 Get amount of indices in this meshbuffer.
virtual video::E_INDEX_TYPE getIndexType () const
 Get type of index data which is stored in this meshbuffer.
virtual const u16getIndices () const
 Get access to Indices.
virtual u16getIndices ()
 Get access to Indices.
virtual const core::vector3dfgetNormal (u32 i) const
 returns normal of vertex i
virtual core::vector3dfgetNormal (u32 i)
 returns normal of vertex i
virtual const core::vector3dfgetPosition (u32 i) const
 returns position of vertex i
virtual core::vector3dfgetPosition (u32 i)
 returns position of vertex i
virtual const core::vector2dfgetTCoords (u32 i) const
 returns texture coords of vertex i
virtual core::vector2dfgetTCoords (u32 i)
 returns texture coords of vertex i
virtual u32 getVertexCount () const
 Get amount of vertices in meshbuffer.
virtual video::E_VERTEX_TYPE getVertexType () const
 Get type of vertex data which is stored in this meshbuffer.
virtual const void * getVertices () const
 Get access to vertex data. The data is an array of vertices.
virtual void * getVertices ()
 Get access to vertex data. The data is an array of vertices.
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

Public Attributes

core::aabbox3d< f32BoundingBox
video::SMaterial Material

Additional Inherited Members

- Protected Member Functions inherited from irr::IReferenceCounted
void setDebugName (const c8 *newName)
 Sets the debug name of the object.

Detailed Description

Definition at line 18 of file CDynamicMeshBuffer.h.

Constructor & Destructor Documentation

irr::scene::CDynamicMeshBuffer::CDynamicMeshBuffer ( video::E_VERTEX_TYPE  vertexType,
video::E_INDEX_TYPE  indexType 
)
inline

constructor

Definition at line 22 of file CDynamicMeshBuffer.h.

virtual irr::scene::CDynamicMeshBuffer::~CDynamicMeshBuffer ( )
inlinevirtual

destructor

Definition at line 29 of file CDynamicMeshBuffer.h.

References irr::IReferenceCounted::drop().

Member Function Documentation

virtual const core::aabbox3d<f32>& irr::scene::CDynamicMeshBuffer::getBoundingBox ( ) const
inlinevirtual

Get bounding box.

Implements irr::scene::IDynamicMeshBuffer.

Definition at line 80 of file CDynamicMeshBuffer.h.

References BoundingBox.

virtual IIndexBuffer& irr::scene::CDynamicMeshBuffer::getIndexBuffer ( ) const
inlinevirtual

Implements irr::scene::IDynamicMeshBuffer.

Definition at line 42 of file CDynamicMeshBuffer.h.

virtual const video::SMaterial& irr::scene::CDynamicMeshBuffer::getMaterial ( ) const
inlinevirtual

Get Material of this buffer.

Implements irr::scene::IDynamicMeshBuffer.

Definition at line 68 of file CDynamicMeshBuffer.h.

References Material.

virtual video::SMaterial& irr::scene::CDynamicMeshBuffer::getMaterial ( )
inlinevirtual

Get Material of this buffer.

Implements irr::scene::IDynamicMeshBuffer.

Definition at line 74 of file CDynamicMeshBuffer.h.

References Material.

virtual IVertexBuffer& irr::scene::CDynamicMeshBuffer::getVertexBuffer ( ) const
inlinevirtual

Implements irr::scene::IDynamicMeshBuffer.

Definition at line 37 of file CDynamicMeshBuffer.h.

Referenced by recalculateBoundingBox().

virtual void irr::scene::CDynamicMeshBuffer::recalculateBoundingBox ( )
inlinevirtual
virtual void irr::scene::CDynamicMeshBuffer::setBoundingBox ( const core::aabbox3df box)
inlinevirtual

Set bounding box.

Implements irr::scene::IDynamicMeshBuffer.

Definition at line 86 of file CDynamicMeshBuffer.h.

References BoundingBox.

virtual void irr::scene::CDynamicMeshBuffer::setIndexBuffer ( IIndexBuffer newIndexBuffer)
inlinevirtual
virtual void irr::scene::CDynamicMeshBuffer::setVertexBuffer ( IVertexBuffer newVertexBuffer)
inlinevirtual

Member Data Documentation

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

Definition at line 105 of file CDynamicMeshBuffer.h.

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

video::SMaterial irr::scene::CDynamicMeshBuffer::Material

Definition at line 104 of file CDynamicMeshBuffer.h.

Referenced by getMaterial().


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