Project

General

Profile

SO3Engine
Terrain

Functions

int SO3TerrainCreate (mmachine m)
 main include More...
 
int SO3TerrainDelete (mmachine m)
 SO3TerrainDelete : destroy a terrain. More...
 
int SO3TerrainSetHeightMap (mmachine m)
 SO3TerrainSetHeightMap : Define a terrain height map and params Every terrain parameters must be a value of 2^n + 1 the texture width/height also Prototype: fun [SO3_TERRAIN P F F I I] I. More...
 

Detailed Description

Scol functions definition

Function Documentation

◆ SO3TerrainCreate()

int SO3TerrainCreate ( mmachine  m)

main include

SO3TerrainCreate : Create a new terrain

Prototype: fun [SO3_SCENE S] SO3_TERRAIN

Parameters
SO3_SCENE: current scene
S: given name
Returns
SO3_TERRAIN : Terrain created if success, NIL otherwise

Definition at line 53 of file SCOLTerrain.cpp.

◆ SO3TerrainDelete()

int SO3TerrainDelete ( mmachine  m)

SO3TerrainDelete : destroy a terrain.

Prototype: fun [SO3_TERRAIN] I

Parameters
SO3_TERRAIN: current terrain
Returns
I : 1 if success, NIL otherwise

Definition at line 101 of file SCOLTerrain.cpp.

◆ SO3TerrainSetHeightMap()

int SO3TerrainSetHeightMap ( mmachine  m)

SO3TerrainSetHeightMap : Define a terrain height map and params Every terrain parameters must be a value of 2^n + 1 the texture width/height also Prototype: fun [SO3_TERRAIN P F F I I] I.

Parameters
SO3_TERRAIN: current terrain
P: height map file
F: terrain size
F: terrain height scale
I: min batch size
I: max batch size
Returns
I : 1 if success, NIL otherwise

Definition at line 133 of file SCOLTerrain.cpp.