5 #ifndef __I_SKIN_MESH_BUFFER_H_INCLUDED__ 6 #define __I_SKIN_MESH_BUFFER_H_INCLUDED__ 329 virtual void append(
const void*
const vertices,
u32 numVertices,
const u16*
const indices,
u32 numIndices) {}
Change the vertex mapping.
SSkinMeshBuffer(video::E_VERTEX_TYPE vt=video::EVT_STANDARD)
Default constructor.
virtual video::SMaterial & getMaterial()
Get Material of this buffer.
virtual u32 getIndexCount() const
Get index count.
core::array< video::S3DVertex2TCoords > Vertices_2TCoords
virtual const core::vector2df & getTCoords(u32 i) const
returns texture coords of vertex i
virtual void setHardwareMappingHint(E_HARDWARE_MAPPING NewMappingHint, E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX)
set the hardware mapping hint, for driver
virtual const u16 * getIndices() const
Get pointer to index array.
virtual const void * getVertices() const
Get pointer to vertex array.
E_HARDWARE_MAPPING MappingHint_Index
virtual video::S3DVertex * getVertex(u32 index)
Get standard vertex at given index.
video::E_VERTEX_TYPE VertexType
virtual void setBoundingBox(const core::aabbox3df &box)
Set bounding box.
core::vector3df Pos
Position.
virtual const core::vector3df & getNormal(u32 i) const
returns normal of vertex i
virtual core::vector2df & getTCoords(u32 i)
returns texture coords of vertex i
bool BoundingBoxNeedsRecalculated
const T * const_pointer() const
Gets a const pointer to the array.
E_HARDWARE_MAPPING MappingHint_Vertex
virtual const core::vector3df & getPosition(u32 i) const
returns position of vertex i
virtual u32 getChangedID_Index() const
Get the currently used ID for identification of changes.
Everything in the Irrlicht Engine can be found in this namespace.
Don't store on the hardware.
void boundingBoxNeedsRecalculated(void)
Call this after changing the positions of any vertex.
Vertex with two texture coordinates, video::S3DVertex2TCoords.
void reset(T x, T y, T z)
Resets the bounding box to a one-point box.
void push_back(const T &element)
Adds an element at back of array.
virtual video::E_VERTEX_TYPE getVertexType() const
Get vertex type.
virtual core::vector3df & getNormal(u32 i)
returns normal of vertex i
bool empty() const
Check if array is empty.
unsigned short u16
16 bit unsigned variable.
A mesh buffer able to choose between S3DVertex2TCoords, S3DVertex and S3DVertexTangents at runtime...
Vertex with two texture coordinates.
virtual void convertToTangents()
Convert to tangents vertex type.
core::array< video::S3DVertex > Vertices_Standard
virtual void convertTo2TCoords()
Convert to 2tcoords vertex type.
Struct for holding a mesh with a single material.
Vertex with a tangent and binormal vector, video::S3DVertexTangents.
virtual u32 getVertexCount() const
Get vertex count.
core::aabbox3d< f32 > BoundingBox
unsigned int u32
32 bit unsigned variable.
Standard vertex type used by the Irrlicht engine, video::S3DVertex.
Change both vertex and index mapping to the same value.
video::SMaterial Material
u32 size() const
Get number of occupied elements of the array.
virtual u32 getChangedID_Vertex() const
Get the currently used ID for identification of changes.
standard vertex used by the Irrlicht engine.
virtual core::vector3df & getPosition(u32 i)
returns position of vertex i
core::array< video::S3DVertexTangents > Vertices_Tangents
core::array< u16 > Indices
virtual void setDirty(E_BUFFER_TYPE Buffer=EBT_VERTEX_AND_INDEX)
flags the mesh as changed, reloads hardware buffers
4x4 matrix. Mostly used as transformation matrix for 3d calculations.
Change the index mapping.
void addInternalPoint(const vector3d< T > &p)
Adds a point to the bounding box.
virtual void append(const void *const vertices, u32 numVertices, const u16 *const indices, u32 numIndices)
append the vertices and indices to the current buffer
virtual u16 * getIndices()
Get pointer to index array.
virtual E_HARDWARE_MAPPING getHardwareMappingHint_Index() const
get the current hardware mapping hint for index buffers
virtual void append(const IMeshBuffer *const other)
append the meshbuffer to the current buffer
void setDebugName(const c8 *newName)
Sets the debug name of the object.
core::matrix4 Transformation
E_VERTEX_TYPE
Enumeration for all vertex types there are.
virtual const video::SMaterial & getMaterial() const
Get Material of this buffer.
core::vector2d< f32 > TCoords
Texture coordinates.
void clear()
Clears the array and deletes all allocated memory.
core::vector3df Normal
Normal vector.
Vertex with a tangent and binormal vector.
virtual const core::aabbox3d< f32 > & getBoundingBox() const
Get bounding box.
Struct for holding parameters for a material renderer.
virtual void * getVertices()
Get pointer to vertex array.
T * pointer()
Gets a pointer to the array.
virtual E_HARDWARE_MAPPING getHardwareMappingHint_Vertex() const
get the current hardware mapping hint for vertex buffers
virtual video::E_INDEX_TYPE getIndexType() const
Get type of index data which is stored in this meshbuffer.
virtual void recalculateBoundingBox()
Recalculate bounding box.