Loading...
Searching...
No Matches
IVertexBuffer.h
Go to the documentation of this file.
// Copyright (C) 2008-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __I_VERTEX_BUFFER_H_INCLUDED__
#define __I_VERTEX_BUFFER_H_INCLUDED__
#include "IReferenceCounted.h"
#include "irrArray.h"
#include "S3DVertex.h"
namespace irr
{
namespace scene
{
class IVertexBuffer : public virtual IReferenceCounted
{
public:
virtual void* getData() =0;
virtual video::E_VERTEX_TYPE getType() const =0;
virtual void setType(video::E_VERTEX_TYPE vertexType) =0;
virtual u32 stride() const =0;
virtual u32 size() const =0;
virtual void push_back(const video::S3DVertex &element) =0;
virtual video::S3DVertex& operator [](const u32 index) const =0;
virtual video::S3DVertex& getLast() =0;
virtual void set_used(u32 usedNow) =0;
virtual void reallocate(u32 new_size) =0;
virtual u32 allocated_size() const =0;
virtual video::S3DVertex* pointer() =0;
virtual E_HARDWARE_MAPPING getHardwareMappingHint() const =0;
virtual void setHardwareMappingHint( E_HARDWARE_MAPPING NewMappingHint ) =0;
virtual void setDirty() =0;
virtual u32 getChangedID() const = 0;
};
} // end namespace scene
} // end namespace irr
#endif
IReferenceCounted.h
S3DVertex.h
irr::IReferenceCounted::IReferenceCounted
IReferenceCounted()
Constructor.
Definition IReferenceCounted.h:46
irr::scene::IVertexBuffer
Definition IVertexBuffer.h:18
irr::scene::IVertexBuffer::getType
virtual video::E_VERTEX_TYPE getType() const =0
irr::scene::IVertexBuffer::getData
virtual void * getData()=0
irr::scene::IVertexBuffer::size
virtual u32 size() const =0
irr::scene::IVertexBuffer::getHardwareMappingHint
virtual E_HARDWARE_MAPPING getHardwareMappingHint() const =0
get the current hardware mapping hint
irr::scene::IVertexBuffer::getChangedID
virtual u32 getChangedID() const =0
Get the currently used ID for identification of changes.
irr::scene::IVertexBuffer::operator[]
virtual video::S3DVertex & operator[](const u32 index) const =0
irr::scene::IVertexBuffer::push_back
virtual void push_back(const video::S3DVertex &element)=0
irr::scene::IVertexBuffer::stride
virtual u32 stride() const =0
irr::scene::IVertexBuffer::reallocate
virtual void reallocate(u32 new_size)=0
irr::scene::IVertexBuffer::setHardwareMappingHint
virtual void setHardwareMappingHint(E_HARDWARE_MAPPING NewMappingHint)=0
set the hardware mapping hint, for driver
irr::scene::IVertexBuffer::allocated_size
virtual u32 allocated_size() const =0
irr::scene::IVertexBuffer::set_used
virtual void set_used(u32 usedNow)=0
irr::scene::IVertexBuffer::pointer
virtual video::S3DVertex * pointer()=0
irr::scene::IVertexBuffer::setDirty
virtual void setDirty()=0
flags the meshbuffer as changed, reloads hardware buffers
irr::scene::IVertexBuffer::getLast
virtual video::S3DVertex & getLast()=0
irr::scene::IVertexBuffer::setType
virtual void setType(video::E_VERTEX_TYPE vertexType)=0
irrArray.h
irr::scene
All scene management can be found in this namespace: Mesh loading, special scene nodes like octrees a...
Definition CDynamicMeshBuffer.h:16
irr::scene::E_HARDWARE_MAPPING
E_HARDWARE_MAPPING
Definition EHardwareBufferFlags.h:14
irr::video::E_VERTEX_TYPE
E_VERTEX_TYPE
Enumeration for all vertex types there are.
Definition S3DVertex.h:19
irr
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13
irr::u32
unsigned int u32
32 bit unsigned variable.
Definition irrTypes.h:58
irr::video::S3DVertex
standard vertex used by the Irrlicht engine.
Definition S3DVertex.h:43
- Irrlicht Engine Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on for Irrlicht 3D Engine by Doxygen 1.15.0