Irrlicht 3D Engine
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 More...
 
virtual ~CDynamicMeshBuffer ()
 destructor More...
 
virtual const core::aabbox3d< f32 > & getBoundingBox () const
 Get bounding box. More...
 
virtual IIndexBuffergetIndexBuffer () const
 
virtual const video::SMaterialgetMaterial () const
 Get Material of this buffer. More...
 
virtual video::SMaterialgetMaterial ()
 Get Material of this buffer. More...
 
virtual IVertexBuffergetVertexBuffer () const
 
virtual void recalculateBoundingBox ()
 Recalculate bounding box. More...
 
virtual void setBoundingBox (const core::aabbox3df &box)
 Set bounding box. More...
 
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. More...
 
virtual void append (const IMeshBuffer *const other)
 Append the meshbuffer to the current buffer. More...
 
virtual u32 getChangedID_Index () const
 Get the currently used ID for identification of changes. More...
 
virtual u32 getChangedID_Vertex () const
 Get the currently used ID for identification of changes. More...
 
virtual E_HARDWARE_MAPPING getHardwareMappingHint_Index () const
 get the current hardware mapping hint More...
 
virtual E_HARDWARE_MAPPING getHardwareMappingHint_Vertex () const
 get the current hardware mapping hint More...
 
virtual u32 getIndexCount () const
 Get amount of indices in this meshbuffer. More...
 
virtual video::E_INDEX_TYPE getIndexType () const
 Get type of index data which is stored in this meshbuffer. More...
 
virtual const u16getIndices () const
 Get access to Indices. More...
 
virtual u16getIndices ()
 Get access to Indices. More...
 
virtual const core::vector3dfgetNormal (u32 i) const
 returns normal of vertex i More...
 
virtual core::vector3dfgetNormal (u32 i)
 returns normal of vertex i More...
 
virtual const core::vector3dfgetPosition (u32 i) const
 returns position of vertex i More...
 
virtual core::vector3dfgetPosition (u32 i)
 returns position of vertex i More...
 
virtual const core::vector2dfgetTCoords (u32 i) const
 returns texture coords of vertex i More...
 
virtual core::vector2dfgetTCoords (u32 i)
 returns texture coords of vertex i More...
 
virtual u32 getVertexCount () const
 Get amount of vertices in meshbuffer. More...
 
virtual video::E_VERTEX_TYPE getVertexType () const
 Get type of vertex data which is stored in this meshbuffer. More...
 
virtual const void * getVertices () const
 Get access to vertex data. The data is an array of vertices. More...
 
virtual void * getVertices ()
 Get access to vertex data. The data is an array of vertices. More...
 
virtual void setDirty (E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX)
 flags the mesh as changed, reloads hardware buffers More...
 
virtual void setHardwareMappingHint (E_HARDWARE_MAPPING NewMappingHint, E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX)
 set the hardware mapping hint, for driver More...
 
- Public Member Functions inherited from irr::IReferenceCounted
 IReferenceCounted ()
 Constructor. More...
 
virtual ~IReferenceCounted ()
 Destructor. More...
 
bool drop () const
 Drops the object. Decrements the reference counter by one. More...
 
const c8getDebugName () const
 Returns the debug name of the object. More...
 
s32 getReferenceCount () const
 Get the reference count. More...
 
void grab () const
 Grabs the object. Increments the reference counter by one. More...
 

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

Detailed Description

Definition at line 18 of file CDynamicMeshBuffer.h.

Constructor & Destructor Documentation

§ CDynamicMeshBuffer()

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

constructor

Definition at line 22 of file CDynamicMeshBuffer.h.

§ ~CDynamicMeshBuffer()

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

destructor

Definition at line 29 of file CDynamicMeshBuffer.h.

References irr::IReferenceCounted::drop().

Member Function Documentation

§ getBoundingBox()

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.

§ getIndexBuffer()

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

Implements irr::scene::IDynamicMeshBuffer.

Definition at line 42 of file CDynamicMeshBuffer.h.

§ getMaterial() [1/2]

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.

§ getMaterial() [2/2]

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.

§ getVertexBuffer()

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

Implements irr::scene::IDynamicMeshBuffer.

Definition at line 37 of file CDynamicMeshBuffer.h.

Referenced by recalculateBoundingBox().

§ recalculateBoundingBox()

virtual void irr::scene::CDynamicMeshBuffer::recalculateBoundingBox ( )
inlinevirtual

§ setBoundingBox()

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.

§ setIndexBuffer()

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

§ setVertexBuffer()

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

Member Data Documentation

§ BoundingBox

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

Definition at line 105 of file CDynamicMeshBuffer.h.

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

§ Material

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: