lilith3d::TreeMesh Class Reference

#include <tree.h>

Inheritance diagram for lilith3d::TreeMesh:

lilith3d::StaticMesh lilith3d::Mesh List of all members.

Detailed Description

A (very) special static mesh for drawing Trees - of the plant kind, not the data kind. Trees are something that Lilith3D generally needs to render lots of. So Lilith3D uses tree-only rendering code, and renders them just after the land. See http://www.grinninglizard.com/lilith/treerendering.htm for details.

The TerrainMesh is always the container. You can get it from lilith3D->GetTerrainMesh().


Public Member Functions

virtual void SetPosV (const grinliz::Vector3F &pos, const grinliz::Matrix4 &rotation)


Member Function Documentation

virtual void lilith3d::TreeMesh::SetPosV ( const grinliz::Vector3F &  pos,
const grinliz::Matrix4 rotation 
) [virtual]

Trees can only be rotated to a fixed number of values. 16 by default. The rotation will automatically be rounded. Normally this isn't something you will notice - but if you set the rotation at 5.2 degrees, and then call ZRot(), it will return 0.0.

Reimplemented from lilith3d::StaticMesh.


The documentation for this class was generated from the following file:
Generated on Fri Mar 23 19:36:29 2007 for Lilith3D by  doxygen 1.5.1-p1