C# Class Glare.Graphics.Terrains.Planar.PlanarTerrainBlock

A section of a PlanarTerrain.
Mostra file Open project: Burton-Radons/Alexandria Class Usage Examples

Public Methods

Method Description
AllocateHeightBackBuffer ( ) : Texture2D
DirtyAllHeightBackBuffer ( Texture2D newHeightTexture ) : void
DirtyBackBufferHeightTexture ( Texture2D newHeightTexture, Box2i modified ) : void
DirtyBackBufferHeightTexture ( Texture2D newHeightTexture, int x, int y, int width, int height ) : void

Private Methods

Method Description
CleanTree ( ) : void
Draw ( System.Program program, System.Vector3 viewPoint, System.Matrix4d &world ) : void
Draw ( System.Vector3 &viewPoint, System.Matrix4d &world, System.Matrix4d &view, System.Matrix4d &projection ) : void
DrawInstances ( System.Program program ) : void
DrawSetParameters ( string shaderName, System.Matrix4d &world, System.Matrix4d &view, System.Matrix4d &projection ) : void
DrawWater ( Texture2D waterOffsetHeightTexture, Vector3d &waterColor, Vector3d &viewPoint, System.Matrix4d &world, System.Matrix4d &view, System.Matrix4d &projection ) : void
PlanarTerrainBlock ( PlanarTerrain terrain, Vector2i blockIndex ) : System

Method Details

AllocateHeightBackBuffer() public method

public AllocateHeightBackBuffer ( ) : Texture2D
return Texture2D

DirtyAllHeightBackBuffer() public method

public DirtyAllHeightBackBuffer ( Texture2D newHeightTexture ) : void
newHeightTexture Texture2D
return void

DirtyBackBufferHeightTexture() public method

public DirtyBackBufferHeightTexture ( Texture2D newHeightTexture, Box2i modified ) : void
newHeightTexture Texture2D
modified Box2i
return void

DirtyBackBufferHeightTexture() public method

public DirtyBackBufferHeightTexture ( Texture2D newHeightTexture, int x, int y, int width, int height ) : void
newHeightTexture Texture2D
x int
y int
width int
height int
return void