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

irr::scene::IMesh Class Reference

Class for accessing a mesh with multiple mesh buffers. More...

#include <IMesh.h>

Inheritance diagram for irr::scene::IMesh:

irr::IReferenceCounted irr::scene::IAnimatedMesh irr::scene::SMesh irr::scene::IAnimatedMeshMD2 irr::scene::IAnimatedMeshMD3 irr::scene::IQ3LevelMesh irr::scene::ISkinnedMesh irr::scene::SAnimatedMesh List of all members.

Public Member Functions

virtual const core::aabbox3d<
f32 > & 
getBoundingBox () const =0
 Returns an axis aligned bounding box of the mesh.
virtual IMeshBuffergetMeshBuffer (const video::SMaterial &material) const =0
 Returns pointer to a mesh buffer which fits a material.
virtual IMeshBuffergetMeshBuffer (u32 nr) const =0
 Returns pointer to a mesh buffer.
virtual u32 getMeshBufferCount () const =0
 Returns the amount of mesh buffers.
virtual void setBoundingBox (const core::aabbox3df &box)=0
 set user axis aligned bounding box
virtual void setMaterialFlag (video::E_MATERIAL_FLAG flag, bool newvalue)=0
 Sets a flag of all contained materials to a new value.
virtual ~IMesh ()
 Destructor.

Detailed Description

Class for accessing a mesh with multiple mesh buffers.

An IMesh is nothing more than a collection of some mesh buffers (IMeshBuffer). SMesh is a simple implementation of an IMesh.

Definition at line 21 of file IMesh.h.


Constructor & Destructor Documentation

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

Destructor.

Definition at line 26 of file IMesh.h.


Member Function Documentation

virtual const core::aabbox3d<f32>& irr::scene::IMesh::getBoundingBox  )  const [pure virtual]
 

Returns an axis aligned bounding box of the mesh.

Returns:
A bounding box of this mesh is returned.

Implemented in irr::scene::SAnimatedMesh, and irr::scene::SMesh.

virtual IMeshBuffer* irr::scene::IMesh::getMeshBuffer const video::SMaterial material  )  const [pure virtual]
 

Returns pointer to a mesh buffer which fits a material.

Parameters:
material,: material to search for
Returns:
Returns the pointer to the mesh buffer or NULL if there is no such mesh buffer.

Implemented in irr::scene::SAnimatedMesh, and irr::scene::SMesh.

virtual IMeshBuffer* irr::scene::IMesh::getMeshBuffer u32  nr  )  const [pure virtual]
 

Returns pointer to a mesh buffer.

Parameters:
nr,: Zero based index of the mesh buffer. The maximum value is getMeshBufferCount() - 1;
Returns:
Returns the pointer to the mesh buffer or NULL if there is no such mesh buffer.

Implemented in irr::scene::SAnimatedMesh, and irr::scene::SMesh.

virtual u32 irr::scene::IMesh::getMeshBufferCount  )  const [pure virtual]
 

Returns the amount of mesh buffers.

Returns:
Returns the amount of mesh buffers (IMeshBuffer) in this mesh.

Implemented in irr::scene::SAnimatedMesh, and irr::scene::SMesh.

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

set user axis aligned bounding box

Parameters:
box New bounding box to use for the mesh.

Implemented in irr::scene::SAnimatedMesh, and irr::scene::SMesh.

virtual void irr::scene::IMesh::setMaterialFlag video::E_MATERIAL_FLAG  flag,
bool  newvalue
[pure virtual]
 

Sets a flag of all contained materials to a new value.

Parameters:
flag,: Flag to set in all materials.
newvalue,: New value to set in all materials.

Implemented in irr::scene::SAnimatedMesh, and irr::scene::SMesh.


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 Sep 21 08:57:56 2008 by Doxygen (1.4.2)