5#ifndef __C_DYNAMIC_MESHBUFFER_H_INCLUDED__
6#define __C_DYNAMIC_MESHBUFFER_H_INCLUDED__
50 newVertexBuffer->
grab();
54 VertexBuffer=newVertexBuffer;
60 newIndexBuffer->
grab();
64 IndexBuffer=newIndexBuffer;
bool drop() const
Drops the object. Decrements the reference counter by one.
void grab() const
Grabs the object. Increments the reference counter by one.
Axis aligned bounding box in 3d dimensional space.
void addInternalPoint(const vector3d< T > &p)
Adds a point to the bounding box.
void reset(T x, T y, T z)
Resets the bounding box to a one-point box.
virtual IVertexBuffer & getVertexBuffer() const
virtual const video::SMaterial & getMaterial() const
Get Material of this buffer.
virtual ~CDynamicMeshBuffer()
destructor
virtual void recalculateBoundingBox()
Recalculate bounding box.
virtual void setVertexBuffer(IVertexBuffer *newVertexBuffer)
virtual IIndexBuffer & getIndexBuffer() const
virtual video::SMaterial & getMaterial()
Get Material of this buffer.
core::aabbox3d< f32 > BoundingBox
virtual void setBoundingBox(const core::aabbox3df &box)
Set bounding box.
virtual void setIndexBuffer(IIndexBuffer *newIndexBuffer)
video::SMaterial Material
virtual const core::aabbox3d< f32 > & getBoundingBox() const
Get bounding box.
CDynamicMeshBuffer(video::E_VERTEX_TYPE vertexType, video::E_INDEX_TYPE indexType)
constructor
virtual u32 size() const =0
Struct for holding parameters for a material renderer.
E_VERTEX_TYPE
Enumeration for all vertex types there are.
Everything in the Irrlicht Engine can be found in this namespace.
unsigned int u32
32 bit unsigned variable.