5 #ifndef __I_DYNAMIC_MESH_BUFFER_H_INCLUDED__ 6 #define __I_DYNAMIC_MESH_BUFFER_H_INCLUDED__ virtual E_HARDWARE_MAPPING getHardwareMappingHint_Vertex() const _IRR_OVERRIDE_
get the current hardware mapping hint
Change the vertex mapping.
virtual void append(const IMeshBuffer *const other) _IRR_OVERRIDE_
Append the meshbuffer to the current buffer.
virtual const core::vector3df & getPosition(u32 i) const _IRR_OVERRIDE_
returns position of vertex i
virtual IIndexBuffer & getIndexBuffer() const =0
virtual u32 size() const =0
virtual E_HARDWARE_MAPPING getHardwareMappingHint() const =0
get the current hardware mapping hint
virtual const core::aabbox3df & getBoundingBox() const =0
Get the axis aligned bounding box of this meshbuffer.
virtual u32 getChangedID() const =0
Get the currently used ID for identification of changes.
virtual void append(const void *const vertices, u32 numVertices, const u16 *const indices, u32 numIndices) _IRR_OVERRIDE_
Append the vertices and indices to the current buffer.
virtual void setHardwareMappingHint(E_HARDWARE_MAPPING NewMappingHint)=0
set the hardware mapping hint, for driver
virtual void * getVertices() _IRR_OVERRIDE_
Get access to vertex data. The data is an array of vertices.
GLuint GLuint GLsizei GLenum const GLvoid * indices
virtual const u16 * getIndices() const _IRR_OVERRIDE_
Get access to indices.
virtual u32 getChangedID_Vertex() const _IRR_OVERRIDE_
Get the currently used ID for identification of changes.
virtual const core::vector2df & getTCoords(u32 i) const _IRR_OVERRIDE_
returns texture coords of vertex i
virtual video::E_VERTEX_TYPE getVertexType() const _IRR_OVERRIDE_
Get type of vertex data which is stored in this meshbuffer.
Everything in the Irrlicht Engine can be found in this namespace.
virtual core::vector3df & getNormal(u32 i) _IRR_OVERRIDE_
returns normal of vertex i
virtual u32 size() const =0
virtual void setIndexBuffer(IIndexBuffer *indexBuffer)=0
virtual core::vector2df & getTCoords(u32 i) _IRR_OVERRIDE_
returns texture coords of vertex i
unsigned short u16
16 bit unsigned variable.
virtual void setDirty()=0
flags the meshbuffer as changed, reloads hardware buffers
virtual const core::vector3df & getNormal(u32 i) const _IRR_OVERRIDE_
returns normal of vertex i
virtual u32 getChangedID() const =0
Get the currently used ID for identification of changes.
virtual void setDirty(E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX) _IRR_OVERRIDE_
flags the mesh as changed, reloads hardware buffers
virtual video::E_INDEX_TYPE getType() const =0
virtual video::SMaterial & getMaterial()=0
Get the material of this meshbuffer.
virtual void * getData()=0
Struct for holding a mesh with a single material.
virtual u32 getIndexCount() const _IRR_OVERRIDE_
Get amount of indices in this meshbuffer.
virtual void recalculateBoundingBox()=0
Recalculates the bounding box. Should be called if the mesh changed.
virtual u16 * getIndices() _IRR_OVERRIDE_
Get access to indices.
unsigned int u32
32 bit unsigned variable.
virtual video::E_VERTEX_TYPE getType() const =0
Change both vertex and index mapping to the same value.
virtual E_HARDWARE_MAPPING getHardwareMappingHint() const =0
get the current hardware mapping hint
virtual core::vector3df & getPosition(u32 i) _IRR_OVERRIDE_
returns position of vertex i
Change the index mapping.
virtual void setBoundingBox(const core::aabbox3df &box)=0
Set axis aligned bounding box.
#define _IRR_OVERRIDE_
Defines an override macro, to protect virtual functions from typos and other mismatches.
virtual u32 getChangedID_Index() const _IRR_OVERRIDE_
Get the currently used ID for identification of changes.
virtual u32 getVertexCount() const _IRR_OVERRIDE_
Get amount of vertices in meshbuffer.
virtual void * getData()=0
virtual E_HARDWARE_MAPPING getHardwareMappingHint_Index() const _IRR_OVERRIDE_
get the current hardware mapping hint
virtual IVertexBuffer & getVertexBuffer() const =0
E_VERTEX_TYPE
Enumeration for all vertex types there are.
virtual video::E_INDEX_TYPE getIndexType() const _IRR_OVERRIDE_
Get type of index data which is stored in this meshbuffer.
virtual const void * getVertices() const _IRR_OVERRIDE_
Get access to vertex data. The data is an array of vertices.
virtual void setHardwareMappingHint(E_HARDWARE_MAPPING NewMappingHint)=0
set the hardware mapping hint, for driver
virtual void setDirty()=0
flags the meshbuffer as changed, reloads hardware buffers
Struct for holding parameters for a material renderer.
virtual void setHardwareMappingHint(E_HARDWARE_MAPPING NewMappingHint, E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX) _IRR_OVERRIDE_
set the hardware mapping hint, for driver
virtual void setVertexBuffer(IVertexBuffer *vertexBuffer)=0