![]() |
Public API Reference |
#include <terrfunc.h>
Inheritance diagram for iTerrFuncState:
Public Methods | |
virtual void | LoadMaterialGroup (iLoaderContext *ldr_context, const char *pName, int iStart, int iEnd)=0 |
Load a group of materials from a given loader context. More... | |
virtual void | SetTopLeftCorner (const csVector3 &topleft)=0 |
Set the top-left corner of the terrain. More... | |
virtual void | SetScale (const csVector3 &scale)=0 |
Set the scale of the terrain. More... | |
virtual csVector3 | GetScale ()=0 |
Get the scale of the terrain. More... | |
virtual void | SetResolution (int x, int y)=0 |
Setup the number of blocks in the terrain. More... | |
virtual int | GetXResolution ()=0 |
Get the x resolution. More... | |
virtual int | GetYResolution ()=0 |
Get the y resolution. More... | |
virtual void | SetGridResolution (int x, int y)=0 |
Setup the number of grid points in every block for the base mesh. More... | |
virtual int | GetXGridResolution ()=0 |
Get the x resolution for a block. More... | |
virtual int | GetYGridResolution ()=0 |
Get the y resolution for a block. More... | |
virtual void | SetColor (const csColor &col)=0 |
Set the base color. More... | |
virtual csColor | GetColor () const=0 |
Get the base color. More... | |
virtual void | SetHeightFunction (iTerrainHeightFunction *func)=0 |
Set the function to use for the terrain. More... | |
virtual void | SetNormalFunction (iTerrainNormalFunction *func)=0 |
Set the normal function to use for the terrain. More... | |
virtual void | SetHeightMap (iImage *im, float hscale, float hshift)=0 |
Use the given iImage to get a height function from. More... | |
virtual iTerrainHeightFunction * | GetHeightFunction () const=0 |
Get the function to use for the terrain. More... | |
virtual iTerrainNormalFunction * | GetNormalFunction () const=0 |
Get the normal function to use for the terrain. More... | |
virtual void | SetLODDistance (int lod, float dist)=0 |
Set the distance at which to switch to the given lod level (lod from 1 to 3). More... | |
virtual float | GetLODDistance (int lod)=0 |
Get the distance at which lod will switch to that level. More... | |
virtual void | SetMaximumLODCost (int lod, float maxcost)=0 |
Set the maximum cost for LOD level (1..3). More... | |
virtual float | GetMaximumLODCost (int lod)=0 |
Get the maximum cost for LOD level (1..3). More... | |
virtual void | CorrectSeams (int tw, int th)=0 |
Correct texture mapping so that no seams will appear with textures of the given size. More... | |
virtual void | GetCorrectSeams (int &tw, int &th) const=0 |
Get texture size for which seams will be corrected. More... | |
virtual void | SetQuadDepth (int qd)=0 |
Set the depth of the quad-tree used for visibility testing. More... | |
virtual int | GetQuadDepth () const=0 |
Get the depth of the quad-tree used for visibility testing. More... | |
virtual void | SetVisTesting (bool en)=0 |
Disable/enable visibility testing. More... | |
virtual bool | IsVisTestingEnabled ()=0 |
Return true if vis testing is enabled. More... |
Definition at line 62 of file terrfunc.h.
|
Correct texture mapping so that no seams will appear with textures of the given size. By default this is 0,0 so no correction will happen. |
|
Get the base color.
|
|
Get texture size for which seams will be corrected.
|
|
Get the function to use for the terrain.
|
|
Get the distance at which lod will switch to that level.
|
|
Get the maximum cost for LOD level (1..3).
|
|
Get the normal function to use for the terrain.
|
|
Get the depth of the quad-tree used for visibility testing.
|
|
Get the scale of the terrain.
|
|
Get the x resolution for a block.
|
|
Get the x resolution.
|
|
Get the y resolution for a block.
|
|
Get the y resolution.
|
|
Return true if vis testing is enabled.
|
|
Load a group of materials from a given loader context.
|
|
Set the base color.
|
|
Setup the number of grid points in every block for the base mesh.
|
|
Set the function to use for the terrain.
|
|
Use the given iImage to get a height function from.
|
|
Set the distance at which to switch to the given lod level (lod from 1 to 3).
|
|
Set the maximum cost for LOD level (1..3).
|
|
Set the normal function to use for the terrain.
|
|
Set the depth of the quad-tree used for visibility testing.
|
|
Setup the number of blocks in the terrain.
|
|
Set the scale of the terrain.
|
|
Set the top-left corner of the terrain.
|
|
Disable/enable visibility testing.
|