5 #ifndef __S_SHARED_MESH_BUFFER_H_INCLUDED__ 6 #define __S_SHARED_MESH_BUFFER_H_INCLUDED__ Change the vertex mapping.
virtual core::vector3df & getNormal(u32 i) _IRR_OVERRIDE_
returns normal of vertex i
virtual const core::vector2df & getTCoords(u32 i) const _IRR_OVERRIDE_
returns texture coord of vertex i
virtual void recalculateBoundingBox() _IRR_OVERRIDE_
recalculates the bounding box. should be called if the mesh changed.
E_PRIMITIVE_TYPE
Enumeration for all primitive types there are.
virtual void append(const IMeshBuffer *const other) _IRR_OVERRIDE_
append the meshbuffer to the current buffer
virtual E_HARDWARE_MAPPING getHardwareMappingHint_Vertex() const _IRR_OVERRIDE_
get the current hardware mapping hint
virtual u16 * getIndices() _IRR_OVERRIDE_
returns pointer to indices
virtual void setBoundingBox(const core::aabbox3df &box) _IRR_OVERRIDE_
set user axis aligned bounding box
virtual const core::aabbox3d< f32 > & getBoundingBox() const _IRR_OVERRIDE_
returns an axis aligned bounding box
GLuint GLuint GLsizei GLenum const GLvoid * indices
const T * const_pointer() const
Gets a const pointer to the array.
core::array< video::S3DVertex > * Vertices
Shared Array of vertices.
virtual const video::SMaterial & getMaterial() const _IRR_OVERRIDE_
returns the material of this meshbuffer
video::SMaterial Material
Material of this meshBuffer.
virtual const void * getVertices() const _IRR_OVERRIDE_
returns pointer to vertices
virtual void setPrimitiveType(E_PRIMITIVE_TYPE type) _IRR_OVERRIDE_
Describe what kind of primitive geometry is used by the meshbuffer.
Everything in the Irrlicht Engine can be found in this namespace.
Don't store on the hardware.
core::array< u16 > Indices
Array of indices.
void reset(T x, T y, T z)
Resets the bounding box to a one-point box.
virtual E_HARDWARE_MAPPING getHardwareMappingHint_Index() const _IRR_OVERRIDE_
get the current hardware mapping hint
virtual video::SMaterial & getMaterial() _IRR_OVERRIDE_
returns the material of this meshbuffer
bool empty() const
Check if array is empty.
unsigned short u16
16 bit unsigned variable.
core::aabbox3df BoundingBox
Bounding box.
virtual core::vector3df & getPosition(u32 i) _IRR_OVERRIDE_
returns position of vertex i
virtual core::vector2df & getTCoords(u32 i) _IRR_OVERRIDE_
returns texture coord of vertex i
Struct for holding a mesh with a single material.
SSharedMeshBuffer(core::array< video::S3DVertex > *vertices)
constructor
unsigned int u32
32 bit unsigned variable.
Standard vertex type used by the Irrlicht engine, video::S3DVertex.
Explicitly set all vertices for each triangle.
Change both vertex and index mapping to the same value.
u32 size() const
Get number of occupied elements of the array.
virtual void setHardwareMappingHint(E_HARDWARE_MAPPING NewMappingHint, E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX) _IRR_OVERRIDE_
set the hardware mapping hint, for driver
#define _IRR_DEBUG_BREAK_IF(_CONDITION_)
define a break macro for debugging.
virtual const core::vector3df & getNormal(u32 i) const _IRR_OVERRIDE_
returns normal of vertex i
virtual E_PRIMITIVE_TYPE getPrimitiveType() const _IRR_OVERRIDE_
Get the kind of primitive geometry which is used by the meshbuffer.
virtual u32 getChangedID_Vertex() const _IRR_OVERRIDE_
Get the currently used ID for identification of changes.
virtual const u16 * getIndices() const _IRR_OVERRIDE_
returns pointer to indices
Change the index mapping.
SSharedMeshBuffer()
constructor
void addInternalPoint(const vector3d< T > &p)
Adds a point to the bounding box.
Self reallocating template array (like stl vector) with additional features.
#define _IRR_OVERRIDE_
Defines an override macro, to protect virtual functions from typos and other mismatches.
E_PRIMITIVE_TYPE PrimitiveType
Primitive type used for rendering (triangles, lines, ...)
Implementation of the IMeshBuffer interface with shared vertex list.
virtual video::E_VERTEX_TYPE getVertexType() const _IRR_OVERRIDE_
returns which type of vertex data is stored.
virtual u32 getVertexCount() const _IRR_OVERRIDE_
returns amount of vertices
void setDebugName(const c8 *newName)
Sets the debug name of the object.
virtual const core::vector3df & getPosition(u32 i) const _IRR_OVERRIDE_
returns position of vertex i
GLuint GLuint GLsizei GLenum type
E_VERTEX_TYPE
Enumeration for all vertex types there are.
virtual u32 getIndexCount() const _IRR_OVERRIDE_
returns amount of indices
virtual void * getVertices() _IRR_OVERRIDE_
returns pointer to vertices
u32 ChangedID_Index
ID used for hardware buffer management.
E_HARDWARE_MAPPING MappingHintVertex
hardware mapping hint
Struct for holding parameters for a material renderer.
T * pointer()
Gets a pointer to the array.
u32 ChangedID_Vertex
ID used for hardware buffer management.
virtual void setDirty(E_BUFFER_TYPE buffer=EBT_VERTEX_AND_INDEX) _IRR_OVERRIDE_
flags the mesh as changed, reloads hardware buffers
virtual u32 getChangedID_Index() const _IRR_OVERRIDE_
Get the currently used ID for identification of changes.
E_HARDWARE_MAPPING MappingHintIndex
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 video::E_INDEX_TYPE getIndexType() const _IRR_OVERRIDE_
Get type of index data which is stored in this meshbuffer.