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
파일 보기 프로젝트 열기: Burton-Radons/Alexandria

공개 메소드들

메소드 설명
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