HPL3/Amnesia: Rebirth/Scripting/cTerrain
< HPL3 | Amnesia: Rebirth | Scripting
Jump to navigation
Jump to search
This page has been automatically generated, but it needs descriptions added to the various fields/functions in order to be complete. |
Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki!
Contents
- 1 Fields
- 2 Functions
- 3 Details
- 3.1 AddDynamicDecal
- 3.2 GetChangePatchLevelDist
- 3.3 GetGeometryGridNum
- 3.4 GetGeometryPatchSize
- 3.5 GetHeightMapSize
- 3.6 GetMaterialSpecularPower
- 3.7 GetMaxHeight
- 3.8 GetStartAndSizeInTextureGrid
- 3.9 GetTextureGridNum
- 3.10 GetTexturePatchSize
- 3.11 GetUnitSize
- 3.12 GetWorldPosHeightAndNormal
- 3.13 SetChangePatchLevelDist
- 3.14 SetCheapMaterial
- 3.15 SetGeometryPatchSize
- 3.16 SetMaxHeight
- 3.17 SetTexturePatchSize
- 3.18 SetUnitSize
- 4 References
Fields
cTerrain has no public fields.
Functions
Return Type | Function And Description |
---|---|
void | AddDynamicDecal(const tString &in asMaterial, const cVector3f &in avPosition, float afAngle, const cVector2f &in avSize, float afDepth = -1, const cColor &in aColor = 1, const cVector2f &in avMinUV = 0, const cVector2f &in avMaxUV = 1, float afFadeOutTime = -1) |
float | GetChangePatchLevelDist() |
int | GetGeometryGridNum() |
int | GetGeometryPatchSize() |
int | GetHeightMapSize() |
float | GetMaterialSpecularPower() |
float | GetMaxHeight() |
void | GetStartAndSizeInTextureGrid(const cVector2f &in avStart, const cVector2f &in avSize, cVector2l &out avGridStart, cVector2l &out avGridSize) |
int | GetTextureGridNum() |
int | GetTexturePatchSize() |
float | GetUnitSize() |
bool | GetWorldPosHeightAndNormal(const cVector3f &in avPosition, float &out afHeight, cVector3f &out avNormal) |
void | SetChangePatchLevelDist(float afX) |
void | SetCheapMaterial(const tString &in asCheapMaterial, float afCheapMaterialMul) |
void | SetGeometryPatchSize(int alX) |
void | SetMaxHeight(float afX) |
void | SetTexturePatchSize(int alX) |
void | SetUnitSize(float afX) |
Details
AddDynamicDecal
void AddDynamicDecal(const tString &in asMaterial,
const cVector3f &in avPosition,
float afAngle,
const cVector2f &in avSize,
float afDepth = -1,
const cColor &in aColor = 1,
const cVector2f &in avMinUV = 0,
const cVector2f &in avMaxUV = 1,
float afFadeOutTime = -1)
Parameters
- asMaterial (tString) —
- avPosition (cVector3f) —
- afAngle (float) —
- avSize (cVector2f) —
- afDepth (float) —
- aColor (cColor) —
- avMinUV (cVector2f) —
- avMaxUV (cVector2f) —
- afFadeOutTime (float) —
Returns:
- void
GetChangePatchLevelDist
float GetChangePatchLevelDist()
Returns:
- float—
GetGeometryGridNum
int GetGeometryGridNum()
Returns:
- int—
GetGeometryPatchSize
int GetGeometryPatchSize()
Returns:
- int—
GetHeightMapSize
int GetHeightMapSize()
Returns:
- int—
GetMaterialSpecularPower
float GetMaterialSpecularPower()
Returns:
- float—
GetMaxHeight
float GetMaxHeight()
Returns:
- float—
GetStartAndSizeInTextureGrid
GetTextureGridNum
int GetTextureGridNum()
Returns:
- int—
GetTexturePatchSize
int GetTexturePatchSize()
Returns:
- int—
GetUnitSize
float GetUnitSize()
Returns:
- float—
GetWorldPosHeightAndNormal
SetChangePatchLevelDist
void SetChangePatchLevelDist(float afX)
Parameters
- afX (float) —
Returns:
- void
SetCheapMaterial
void SetCheapMaterial(const tString &in asCheapMaterial,
float afCheapMaterialMul)
Parameters
- asCheapMaterial (tString) —
- afCheapMaterialMul (float) —
Returns:
- void
SetGeometryPatchSize
void SetGeometryPatchSize(int alX)
Parameters
- alX (int) —
Returns:
- void
SetMaxHeight
void SetMaxHeight(float afX)
Parameters
- afX (float) —
Returns:
- void
SetTexturePatchSize
void SetTexturePatchSize(int alX)
Parameters
- alX (int) —
Returns:
- void
SetUnitSize
void SetUnitSize(float afX)
Parameters
- afX (float) —
Returns:
- void