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 E_PRIMITIVE_TYPE getPrimitiveType () const
 Get the kind of primitive geometry which is used by the meshbuffer. 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 setPrimitiveType (E_PRIMITIVE_TYPE type)
 Describe what kind of primitive geometry is used by the meshbuffer. More...
 
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::scene::IMeshBuffer
virtual u32 getPrimitiveCount () const
 Calculate how many geometric primitives are used by this meshbuffer. 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
 
E_PRIMITIVE_TYPE PrimitiveType
 Primitive type used for rendering (triangles, lines, ...) More...
 

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 30 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 81 of file CDynamicMeshBuffer.h.

References BoundingBox.

◆ getIndexBuffer()

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

Implements irr::scene::IDynamicMeshBuffer.

Definition at line 43 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 69 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 75 of file CDynamicMeshBuffer.h.

References Material.

◆ getPrimitiveType()

virtual E_PRIMITIVE_TYPE irr::scene::CDynamicMeshBuffer::getPrimitiveType ( ) const
inlinevirtual

Get the kind of primitive geometry which is used by the meshbuffer.

Implements irr::scene::IMeshBuffer.

Definition at line 112 of file CDynamicMeshBuffer.h.

References PrimitiveType.

◆ getVertexBuffer()

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

Implements irr::scene::IDynamicMeshBuffer.

Definition at line 38 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 87 of file CDynamicMeshBuffer.h.

References BoundingBox.

◆ setIndexBuffer()

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

◆ setPrimitiveType()

virtual void irr::scene::CDynamicMeshBuffer::setPrimitiveType ( E_PRIMITIVE_TYPE  type)
inlinevirtual

Describe what kind of primitive geometry is used by the meshbuffer.

Implements irr::scene::IMeshBuffer.

Definition at line 106 of file CDynamicMeshBuffer.h.

References PrimitiveType.

◆ setVertexBuffer()

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

Member Data Documentation

◆ BoundingBox

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

Definition at line 118 of file CDynamicMeshBuffer.h.

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

◆ Material

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

Definition at line 117 of file CDynamicMeshBuffer.h.

Referenced by getMaterial().

◆ PrimitiveType

E_PRIMITIVE_TYPE irr::scene::CDynamicMeshBuffer::PrimitiveType

Primitive type used for rendering (triangles, lines, ...)

Definition at line 120 of file CDynamicMeshBuffer.h.

Referenced by getPrimitiveType(), and setPrimitiveType().


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