C# Класс OctreeZone.TerrainZoneRenderable

Наследование: Axiom.Graphics.SimpleRenderable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
DELTA_BINDING short
MAIN_BINDING short
MORPH_CUSTOM_PARAM_ID int
STITCH_EAST int
STITCH_EAST_SHIFT int
STITCH_NORTH int
STITCH_NORTH_SHIFT int
STITCH_SOUTH int
STITCH_SOUTH_SHIFT int
STITCH_WEST int
STITCH_WEST_SHIFT int

Открытые методы

Метод Описание
AdjustRenderLevel ( int i ) : void
CalculateCFactor ( ) : Real
CalculateMinLevelDist2 ( Real C ) : void
CalculateNormals ( ) : void
CheckSize ( int n ) : bool
CreateDeltaBuffer ( ) : HardwareVertexBuffer
DeleteGeometry ( ) : void
GenerateTriListIndexes ( uint stitchFlags ) : IndexData
GenerateTriStripIndexes ( uint stitchFlags ) : IndexData
GenerateVertexLighting ( Vector3 sunlight, ColorEx ambient ) : void
GetHeightAt ( float x, float z ) : float
GetIndexData ( ) : IndexData
GetNeighbor ( Neighbor neighbor ) : TerrainZoneRenderable
GetNormalAt ( float x, float z, Vector3 &result ) : void
GetSquaredViewDepth ( Camera camera ) : float

Returns the camera-relative squared depth of this renderable.

Used to sort transparent objects. Squared depth is used rather than actual depth to avoid having to perform a square root on the result.

GetWorldOrientation ( ) : Quaternion
GetWorldPosition ( ) : Vector3
GetWorldTransforms ( Matrix4 matrices ) : void

Gets the world transform matrix / matrices for this renderable object.

If the object has any derived transforms, these are expected to be up to date as long as all the SceneNode structures have been updated before this is called.

This method will populate xform with 1 matrix if it does not use vertex blending. If it does use vertex blending it will fill the passed in pointer with an array of matrices, the length being the value returned from getNumWorldTransforms.

HasNeighborRenderLevel ( int i ) : bool
Index ( int x, int z ) : ushort
Initialize ( int startx, int startz, Real pageHeightData ) : void
IntersectSegment ( Vector3 start, Vector3 end, Vector3 &result ) : bool
NotifyCurrentCamera ( Camera cam ) : void
NumNeighbors ( ) : int
SetNeighbor ( Neighbor n, TerrainZoneRenderable t ) : void
StitchEdge ( Neighbor neighbor, int hiLOD, int loLOD, bool omitFirstTri, bool omitLastTri, ushort ppIdx ) : int
TerrainZoneRenderable ( string name, TerrainZone tsm ) : System
UpdateCustomGpuParameter ( GpuProgramParameters constantEntry, GpuProgramParameters param ) : void

Update a custom GpuProgramParameters constant which is derived from information only this Renderable knows.

This method allows a Renderable to map in a custom GPU program parameter based on it's own data. This is represented by a GPU auto parameter of AutoConstantType.Custom, and to allow there to be more than one of these per Renderable, the 'data' field on the auto parameter will identify which parameter is being updated. The implementation of this method must identify the parameter being updated, and call a 'SetConstant' method on the passed in GpuProgramParameters object, using the details provided in the incoming auto constant setting to identify the index at which to set the parameter.

UpdateRenderQueue ( RenderQueue queue ) : void
Vertex ( int x, int z, int n ) : float

Описание методов

AdjustRenderLevel() публичный Метод

public AdjustRenderLevel ( int i ) : void
i int
Результат void

CalculateCFactor() публичный Метод

public CalculateCFactor ( ) : Real
Результат Real

CalculateMinLevelDist2() публичный Метод

public CalculateMinLevelDist2 ( Real C ) : void
C Real
Результат void

CalculateNormals() публичный Метод

public CalculateNormals ( ) : void
Результат void

CheckSize() публичный Метод

public CheckSize ( int n ) : bool
n int
Результат bool

CreateDeltaBuffer() публичный Метод

public CreateDeltaBuffer ( ) : HardwareVertexBuffer
Результат Axiom.Graphics.HardwareVertexBuffer

DeleteGeometry() публичный Метод

public DeleteGeometry ( ) : void
Результат void

GenerateTriListIndexes() публичный Метод

public GenerateTriListIndexes ( uint stitchFlags ) : IndexData
stitchFlags uint
Результат Axiom.Graphics.IndexData

GenerateTriStripIndexes() публичный Метод

public GenerateTriStripIndexes ( uint stitchFlags ) : IndexData
stitchFlags uint
Результат Axiom.Graphics.IndexData

GenerateVertexLighting() публичный Метод

public GenerateVertexLighting ( Vector3 sunlight, ColorEx ambient ) : void
sunlight Vector3
ambient Axiom.Core.ColorEx
Результат void

GetHeightAt() публичный Метод

public GetHeightAt ( float x, float z ) : float
x float
z float
Результат float

GetIndexData() публичный Метод

public GetIndexData ( ) : IndexData
Результат Axiom.Graphics.IndexData

GetNeighbor() публичный Метод

public GetNeighbor ( Neighbor neighbor ) : TerrainZoneRenderable
neighbor Neighbor
Результат TerrainZoneRenderable

GetNormalAt() публичный Метод

public GetNormalAt ( float x, float z, Vector3 &result ) : void
x float
z float
result Vector3
Результат void

GetSquaredViewDepth() публичный Метод

Returns the camera-relative squared depth of this renderable.
Used to sort transparent objects. Squared depth is used rather than actual depth to avoid having to perform a square root on the result.
public GetSquaredViewDepth ( Camera camera ) : float
camera Axiom.Core.Camera
Результат float

GetWorldOrientation() публичный Метод

public GetWorldOrientation ( ) : Quaternion
Результат Axiom.Math.Quaternion

GetWorldPosition() публичный Метод

public GetWorldPosition ( ) : Vector3
Результат Vector3

GetWorldTransforms() публичный Метод

Gets the world transform matrix / matrices for this renderable object.
If the object has any derived transforms, these are expected to be up to date as long as all the SceneNode structures have been updated before this is called.

This method will populate xform with 1 matrix if it does not use vertex blending. If it does use vertex blending it will fill the passed in pointer with an array of matrices, the length being the value returned from getNumWorldTransforms.

public GetWorldTransforms ( Matrix4 matrices ) : void
matrices Axiom.Math.Matrix4
Результат void

HasNeighborRenderLevel() публичный Метод

public HasNeighborRenderLevel ( int i ) : bool
i int
Результат bool

Index() публичный Метод

public Index ( int x, int z ) : ushort
x int
z int
Результат ushort

Initialize() публичный Метод

public Initialize ( int startx, int startz, Real pageHeightData ) : void
startx int
startz int
pageHeightData Real
Результат void

IntersectSegment() публичный Метод

public IntersectSegment ( Vector3 start, Vector3 end, Vector3 &result ) : bool
start Vector3
end Vector3
result Vector3
Результат bool

NotifyCurrentCamera() публичный Метод

public NotifyCurrentCamera ( Camera cam ) : void
cam Axiom.Core.Camera
Результат void

NumNeighbors() публичный Метод

public NumNeighbors ( ) : int
Результат int

SetNeighbor() публичный Метод

public SetNeighbor ( Neighbor n, TerrainZoneRenderable t ) : void
n Neighbor
t TerrainZoneRenderable
Результат void

StitchEdge() публичный Метод

public StitchEdge ( Neighbor neighbor, int hiLOD, int loLOD, bool omitFirstTri, bool omitLastTri, ushort ppIdx ) : int
neighbor Neighbor
hiLOD int
loLOD int
omitFirstTri bool
omitLastTri bool
ppIdx ushort
Результат int

TerrainZoneRenderable() публичный Метод

public TerrainZoneRenderable ( string name, TerrainZone tsm ) : System
name string
tsm TerrainZone
Результат System

UpdateCustomGpuParameter() публичный Метод

Update a custom GpuProgramParameters constant which is derived from information only this Renderable knows.
This method allows a Renderable to map in a custom GPU program parameter based on it's own data. This is represented by a GPU auto parameter of AutoConstantType.Custom, and to allow there to be more than one of these per Renderable, the 'data' field on the auto parameter will identify which parameter is being updated. The implementation of this method must identify the parameter being updated, and call a 'SetConstant' method on the passed in GpuProgramParameters object, using the details provided in the incoming auto constant setting to identify the index at which to set the parameter.
public UpdateCustomGpuParameter ( GpuProgramParameters constantEntry, GpuProgramParameters param ) : void
constantEntry Axiom.Graphics.GpuProgramParameters The auto constant entry referring to the parameter being updated.
param Axiom.Graphics.GpuProgramParameters The parameters object which this method should call to set the updated parameters.
Результат void

UpdateRenderQueue() публичный Метод

public UpdateRenderQueue ( RenderQueue queue ) : void
queue Axiom.Graphics.RenderQueue
Результат void

Vertex() публичный Метод

public Vertex ( int x, int z, int n ) : float
x int
z int
n int
Результат float

Описание свойств

DELTA_BINDING публичное статическое свойство

public static short DELTA_BINDING
Результат short

MAIN_BINDING публичное статическое свойство

public static short MAIN_BINDING
Результат short

MORPH_CUSTOM_PARAM_ID публичное статическое свойство

public static int MORPH_CUSTOM_PARAM_ID
Результат int

STITCH_EAST публичное статическое свойство

public static int STITCH_EAST
Результат int

STITCH_EAST_SHIFT публичное статическое свойство

public static int STITCH_EAST_SHIFT
Результат int

STITCH_NORTH публичное статическое свойство

public static int STITCH_NORTH
Результат int

STITCH_NORTH_SHIFT публичное статическое свойство

public static int STITCH_NORTH_SHIFT
Результат int

STITCH_SOUTH публичное статическое свойство

public static int STITCH_SOUTH
Результат int

STITCH_SOUTH_SHIFT публичное статическое свойство

public static int STITCH_SOUTH_SHIFT
Результат int

STITCH_WEST публичное статическое свойство

public static int STITCH_WEST
Результат int

STITCH_WEST_SHIFT публичное статическое свойство

public static int STITCH_WEST_SHIFT
Результат int