5 #ifndef __C_INDEX_BUFFER_H_INCLUDED__ 6 #define __C_INDEX_BUFFER_H_INCLUDED__ 21 virtual ~IIndexList(){};
37 class CSpecificIndexList :
public IIndexList
49 Indices.push_back((
const T&)element);
76 return Indices.allocated_size();
83 if (
sizeof(T)==
sizeof(
u16))
115 IIndexList *NewIndices=0;
121 NewIndices=
new CSpecificIndexList<u16>;
126 NewIndices=
new CSpecificIndexList<u32>;
133 NewIndices->reallocate(
Indices->size() );
136 NewIndices->push_back((*
Indices)[
n]);
187 return Indices->allocated_size();
virtual u32 getLast() _IRR_OVERRIDE_
CIndexBuffer(video::E_INDEX_TYPE IndexType)
virtual void push_back(const u32 &element) _IRR_OVERRIDE_
virtual u32 stride() const _IRR_OVERRIDE_
virtual void * getData() _IRR_OVERRIDE_
virtual void * pointer() _IRR_OVERRIDE_
virtual void setDirty() _IRR_OVERRIDE_
flags the mesh as changed, reloads hardware buffers
virtual void setValue(u32 index, u32 value) _IRR_OVERRIDE_
virtual u32 operator [](u32 index) const _IRR_OVERRIDE_
virtual void setHardwareMappingHint(E_HARDWARE_MAPPING NewMappingHint) _IRR_OVERRIDE_
set the hardware mapping hint, for driver
Everything in the Irrlicht Engine can be found in this namespace.
Don't store on the hardware.
virtual void set_used(u32 usedNow) _IRR_OVERRIDE_
virtual u32 size() const =0
unsigned short u16
16 bit unsigned variable.
virtual video::E_INDEX_TYPE getType() const =0
GLsizei const GLfloat * value
unsigned int u32
32 bit unsigned variable.
virtual void reallocate(u32 new_size) _IRR_OVERRIDE_
virtual E_HARDWARE_MAPPING getHardwareMappingHint() const _IRR_OVERRIDE_
get the current hardware mapping hint
virtual void setType(video::E_INDEX_TYPE IndexType) _IRR_OVERRIDE_
#define _IRR_OVERRIDE_
Defines an override macro, to protect virtual functions from typos and other mismatches.
virtual u32 size() const _IRR_OVERRIDE_
virtual u32 allocated_size() const _IRR_OVERRIDE_
E_HARDWARE_MAPPING MappingHint
virtual video::E_INDEX_TYPE getType() const _IRR_OVERRIDE_
CIndexBuffer(const IIndexBuffer &IndexBufferCopy)
virtual u32 getChangedID() const _IRR_OVERRIDE_
Get the currently used ID for identification of changes.