 |
Irrlicht 3D Engine
|
|
Go to the documentation of this file.
5 #ifndef __C_VERTEX_BUFFER_H_INCLUDED__
6 #define __C_VERTEX_BUFFER_H_INCLUDED__
21 virtual ~IVertexList(){};
38 class CSpecificVertexList :
public IVertexList
43 virtual u32 stride()
const {
return sizeof(T);}
88 for (
u32 n=0;n<VertexBufferCopy.
size();++n)
100 IVertexList *NewVertices=0;
106 NewVertices=
new CSpecificVertexList<video::S3DVertex>;
111 NewVertices=
new CSpecificVertexList<video::S3DVertex2TCoords>;
116 NewVertices=
new CSpecificVertexList<video::S3DVertexTangents>;
122 NewVertices->reallocate(
Vertices->size() );
125 NewVertices->push_back((*
Vertices)[n]);
virtual void push_back(const video::S3DVertex &element)
virtual void setType(video::E_VERTEX_TYPE vertexType)
virtual u32 size() const =0
virtual void reallocate(u32 new_size)
virtual video::S3DVertex & getLast()
standard vertex used by the Irrlicht engine.
virtual u32 stride() const
@ EVT_STANDARD
Standard vertex type used by the Irrlicht engine, video::S3DVertex.
virtual E_HARDWARE_MAPPING getHardwareMappingHint() const
get the current hardware mapping hint
E_VERTEX_TYPE
Enumeration for all vertex types there are.
@ EHM_NEVER
Don't store on the hardware.
virtual video::S3DVertex * pointer()
CVertexBuffer(video::E_VERTEX_TYPE vertexType)
virtual video::E_VERTEX_TYPE getType() const
@ EVT_TANGENTS
Vertex with a tangent and binormal vector, video::S3DVertexTangents.
@ EVT_2TCOORDS
Vertex with two texture coordinates, video::S3DVertex2TCoords.
virtual video::S3DVertex & operator[](const u32 index) const
virtual void setHardwareMappingHint(E_HARDWARE_MAPPING NewMappingHint)
set the hardware mapping hint, for driver
virtual u32 allocated_size() const
Everything in the Irrlicht Engine can be found in this namespace.
virtual void set_used(u32 usedNow)
unsigned int u32
32 bit unsigned variable.
virtual u32 getChangedID() const
Get the currently used ID for identification of changes.
virtual video::E_VERTEX_TYPE getType() const =0
E_HARDWARE_MAPPING MappingHint
CVertexBuffer(const IVertexBuffer &VertexBufferCopy)
virtual void setDirty()
flags the mesh as changed, reloads hardware buffers