C# 클래스 Glare.Graphics.Terrains.Planar.TerrainComponent

A module that is attached to a Terrain that adds functionality to it.
파일 보기 프로젝트 열기: Burton-Radons/Alexandria

공개 메소드들

메소드 설명
Detach ( ) : void

Detach the TerrainComponent from the Terrain.

NodeClip ( TerrainTreeNode node ) : Containment

Return whether the node is contained in this module's clipping range. If this returns Containment.Contains, then any node with a smaller box must also be contained.

NodeLodBlend ( TerrainTreeNode node, double distance ) : double

Return how much to blend between this LOD level and the next less detailed one. If this returns 1, then the node should be divided if possible.

OnBlockAdded ( PlanarTerrainBlock block ) : void

This is called when the PlanarTerrain has added a new PlanarTerrainBlock.

OnDrawing ( PlanarTerrainBlock block, System.Matrix4d &world ) : void
OnHeightModified ( PlanarTerrainBlock block, Box2i &area ) : void

The terrain's heightmap has been modified and its changes have been accepted into the core. This is then called on each attached module to give it an opportunity to affect it.

PostOpaqueRender ( System.Matrix4d &world, System.Matrix4d &view, System.Matrix4d &projection ) : void

This is called by PlanarTerrain.PostOpaqueRender. The opaque scene has been drawn, and if the module can extract information from it (like occlusion queries), this is the time.

ResetMetrics ( ) : void

This is called by PlanarTerrain.ResetMetrics. Reset any metrics that have been gathered to zero.

TerrainComponent ( PlanarTerrain terrain ) : System

보호된 메소드들

메소드 설명
OnDetach ( ) : void

Called when the TerrainComponent is being detached from the Terrain.

메소드 상세

Detach() 공개 메소드

Detach the TerrainComponent from the Terrain.
public Detach ( ) : void
리턴 void

NodeClip() 공개 메소드

Return whether the node is contained in this module's clipping range. If this returns Containment.Contains, then any node with a smaller box must also be contained.
public NodeClip ( TerrainTreeNode node ) : Containment
node TerrainTreeNode
리턴 Containment

NodeLodBlend() 공개 메소드

Return how much to blend between this LOD level and the next less detailed one. If this returns 1, then the node should be divided if possible.
public NodeLodBlend ( TerrainTreeNode node, double distance ) : double
node TerrainTreeNode
distance double
리턴 double

OnBlockAdded() 공개 메소드

This is called when the PlanarTerrain has added a new PlanarTerrainBlock.
public OnBlockAdded ( PlanarTerrainBlock block ) : void
block PlanarTerrainBlock
리턴 void

OnDetach() 보호된 메소드

Called when the TerrainComponent is being detached from the Terrain.
protected OnDetach ( ) : void
리턴 void

OnDrawing() 공개 메소드

public OnDrawing ( PlanarTerrainBlock block, System.Matrix4d &world ) : void
block PlanarTerrainBlock
world System.Matrix4d
리턴 void

OnHeightModified() 공개 메소드

The terrain's heightmap has been modified and its changes have been accepted into the core. This is then called on each attached module to give it an opportunity to affect it.
public OnHeightModified ( PlanarTerrainBlock block, Box2i &area ) : void
block PlanarTerrainBlock
area Box2i
리턴 void

PostOpaqueRender() 공개 메소드

This is called by PlanarTerrain.PostOpaqueRender. The opaque scene has been drawn, and if the module can extract information from it (like occlusion queries), this is the time.
public PostOpaqueRender ( System.Matrix4d &world, System.Matrix4d &view, System.Matrix4d &projection ) : void
world System.Matrix4d
view System.Matrix4d
projection System.Matrix4d
리턴 void

ResetMetrics() 공개 메소드

This is called by PlanarTerrain.ResetMetrics. Reset any metrics that have been gathered to zero.
public ResetMetrics ( ) : void
리턴 void

TerrainComponent() 공개 메소드

public TerrainComponent ( PlanarTerrain terrain ) : System
terrain PlanarTerrain
리턴 System