C# 클래스 IrrlichtNETCP.TerrainSceneNode

상속: SceneNode
파일 보기 프로젝트 열기: Paulus/irrlichtnetcp 1 사용 예제들

공개 메소드들

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

비공개 메소드들

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

메소드 상세

GetBoundingBox() 공개 메소드

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

GetHeight() 공개 메소드

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
리턴 float

GetMeshBufferForLOD() 공개 메소드

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.
리턴 void

OverrideLODDistance() 공개 메소드

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

ScaleTexture() 공개 메소드

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.
리턴 void

SetCameraMovementDelta() 공개 메소드

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

SetCameraRotationDelta() 공개 메소드

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

SetLODOfPatch() 공개 메소드

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.
리턴 void

TerrainSceneNode() 공개 메소드

public TerrainSceneNode ( IntPtr raw ) : System
raw System.IntPtr
리턴 System