[AE Engine logo] Public API Reference
Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

aeTerrMan Class Reference

Interface to the terrain plugin. More...

#include <terrman.h>

Inheritance diagram for aeTerrMan:

aePlugin aeBase List of all members.

Public Member Functions

 aeTerrMan (aeRegistry *aeReg)
virtual aeTrianglegetObject () const
 Get the terrain object.

virtual void setOrigin (float x, float y, float z)
 Set the terrain's origin.

virtual void setOrigin (aeVector3)
 Set the terrain's origin.

virtual void setMaterial (aeMaterial *)
 Set a material for the terrain.

virtual bool loadHeightMap (char *filename)
 Load a heightmap to generate terrain from.


Private Member Functions

int height (int x, int y)
void buildHeightMapVertices ()

Private Attributes

aeRegistryaereg
int mapSize
int stepSize
float heightRatio
aeDataBufferterrDataBuf
aeTriangleterrObj

Detailed Description

Interface to the terrain plugin.

Definition at line 37 of file terrman.h.


Member Function Documentation

virtual aeTriangle* aeTerrMan::getObject   const [inline, virtual]
 

Get the terrain object.

You can then add the object to the engine using aeEngine::AddObject().

Returns:
The terrain object (as aeTriangle).

Definition at line 63 of file terrman.h.

virtual bool aeTerrMan::loadHeightMap char *    filename [virtual]
 

Load a heightmap to generate terrain from.

Parameters:
filename Path to a raw filename containing heightmap data.
Returns:
true if the heightmap was loaded succesfully.

virtual void aeTerrMan::setMaterial aeMaterial   [virtual]
 

Set a material for the terrain.

Parameters:
aeMaterial * The material.

virtual void aeTerrMan::setOrigin aeVector3    [virtual]
 

Set the terrain's origin.

Parameters:
aeVector3 Vector specifying the origin.

virtual void aeTerrMan::setOrigin float    x,
float    y,
float    z
[virtual]
 

Set the terrain's origin.

Parameters:
x X origin.
y Y origin.
z Z origin.


The documentation for this class was generated from the following file:
AE Engine Public API Reference
Generated on Wed Apr 9 09:43:41 2003 by Doxygen.