Terrain Class Reference

Level Of Detail (LOD) based Terrain IsceneNode. More...

#include <terrain.h>

List of all members.

Public Member Functions

 Terrain (irr::IrrlichtDevice *d, irr::core::stringc FileName, irr::core::stringc textureFileName_1, irr::core::stringc textureFileName_2)
 ~Terrain ()
 Destructor.
irr::core::vector3df getCenter (void)
irr::scene::ITriangleSelector * getCollisionTriangles (void)


Detailed Description

Level Of Detail (LOD) based Terrain IsceneNode.

Holds a ITerrainSceneNode* and offers services for collision testing. Lets start

Definition at line 10 of file terrain.h.


Constructor & Destructor Documentation

Terrain::Terrain irr::IrrlichtDevice *  d,
irr::core::stringc  FileName,
irr::core::stringc  textureFileName_1,
irr::core::stringc  textureFileName_2
 

Parameters:
d : An IrrclichtDevice*, needed to access media.
heightMapFileName : A string (path and name) of a bitmap file containing hightmap data. Map will be be scaled to 100 x 10 x 100.
textureFileName_1 : A string (path and name) of a bitmap file containing texture data. Texture will be not tiled.
textureFileName_2 : A string (path and name) of a bitmap file containing texture data. Texture will be tiled 20 times.
Todo:
Do data driven Terrain creation.


Member Function Documentation

vector3df Terrain::getCenter void   ) 
 

Returns:
Returns vector3d (type = float) that is center of this terrain.

Definition at line 57 of file terrain.cpp.

Referenced by StateTerrain::entry(), and StateFlockSimulation::entry().

ITriangleSelector * Terrain::getCollisionTriangles void   ) 
 

Returns:
Returns all triangles (packed in a ITriangleSelector*) of this terrain which are of type LOD = 0. That is highest level of detail and thus near around the point of interest (player).

Definition at line 66 of file terrain.cpp.

Referenced by StateTerrain::entry().


The documentation for this class was generated from the following files:
Generated on Sun Dec 2 17:09:58 2007 for Swarm by  doxygen 1.4.6-NO