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

#include <CVertexBuffer.h>

+ Inheritance diagram for irr::scene::CVertexBuffer:

Public Member Functions

 CVertexBuffer (video::E_VERTEX_TYPE vertexType)
 
 CVertexBuffer (const IVertexBuffer &VertexBufferCopy)
 
virtual ~CVertexBuffer ()
 
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 video::S3DVertexgetLast ()
 
virtual video::E_VERTEX_TYPE getType () const
 
virtual video::S3DVertexoperator [] (const u32 index) const
 
virtual video::S3DVertexpointer ()
 
virtual void push_back (const video::S3DVertex &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_VERTEX_TYPE vertexType)
 
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
 
E_HARDWARE_MAPPING MappingHint
 
IVertexList * Vertices
 

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 16 of file CVertexBuffer.h.

Constructor & Destructor Documentation

◆ CVertexBuffer() [1/2]

irr::scene::CVertexBuffer::CVertexBuffer ( video::E_VERTEX_TYPE  vertexType)
inline

Definition at line 75 of file CVertexBuffer.h.

References setType().

◆ CVertexBuffer() [2/2]

irr::scene::CVertexBuffer::CVertexBuffer ( const IVertexBuffer VertexBufferCopy)
inline

◆ ~CVertexBuffer()

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

Definition at line 92 of file CVertexBuffer.h.

References Vertices.

Member Function Documentation

◆ allocated_size()

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

Implements irr::scene::IVertexBuffer.

Definition at line 169 of file CVertexBuffer.h.

References Vertices.

◆ getChangedID()

virtual u32 irr::scene::CVertexBuffer::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::IVertexBuffer.

Definition at line 199 of file CVertexBuffer.h.

References ChangedID.

◆ getData()

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

Implements irr::scene::IVertexBuffer.

Definition at line 133 of file CVertexBuffer.h.

References Vertices.

◆ getHardwareMappingHint()

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

get the current hardware mapping hint

Implements irr::scene::IVertexBuffer.

Definition at line 180 of file CVertexBuffer.h.

References MappingHint.

◆ getLast()

virtual video::S3DVertex& irr::scene::CVertexBuffer::getLast ( )
inlinevirtual

Implements irr::scene::IVertexBuffer.

Definition at line 154 of file CVertexBuffer.h.

References Vertices.

◆ getType()

virtual video::E_VERTEX_TYPE irr::scene::CVertexBuffer::getType ( ) const
inlinevirtual

Implements irr::scene::IVertexBuffer.

Definition at line 135 of file CVertexBuffer.h.

References Vertices.

◆ operator []()

virtual video::S3DVertex& irr::scene::CVertexBuffer::operator [] ( const u32  index) const
inlinevirtual

Implements irr::scene::IVertexBuffer.

Definition at line 149 of file CVertexBuffer.h.

References Vertices.

◆ pointer()

virtual video::S3DVertex* irr::scene::CVertexBuffer::pointer ( )
inlinevirtual

Implements irr::scene::IVertexBuffer.

Definition at line 174 of file CVertexBuffer.h.

References Vertices.

◆ push_back()

virtual void irr::scene::CVertexBuffer::push_back ( const video::S3DVertex element)
inlinevirtual

Implements irr::scene::IVertexBuffer.

Definition at line 144 of file CVertexBuffer.h.

References Vertices.

Referenced by CVertexBuffer().

◆ reallocate()

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

Implements irr::scene::IVertexBuffer.

Definition at line 164 of file CVertexBuffer.h.

References Vertices.

Referenced by CVertexBuffer().

◆ set_used()

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

Implements irr::scene::IVertexBuffer.

Definition at line 159 of file CVertexBuffer.h.

References Vertices.

◆ setDirty()

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

flags the mesh as changed, reloads hardware buffers

Implements irr::scene::IVertexBuffer.

Definition at line 192 of file CVertexBuffer.h.

References ChangedID.

◆ setHardwareMappingHint()

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

set the hardware mapping hint, for driver

Implements irr::scene::IVertexBuffer.

Definition at line 186 of file CVertexBuffer.h.

References MappingHint.

◆ setType()

virtual void irr::scene::CVertexBuffer::setType ( video::E_VERTEX_TYPE  vertexType)
inlinevirtual

◆ size()

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

Implements irr::scene::IVertexBuffer.

Definition at line 139 of file CVertexBuffer.h.

References Vertices.

◆ stride()

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

Implements irr::scene::IVertexBuffer.

Definition at line 137 of file CVertexBuffer.h.

References Vertices.

Member Data Documentation

◆ ChangedID

u32 irr::scene::CVertexBuffer::ChangedID

Definition at line 202 of file CVertexBuffer.h.

Referenced by getChangedID(), and setDirty().

◆ MappingHint

E_HARDWARE_MAPPING irr::scene::CVertexBuffer::MappingHint

Definition at line 201 of file CVertexBuffer.h.

Referenced by getHardwareMappingHint(), and setHardwareMappingHint().

◆ Vertices

IVertexList* irr::scene::CVertexBuffer::Vertices

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