C# Class Glare.Graphics.Terrains.Planar.Components.ClipTerrainComponent

Perform node clipping on the terrain. Each TerrainTreeNode is sent to a clipping function which returns Containment; if it returns Containment.Contains, then the node is in view. If it returns Containment.Intersects, then the node intersects with an edge (and therefore any deeper nodes need to be tested). If it returns Containment.Disjoint, then the node is completely out of view.
Inheritance: TerrainComponent
Show file Open project: Burton-Radons/Alexandria

Public Methods

Method Description
ClipTerrainComponent ( PlanarTerrain terrain ) : System

Initialise the clip module using the given clip function.

NodeClip ( TerrainTreeNode node ) : Containment

Clip the node using the clipping function.

Method Details

ClipTerrainComponent() public method

Initialise the clip module using the given clip function.
public ClipTerrainComponent ( PlanarTerrain terrain ) : System
terrain PlanarTerrain The terrain to add this module to.
return System

NodeClip() public abstract method

Clip the node using the clipping function.
public abstract NodeClip ( TerrainTreeNode node ) : Containment
node TerrainTreeNode The node to clip.
return Containment