Irrlicht 3D Engine
irr::scene::CIndexBuffer Class Reference

#include <CIndexBuffer.h>

+ Inheritance diagram for irr::scene::CIndexBuffer:

Public Member Functions

 CIndexBuffer (video::E_INDEX_TYPE IndexType)
 
 CIndexBuffer (const IIndexBuffer &IndexBufferCopy)
 
virtual ~CIndexBuffer ()
 
virtual u32 allocated_size () const
 
virtual u32 getChangedID () const
 Get the currently used ID for identification of changes. More...
 
virtual void * getData ()
 
virtual E_HARDWARE_MAPPING getHardwareMappingHint () const
 get the current hardware mapping hint More...
 
virtual u32 getLast ()
 
virtual video::E_INDEX_TYPE getType () const
 
virtual u32 operator [] (u32 index) const
 
virtual void * pointer ()
 
virtual void push_back (const u32 &element)
 
virtual void reallocate (u32 new_size)
 
virtual void set_used (u32 usedNow)
 
virtual void setDirty ()
 flags the mesh as changed, reloads hardware buffers More...
 
virtual void setHardwareMappingHint (E_HARDWARE_MAPPING NewMappingHint)
 set the hardware mapping hint, for driver More...
 
virtual void setType (video::E_INDEX_TYPE IndexType)
 
virtual void setValue (u32 index, u32 value)
 
virtual u32 size () const
 
virtual u32 stride () const
 
- Public Member Functions inherited from irr::IReferenceCounted
 IReferenceCounted ()
 Constructor. More...
 
virtual ~IReferenceCounted ()
 Destructor. More...
 
bool drop () const
 Drops the object. Decrements the reference counter by one. More...
 
const c8getDebugName () const
 Returns the debug name of the object. More...
 
s32 getReferenceCount () const
 Get the reference count. More...
 
void grab () const
 Grabs the object. Increments the reference counter by one. More...
 

Public Attributes

u32 ChangedID
 
IIndexList * Indices
 
E_HARDWARE_MAPPING MappingHint
 

Additional Inherited Members

- Protected Member Functions inherited from irr::IReferenceCounted
void setDebugName (const c8 *newName)
 Sets the debug name of the object. More...
 

Detailed Description

Definition at line 15 of file CIndexBuffer.h.

Constructor & Destructor Documentation

◆ CIndexBuffer() [1/2]

irr::scene::CIndexBuffer::CIndexBuffer ( video::E_INDEX_TYPE  IndexType)
inline

Definition at line 93 of file CIndexBuffer.h.

References setType().

◆ CIndexBuffer() [2/2]

irr::scene::CIndexBuffer::CIndexBuffer ( const IIndexBuffer IndexBufferCopy)
inline

◆ ~CIndexBuffer()

virtual irr::scene::CIndexBuffer::~CIndexBuffer ( )
inlinevirtual

Definition at line 107 of file CIndexBuffer.h.

References Indices.

Member Function Documentation

◆ allocated_size()

virtual u32 irr::scene::CIndexBuffer::allocated_size ( ) const
inlinevirtual

Implements irr::scene::IIndexBuffer.

Definition at line 185 of file CIndexBuffer.h.

References Indices.

◆ getChangedID()

virtual u32 irr::scene::CIndexBuffer::getChangedID ( ) const
inlinevirtual

Get the currently used ID for identification of changes.

This shouldn't be used for anything outside the VideoDriver.

Implements irr::scene::IIndexBuffer.

Definition at line 215 of file CIndexBuffer.h.

References ChangedID.

◆ getData()

virtual void* irr::scene::CIndexBuffer::getData ( )
inlinevirtual

Implements irr::scene::IIndexBuffer.

Definition at line 144 of file CIndexBuffer.h.

References Indices.

◆ getHardwareMappingHint()

virtual E_HARDWARE_MAPPING irr::scene::CIndexBuffer::getHardwareMappingHint ( ) const
inlinevirtual

get the current hardware mapping hint

Implements irr::scene::IIndexBuffer.

Definition at line 196 of file CIndexBuffer.h.

References MappingHint.

◆ getLast()

virtual u32 irr::scene::CIndexBuffer::getLast ( )
inlinevirtual

Implements irr::scene::IIndexBuffer.

Definition at line 165 of file CIndexBuffer.h.

References Indices.

◆ getType()

virtual video::E_INDEX_TYPE irr::scene::CIndexBuffer::getType ( ) const
inlinevirtual

Implements irr::scene::IIndexBuffer.

Definition at line 146 of file CIndexBuffer.h.

References Indices.

◆ operator []()

virtual u32 irr::scene::CIndexBuffer::operator [] ( u32  index) const
inlinevirtual

Implements irr::scene::IIndexBuffer.

Definition at line 160 of file CIndexBuffer.h.

References Indices.

◆ pointer()

virtual void* irr::scene::CIndexBuffer::pointer ( )
inlinevirtual

Implements irr::scene::IIndexBuffer.

Definition at line 190 of file CIndexBuffer.h.

References Indices.

◆ push_back()

virtual void irr::scene::CIndexBuffer::push_back ( const u32 element)
inlinevirtual

Implements irr::scene::IIndexBuffer.

Definition at line 155 of file CIndexBuffer.h.

References Indices.

Referenced by CIndexBuffer().

◆ reallocate()

virtual void irr::scene::CIndexBuffer::reallocate ( u32  new_size)
inlinevirtual

Implements irr::scene::IIndexBuffer.

Definition at line 180 of file CIndexBuffer.h.

References Indices.

Referenced by CIndexBuffer().

◆ set_used()

virtual void irr::scene::CIndexBuffer::set_used ( u32  usedNow)
inlinevirtual

Implements irr::scene::IIndexBuffer.

Definition at line 175 of file CIndexBuffer.h.

References Indices.

◆ setDirty()

virtual void irr::scene::CIndexBuffer::setDirty ( )
inlinevirtual

flags the mesh as changed, reloads hardware buffers

Implements irr::scene::IIndexBuffer.

Definition at line 208 of file CIndexBuffer.h.

References ChangedID.

◆ setHardwareMappingHint()

virtual void irr::scene::CIndexBuffer::setHardwareMappingHint ( E_HARDWARE_MAPPING  NewMappingHint)
inlinevirtual

set the hardware mapping hint, for driver

Implements irr::scene::IIndexBuffer.

Definition at line 202 of file CIndexBuffer.h.

References MappingHint.

◆ setType()

virtual void irr::scene::CIndexBuffer::setType ( video::E_INDEX_TYPE  IndexType)
inlinevirtual

Implements irr::scene::IIndexBuffer.

Definition at line 113 of file CIndexBuffer.h.

References irr::video::EIT_16BIT, irr::video::EIT_32BIT, and Indices.

Referenced by CIndexBuffer().

◆ setValue()

virtual void irr::scene::CIndexBuffer::setValue ( u32  index,
u32  value 
)
inlinevirtual

Implements irr::scene::IIndexBuffer.

Definition at line 170 of file CIndexBuffer.h.

References Indices.

◆ size()

virtual u32 irr::scene::CIndexBuffer::size ( ) const
inlinevirtual

Implements irr::scene::IIndexBuffer.

Definition at line 150 of file CIndexBuffer.h.

References Indices.

◆ stride()

virtual u32 irr::scene::CIndexBuffer::stride ( ) const
inlinevirtual

Implements irr::scene::IIndexBuffer.

Definition at line 148 of file CIndexBuffer.h.

References Indices.

Member Data Documentation

◆ ChangedID

u32 irr::scene::CIndexBuffer::ChangedID

Definition at line 218 of file CIndexBuffer.h.

Referenced by getChangedID(), and setDirty().

◆ Indices

IIndexList* irr::scene::CIndexBuffer::Indices

◆ MappingHint

E_HARDWARE_MAPPING irr::scene::CIndexBuffer::MappingHint

Definition at line 217 of file CIndexBuffer.h.

Referenced by getHardwareMappingHint(), and setHardwareMappingHint().


The documentation for this class was generated from the following file: