![]() |
Public API Reference |
#include <bcterr.h>
Inheritance diagram for iBCTerrState:
Public Methods | |
virtual void | SetSize (int x, int z)=0 |
Set Number of Blocks across 2 axis. More... | |
virtual void | SetTopLeftCorner (const csVector3 &topleft)=0 |
Set topleft corner. More... | |
virtual void | SetBlockMaterial (int x_block, int z_block, iMaterialWrapper *mat)=0 |
Set Block info. More... | |
virtual void | SetHeightMap (iImage *im)=0 |
Used to create control points, needs size to be set. Use for Debug only! More... | |
virtual int | HeightTest (csVector3 *point)=0 |
Test the height at point, returns y + 2.0f. More... | |
virtual void | SetBlockMaterialNum (int num, iMaterialWrapper *mat)=0 |
Set Block Material by grid number 0 = start. More... | |
virtual int | CameraHeightTest (csVector3 *point)=0 |
CameraHeightTest should return a point that a camera can use. More... | |
virtual void | SetControlPoint (const csVector3 point, const int iter)=0 |
Set control point by array position. More... | |
virtual void | SetControlPoint (const csVector3 point, const int x, const int z)=0 |
Set control point by x / z position. More... | |
virtual void | SetControlPointHeight (const float height, const int iter)=0 |
Set control point height. More... | |
virtual void | SetControlPointHeight (const float height, const int x, const int z)=0 |
Set control point height. More... | |
virtual void | SetFlattenHeight (const float up, const float down, const float left, const float right)=0 |
Set Height to flatten edges : default = topleft.y. More... | |
virtual void | DoFlatten (const bool up, const bool down, const bool left, const bool right)=0 |
Make the MeshObject flatten it's edges, be sure not to set the height different for sides that touch. More... | |
virtual void | SetSystemInc (const int inc)=0 |
Set System LOD increments. More... | |
virtual void | PreBuild ()=0 |
Pre Build control points, should be called before setting height or control points. More... | |
virtual void | Build ()=0 |
Build the mesh, prepare mesh for material calls. More... | |
virtual int | GetControlLength ()=0 |
Length of control point array. More... | |
virtual bool | GetControlPoint (int iter, csVector3 &point)=0 |
Get control point. iter: Starts at 0 and stops at GetControlLength () - 1. return true if successful. More... |
Definition at line 44 of file bcterr.h.
|
Build the mesh, prepare mesh for material calls.
|
|
CameraHeightTest should return a point that a camera can use.
|
|
Make the MeshObject flatten it's edges, be sure not to set the height different for sides that touch.
|
|
Length of control point array.
|
|
Get control point. iter: Starts at 0 and stops at GetControlLength () - 1. return true if successful.
|
|
Test the height at point, returns y + 2.0f.
|
|
Pre Build control points, should be called before setting height or control points.
|
|
Set Block info.
|
|
Set Block Material by grid number 0 = start.
|
|
Set control point by x / z position.
|
|
Set control point by array position.
|
|
Set control point height.
|
|
Set control point height.
|
|
Set Height to flatten edges : default = topleft.y.
|
|
Used to create control points, needs size to be set. Use for Debug only!
|
|
Set Number of Blocks across 2 axis.
|
|
Set System LOD increments.
|
|
Set topleft corner.
|