SharedMesh Class Reference

Object subclass for meshes. More...

Inheritance diagram for SharedMesh:

Inheritance graph
[legend]
Collaboration diagram for SharedMesh:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 SharedMesh (irr::scene::IMesh *mesh, irr::scene::ISceneNode *node, btScalar mass, bool concave=false)
 ctor


Detailed Description

Object subclass for meshes.

The purpose of this class is double :

  1. avoid data duplication by using the same mesh data for graphics and physics
  2. have proper physics for animated meshes

This class works with both "classic" meshes and skinned meshes.

SharedMesh and Mesh are almost identical in term of interface but SharedMesh should be used whenever possible to reduce the memory footprint and ensure more accurate physics.

See also:
Mesh

Constructor & Destructor Documentation

SharedMesh::SharedMesh ( irr::scene::IMesh *  mesh,
irr::scene::ISceneNode *  node,
btScalar  mass,
bool  concave = false 
)

ctor

Parameters:
mesh Mesh data
node Attached scene node
mass Mass of the object
concave whether to create a concave shape

References Object::init().


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

Generated on Sat Jul 26 13:58:39 2008 for TFK:GE by  doxygen 1.5.5