Méthode | Description | |
---|---|---|
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 ( |
This is called when the PlanarTerrain has added a new PlanarTerrainBlock.
|
|
OnDrawing ( |
||
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.
|
|
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 |
Méthode | Description | |
---|---|---|
OnDetach ( ) : void |
Called when the TerrainComponent is being detached from the Terrain.
|
public NodeClip ( TerrainTreeNode node ) : Containment | ||
node | TerrainTreeNode | |
Résultat | Containment |
public NodeLodBlend ( TerrainTreeNode node, double distance ) : double | ||
node | TerrainTreeNode | |
distance | double | |
Résultat | double |
public OnBlockAdded ( |
||
block | ||
Résultat | void |
public OnDrawing ( |
||
block | ||
world | System.Matrix4d | |
Résultat | void |
public OnHeightModified ( |
||
block | ||
area | Box2i | |
Résultat | void |
public PostOpaqueRender ( System.Matrix4d &world, System.Matrix4d &view, System.Matrix4d &projection ) : void | ||
world | System.Matrix4d | |
view | System.Matrix4d | |
projection | System.Matrix4d | |
Résultat | void |
public TerrainComponent ( PlanarTerrain terrain ) : System | ||
terrain | PlanarTerrain | |
Résultat | System |