5 #ifndef __C_VERTEX_BUFFER_H_INCLUDED__ 6 #define __C_VERTEX_BUFFER_H_INCLUDED__ 21 virtual ~IVertexList(){};
38 class CSpecificVertexList :
public IVertexList
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() );
virtual u32 size() const =0
virtual void setHardwareMappingHint(E_HARDWARE_MAPPING NewMappingHint) _IRR_OVERRIDE_
set the hardware mapping hint, for driver
CVertexBuffer(video::E_VERTEX_TYPE vertexType)
Everything in the Irrlicht Engine can be found in this namespace.
Don't store on the hardware.
virtual void * getData() _IRR_OVERRIDE_
virtual void set_used(u32 usedNow) _IRR_OVERRIDE_
Vertex with two texture coordinates, video::S3DVertex2TCoords.
virtual video::S3DVertex & operator [](const u32 index) const _IRR_OVERRIDE_
virtual u32 stride() const _IRR_OVERRIDE_
Vertex with a tangent and binormal vector, video::S3DVertexTangents.
virtual video::E_VERTEX_TYPE getType() const _IRR_OVERRIDE_
unsigned int u32
32 bit unsigned variable.
Standard vertex type used by the Irrlicht engine, video::S3DVertex.
virtual video::E_VERTEX_TYPE getType() const =0
virtual video::S3DVertex * pointer() _IRR_OVERRIDE_
virtual E_HARDWARE_MAPPING getHardwareMappingHint() const _IRR_OVERRIDE_
get the current hardware mapping hint
virtual void push_back(const video::S3DVertex &element) _IRR_OVERRIDE_
standard vertex used by the Irrlicht engine.
CVertexBuffer(const IVertexBuffer &VertexBufferCopy)
virtual void setType(video::E_VERTEX_TYPE vertexType) _IRR_OVERRIDE_
virtual video::S3DVertex & getLast() _IRR_OVERRIDE_
virtual u32 size() const _IRR_OVERRIDE_
E_HARDWARE_MAPPING MappingHint
virtual void setDirty() _IRR_OVERRIDE_
flags the mesh as changed, reloads hardware buffers
virtual void reallocate(u32 new_size) _IRR_OVERRIDE_
#define _IRR_OVERRIDE_
Defines an override macro, to protect virtual functions from typos and other mismatches.
E_VERTEX_TYPE
Enumeration for all vertex types there are.
virtual u32 getChangedID() const _IRR_OVERRIDE_
Get the currently used ID for identification of changes.
virtual u32 allocated_size() const _IRR_OVERRIDE_