5 #ifndef __C_DYNAMIC_MESHBUFFER_H_INCLUDED__ 6 #define __C_DYNAMIC_MESHBUFFER_H_INCLUDED__ 51 newVertexBuffer->grab();
55 VertexBuffer=newVertexBuffer;
61 newIndexBuffer->grab();
65 IndexBuffer=newIndexBuffer;
bool drop() const
Drops the object. Decrements the reference counter by one.
virtual u32 size() const =0
CDynamicMeshBuffer(video::E_VERTEX_TYPE vertexType, video::E_INDEX_TYPE indexType)
constructor
E_PRIMITIVE_TYPE
Enumeration for all primitive types there are.
virtual void setBoundingBox(const core::aabbox3df &box) _IRR_OVERRIDE_
Set bounding box.
E_PRIMITIVE_TYPE PrimitiveType
Primitive type used for rendering (triangles, lines, ...)
video::SMaterial Material
Everything in the Irrlicht Engine can be found in this namespace.
void reset(T x, T y, T z)
Resets the bounding box to a one-point box.
virtual E_PRIMITIVE_TYPE getPrimitiveType() const _IRR_OVERRIDE_
Get the kind of primitive geometry which is used by the meshbuffer.
virtual ~CDynamicMeshBuffer()
destructor
virtual const core::aabbox3d< f32 > & getBoundingBox() const _IRR_OVERRIDE_
Get bounding box.
unsigned int u32
32 bit unsigned variable.
Explicitly set all vertices for each triangle.
virtual const video::SMaterial & getMaterial() const _IRR_OVERRIDE_
Get Material of this buffer.
virtual video::SMaterial & getMaterial() _IRR_OVERRIDE_
Get Material of this buffer.
virtual void recalculateBoundingBox() _IRR_OVERRIDE_
Recalculate bounding box.
void addInternalPoint(const vector3d< T > &p)
Adds a point to the bounding box.
#define _IRR_OVERRIDE_
Defines an override macro, to protect virtual functions from typos and other mismatches.
core::aabbox3d< f32 > BoundingBox
virtual void setPrimitiveType(E_PRIMITIVE_TYPE type) _IRR_OVERRIDE_
Describe what kind of primitive geometry is used by the meshbuffer.
GLuint GLuint GLsizei GLenum type
E_VERTEX_TYPE
Enumeration for all vertex types there are.
virtual IVertexBuffer & getVertexBuffer() const _IRR_OVERRIDE_
Struct for holding parameters for a material renderer.
virtual IIndexBuffer & getIndexBuffer() const _IRR_OVERRIDE_
virtual void setVertexBuffer(IVertexBuffer *newVertexBuffer) _IRR_OVERRIDE_
virtual void setIndexBuffer(IIndexBuffer *newIndexBuffer) _IRR_OVERRIDE_