Property | Type | Description | |
---|---|---|---|
PublicShape | TerrainShape | ||
Scale | float | ||
WaterSpawnBitmap | ].bool[ | ||
decimateOutlines | bool | ||
gravityPoint | Vector2 |
Method | Description | |
---|---|---|
AddCircle ( float x, float y, float radius ) : void | ||
ApplyModification ( TerrainModification mod ) : void | ||
BuildTerrainTypeTexture ( ) : void | ||
GetOutline ( bool enforceUpdate = false ) : List
|
||
GetTerrainTypeTexture ( ) : Microsoft.Xna.Framework.Graphics.Texture2D | ||
GetTriangles ( bool enforceUpdate = false ) : List |
||
IsWaterSpawn ( float x, float y ) : bool | ||
Mix ( Vector2 a, Vector2 b, float wa, float wb ) : Vector2 | ||
SubtractCircle ( float x, float y, float radius ) : void | ||
Terrain ( Microsoft.Xna.Framework.Graphics.Texture2D terrainTexture ) : Microsoft.Xna.Framework | ||
Update ( ) : void |
Method | Description | |
---|---|---|
DecimateOutline ( List |
||
Distance ( float x1, float y1, float x2, float y2 ) : float | ||
ExtractOutline ( System.Edge edge ) : void | ||
ExtractOutlineFromEdges ( ) : void | ||
ExtractOutlineInternal ( System.Edge edge ) : List |
||
ExtractTrianglesAndOutline ( ) : void | ||
ExtractTrianglesFromCells ( ) : void | ||
PerformMarchingSquares ( ) : void | ||
SmoothTerrain ( float gauss ) : void | ||
UpdateTerrain ( int minY, int minX, int maxX ) : void | ||
area ( Vector2 a, Vector2 b, Vector2 c ) : float |
public AddCircle ( float x, float y, float radius ) : void | ||
x | float | |
y | float | |
radius | float | |
return | void |
public ApplyModification ( TerrainModification mod ) : void | ||
mod | TerrainModification | |
return | void |
public GetOutline ( bool enforceUpdate = false ) : List
|
||
enforceUpdate | bool | |
return | List
|
public GetTerrainTypeTexture ( ) : Microsoft.Xna.Framework.Graphics.Texture2D | ||
return | Microsoft.Xna.Framework.Graphics.Texture2D |
public GetTriangles ( bool enforceUpdate = false ) : List |
||
enforceUpdate | bool | |
return | List |
public IsWaterSpawn ( float x, float y ) : bool | ||
x | float | |
y | float | |
return | bool |
public Mix ( Vector2 a, Vector2 b, float wa, float wb ) : Vector2 | ||
a | Vector2 | |
b | Vector2 | |
wa | float | |
wb | float | |
return | Vector2 |
public SubtractCircle ( float x, float y, float radius ) : void | ||
x | float | |
y | float | |
radius | float | |
return | void |
public Terrain ( Microsoft.Xna.Framework.Graphics.Texture2D terrainTexture ) : Microsoft.Xna.Framework | ||
terrainTexture | Microsoft.Xna.Framework.Graphics.Texture2D | |
return | Microsoft.Xna.Framework |