Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members

irr::scene::IMeshBuffer Class Reference

Struct for holding a mesh with a single material. More...

#include <IMeshBuffer.h>

Inheritance diagram for irr::scene::IMeshBuffer:

irr::IReferenceCounted irr::scene::CMeshBuffer< T > irr::scene::SSharedMeshBuffer irr::scene::SSkinMeshBuffer List of all members.

Public Member Functions

virtual void append (const IMeshBuffer *const other)=0
 Append the meshbuffer to the current buffer.
virtual void append (const void *const vertices, u32 numVertices, const u16 *const indices, u32 numIndices)=0
 Append the vertices and indices to the current buffer.
virtual const core::aabbox3dfgetBoundingBox () const =0
 Get the axis aligned bounding box of this meshbuffer.
virtual u32 getIndexCount () const =0
 Get amount of indices in this meshbuffer.
virtual u16getIndices ()=0
 Get access to Indices.
virtual const u16getIndices () const =0
 Get access to Indices.
virtual const video::SMaterialgetMaterial () const =0
 Get the material of this meshbuffer.
virtual video::SMaterialgetMaterial ()=0
 Get the material of this meshbuffer.
virtual u32 getVertexCount () const =0
 Get amount of vertices in meshbuffer.
virtual video::E_VERTEX_TYPE getVertexType () const =0
 Get type of vertex data which is stored in this meshbuffer.
virtual void * getVertices ()=0
 Get access to vertex data. The data is an array of vertices.
virtual const void * getVertices () const =0
 Get access to vertex data. The data is an array of vertices.
virtual void recalculateBoundingBox ()=0
 Recalculates the bounding box. Should be called if the mesh changed.
virtual void setBoundingBox (const core::aabbox3df &box)=0
 Set axis aligned bounding box.
virtual ~IMeshBuffer ()
 Destructor.

Detailed Description

Struct for holding a mesh with a single material.

SMeshBuffer is a simple implementation of a MeshBuffer.

Definition at line 61 of file IMeshBuffer.h.


Constructor & Destructor Documentation

virtual irr::scene::IMeshBuffer::~IMeshBuffer  )  [inline, virtual]
 

Destructor.

Definition at line 66 of file IMeshBuffer.h.


Member Function Documentation

virtual void irr::scene::IMeshBuffer::append const IMeshBuffer *const   other  )  [pure virtual]
 

Append the meshbuffer to the current buffer.

Only works for compatible vertex types

Parameters:
other Buffer to append to this one.

Implemented in irr::scene::CMeshBuffer< T >, irr::scene::SSharedMeshBuffer, and irr::scene::SSkinMeshBuffer.

virtual void irr::scene::IMeshBuffer::append const void *const   vertices,
u32  numVertices,
const u16 *const   indices,
u32  numIndices
[pure virtual]
 

Append the vertices and indices to the current buffer.

Only works for compatible vertex types.

Parameters:
vertices Pointer to a vertex array.
numVertices Number of vertices in the array.
indices Pointer to index array.
numIndices Number of indices in array.

Implemented in irr::scene::CMeshBuffer< T >, irr::scene::SSharedMeshBuffer, and irr::scene::SSkinMeshBuffer.

virtual const core::aabbox3df& irr::scene::IMeshBuffer::getBoundingBox  )  const [pure virtual]
 

Get the axis aligned bounding box of this meshbuffer.

Returns:
Axis aligned bounding box of this buffer.

Implemented in irr::scene::CMeshBuffer< T >, irr::scene::SSharedMeshBuffer, and irr::scene::SSkinMeshBuffer.

virtual u32 irr::scene::IMeshBuffer::getIndexCount  )  const [pure virtual]
 

Get amount of indices in this meshbuffer.

Returns:
Number of indices in this buffer.

Implemented in irr::scene::CMeshBuffer< T >, irr::scene::SSharedMeshBuffer, and irr::scene::SSkinMeshBuffer.

virtual u16* irr::scene::IMeshBuffer::getIndices  )  [pure virtual]
 

Get access to Indices.

Returns:
Pointer to indices array.

Implemented in irr::scene::CMeshBuffer< T >, irr::scene::SSharedMeshBuffer, and irr::scene::SSkinMeshBuffer.

virtual const u16* irr::scene::IMeshBuffer::getIndices  )  const [pure virtual]
 

Get access to Indices.

Returns:
Pointer to indices array.

Implemented in irr::scene::CMeshBuffer< T >, irr::scene::SSharedMeshBuffer, and irr::scene::SSkinMeshBuffer.

virtual const video::SMaterial& irr::scene::IMeshBuffer::getMaterial  )  const [pure virtual]
 

Get the material of this meshbuffer.

Returns:
Material of this buffer.

Implemented in irr::scene::CMeshBuffer< T >, irr::scene::SSharedMeshBuffer, and irr::scene::SSkinMeshBuffer.

virtual video::SMaterial& irr::scene::IMeshBuffer::getMaterial  )  [pure virtual]
 

Get the material of this meshbuffer.

Returns:
Material of this buffer.

Implemented in irr::scene::CMeshBuffer< T >, irr::scene::SSharedMeshBuffer, and irr::scene::SSkinMeshBuffer.

virtual u32 irr::scene::IMeshBuffer::getVertexCount  )  const [pure virtual]
 

Get amount of vertices in meshbuffer.

Returns:
Number of vertices in this buffer.

Implemented in irr::scene::CMeshBuffer< T >, irr::scene::SSharedMeshBuffer, and irr::scene::SSkinMeshBuffer.

virtual video::E_VERTEX_TYPE irr::scene::IMeshBuffer::getVertexType  )  const [pure virtual]
 

Get type of vertex data which is stored in this meshbuffer.

Returns:
Vertex type of this buffer.

Implemented in irr::scene::CMeshBuffer< T >, irr::scene::SSharedMeshBuffer, and irr::scene::SSkinMeshBuffer.

virtual void* irr::scene::IMeshBuffer::getVertices  )  [pure virtual]
 

Get access to vertex data. The data is an array of vertices.

Which vertex type is used can be determined by getVertexType().

Returns:
Pointer to array of vertices.

Implemented in irr::scene::CMeshBuffer< T >, irr::scene::SSharedMeshBuffer, and irr::scene::SSkinMeshBuffer.

virtual const void* irr::scene::IMeshBuffer::getVertices  )  const [pure virtual]
 

Get access to vertex data. The data is an array of vertices.

Which vertex type is used can be determined by getVertexType().

Returns:
Pointer to array of vertices.

Implemented in irr::scene::CMeshBuffer< T >, irr::scene::SSharedMeshBuffer, and irr::scene::SSkinMeshBuffer.

virtual void irr::scene::IMeshBuffer::recalculateBoundingBox  )  [pure virtual]
 

Recalculates the bounding box. Should be called if the mesh changed.

Implemented in irr::scene::CMeshBuffer< T >, irr::scene::SSharedMeshBuffer, and irr::scene::SSkinMeshBuffer.

virtual void irr::scene::IMeshBuffer::setBoundingBox const core::aabbox3df box  )  [pure virtual]
 

Set axis aligned bounding box.

Parameters:
box User defined axis aligned bounding box to use for this buffer.

Implemented in irr::scene::CMeshBuffer< T >, irr::scene::SSharedMeshBuffer, and irr::scene::SSkinMeshBuffer.


The documentation for this class was generated from the following file:
The Irrlicht Engine
The Irrlicht Engine Documentation © 2003-2008 by Nikolaus Gebhardt. Generated on Sun Jun 1 07:59:18 2008 by Doxygen (1.4.2)