![]() |
Public API Reference |
#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. More... | |
virtual void | SetScaleFactor (const csVector3 &scale)=0 |
Sets the scale factor on the map x = horz, y = vert, z = height. More... | |
virtual void | SetErrorTolerance (float tolerance)=0 |
Sets the error tolerance. More... | |
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. More... | |
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. More... | |
virtual void | SetMaterialsList (iMaterialWrapper **matlist, unsigned int nMaterials)=0 |
Set the materials list, copies the passed in list. More... |
Definition at line 34 of file terrbig.h.
|
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.
|