C# Класс 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.
Наследование: TerrainComponent
Показать файл Открыть проект

Открытые методы

Метод Описание
ClipTerrainComponent ( PlanarTerrain terrain ) : System

Initialise the clip module using the given clip function.

NodeClip ( TerrainTreeNode node ) : Containment

Clip the node using the clipping function.

Описание методов

ClipTerrainComponent() публичный Метод

Initialise the clip module using the given clip function.
public ClipTerrainComponent ( PlanarTerrain terrain ) : System
terrain PlanarTerrain The terrain to add this module to.
Результат System

NodeClip() публичный абстрактный Метод

Clip the node using the clipping function.
public abstract NodeClip ( TerrainTreeNode node ) : Containment
node TerrainTreeNode The node to clip.
Результат Containment