iTerrBigState Struct Reference
This class associates a file created using the terrbig conversion to the terrbig object. More...
#include <terrbig.h>
Inheritance diagram for iTerrBigState:

Public Methods | |
| virtual bool | LoadHeightMapFile (const char *hm)=0 |
| Memory maps the file on disk and associates it with the terrain. | |
| virtual void | SetScaleFactor (const csVector3 &scale)=0 |
| Sets the scale factor on the map x = horz, y = vert, z = height. | |
| virtual void | SetErrorTolerance (float tolerance)=0 |
| Sets the error tolerance. | |
| virtual bool | ConvertImageToMapFile (iFile *image, iImageIO *imageio, const char *hm)=0 |
| Converts an image to a height map file usable by LoadHeighMapFile() and saves it into hm. | |
| virtual bool | ConvertArrayToMapFile (float *data, int width, const char *hm)=0 |
| Same as ConvertImageToMapFile but works from a raw floating point array the incoming float should be size width * width. | |
| virtual void | SetMaterialsList (iMaterialWrapper **matlist, unsigned int nMaterials)=0 |
| Set the materials list, copies the passed in list. | |
Detailed Description
This class associates a file created using the terrbig conversion to the terrbig object.
Definition at line 34 of file terrbig.h.
Member Function Documentation
|
||||||||||||||||
|
Same as ConvertImageToMapFile but works from a raw floating point array the incoming float should be size width * width. Width should be a value 2^n+1 |
|
||||||||||||||||
|
Converts an image to a height map file usable by LoadHeighMapFile() and saves it into hm. It will also load the file. |
|
|
Memory maps the file on disk and associates it with the terrain.
|
|
|
Sets the error tolerance. This should be in pixels, meaning a tolerance of 1 will allow gaps in the hieghtmap of 1 pixel, a tolerance of 0 means the heightmap will perform no LOD |
|
||||||||||||
|
Set the materials list, copies the passed in list.
|
|
|
Sets the scale factor on the map x = horz, y = vert, z = height.
|
The documentation for this struct was generated from the following file:
- imesh/terrbig.h
Generated for Crystal Space by doxygen 1.2.18
