C# Class IrrlichtNETCP.TerrainSceneNode

Inheritance: SceneNode
Exibir arquivo Open project: Paulus/irrlichtnetcp Class Usage Examples

Public Methods

Method Description
GetBoundingBox ( int patchX, int patchZ ) : Box3D

Gets the bounding box for the specified patches

GetHeight ( float x, float z ) : float

Returns the height for a specified point.

GetMeshBufferForLOD ( MeshBuffer &mb, int LOD ) : void

Gets the meshbuffer data based on a specified level of detail.

OverrideLODDistance ( int LOD, double newDistance ) : void

Override the default generation of distance thresholds.

ScaleTexture ( float scale, float scale2 ) : void

Scales the base texture, similar to makePlanarTextureMapping.

SetCameraMovementDelta ( float delta ) : void

Sets the movement camera threshold.

SetCameraRotationDelta ( float delta ) : void

Sets the rotation camera threshold.

SetLODOfPatch ( int patchX, int patchZ, int LOD ) : void

Manually sets the LOD of a patch.

TerrainSceneNode ( IntPtr raw ) : System

Private Methods

Method Description
TerrainSceneNode_GetBoundingBox ( IntPtr terrain, int patchX, int patchZ, [ box ) : void
TerrainSceneNode_GetBoundingBoxA ( IntPtr terrain, [ box ) : void
TerrainSceneNode_GetHeight ( IntPtr terrain, float x, float z ) : float
TerrainSceneNode_GetIndexCount ( IntPtr terrain ) : int
TerrainSceneNode_GetMesh ( IntPtr terrain ) : IntPtr
TerrainSceneNode_GetMeshBufferForLOD ( IntPtr terrain, IntPtr mb, int lod ) : void
TerrainSceneNode_GetTerrainCenter ( IntPtr terrain, [ center ) : void
TerrainSceneNode_OverrideLODDistance ( IntPtr terrain, int lod, double newDistance ) : void
TerrainSceneNode_ScaleTexture ( IntPtr terrain, float scale, float scale2 ) : void
TerrainSceneNode_SetCameraMovementDelta ( IntPtr terrain, float delta ) : void
TerrainSceneNode_SetCameraRotationDelta ( IntPtr terrain, float delta ) : void
TerrainSceneNode_SetDynamicSelectorUpdate ( IntPtr terrain, bool bVal ) : void
TerrainSceneNode_SetLODOfPatch ( IntPtr terrain, int patchX, int patchZ, int LOD ) : void

Method Details

GetBoundingBox() public method

Gets the bounding box for the specified patches
public GetBoundingBox ( int patchX, int patchZ ) : Box3D
patchX int Patch X
patchZ int Patch Z
return Box3D

GetHeight() public method

Returns the height for a specified point.
public GetHeight ( float x, float z ) : float
x float X-coordinate on the terrain
z float Z-coordinate on the terrain
return float

GetMeshBufferForLOD() public method

Gets the meshbuffer data based on a specified level of detail.
public GetMeshBufferForLOD ( MeshBuffer &mb, int LOD ) : void
mb MeshBuffer A reference to an MeshBuffer object
LOD int the level of detail you want the indices from.
return void

OverrideLODDistance() public method

Override the default generation of distance thresholds.
public OverrideLODDistance ( int LOD, double newDistance ) : void
LOD int LOD
newDistance double Distance
return void

ScaleTexture() public method

Scales the base texture, similar to makePlanarTextureMapping.
public ScaleTexture ( float scale, float scale2 ) : void
scale float The scaling amount. Values above 1.0 increase the number of time the texture is drawn on the terrain. Values below 0 will decrease the number of times the texture is drawn on the terrain. Using negative values will flip the texture, as well as still scaling it.
scale2 float If set to 0 (default value), this will set the second texture coordinate set to the same values as in the first set. If this is another value than zero, it will scale the second texture coordinate set by this value.
return void

SetCameraMovementDelta() public method

Sets the movement camera threshold.
public SetCameraMovementDelta ( float delta ) : void
delta float Delta
return void

SetCameraRotationDelta() public method

Sets the rotation camera threshold.
public SetCameraRotationDelta ( float delta ) : void
delta float Delta
return void

SetLODOfPatch() public method

Manually sets the LOD of a patch.
public SetLODOfPatch ( int patchX, int patchZ, int LOD ) : void
patchX int Patch x coordinate.
patchZ int Patch z coordinate.
LOD int The level of detail to set the patch to.
return void

TerrainSceneNode() public method

public TerrainSceneNode ( IntPtr raw ) : System
raw System.IntPtr
return System