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
Afficher le fichier Open project: Burton-Radons/Alexandria

Méthodes publiques

Méthode 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 méthode

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

NodeClip() public abstract méthode

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