C# Класс Axiom.Graphics.AutoParamDataSource

This utility class is used to hold the information used to generate the matrices and other information required to automatically populate GpuProgramParameters.
This class exercises a lazy-update scheme in order to avoid having to update all the information a GpuProgramParameters class could possibly want all the time. It relies on the SceneManager to update it when the base data has changed, and will calculate concatenated matrices etc only when required, passing back precalculated matrices when they are requested more than once when the underlying information has not altered.
Наследование: DisposableObject
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
ProjectionClipSpace2DToImageSpacePerspective Matrix4
ambientLight ColorEx
blankLight Light
camera Camera
cameraPositionObjectSpace Vector4
cameraPositionObjectSpaceDirty bool
currentLightList LightList
currentRenderTarget RenderTarget
currentTextureProjector Frustum
currentViewport Viewport
dirLightExtrusionDistance float
fogParams Vector4
inverseTransposeWorldViewMatrix Matrix4
inverseTransposeWorldViewMatrixDirty bool
inverseViewMatrix Matrix4
inverseViewMatrixDirty bool
inverseWorldMatrix Matrix4
inverseWorldMatrixDirty bool
inverseWorldViewMatrix Matrix4
inverseWorldViewMatrixDirty bool
mvShadowTechnique Vector4
passNumber int
projMatrixDirty bool
projectionMatrix Matrix4
renderable IRenderable
textureViewProjMatrix Matrix4
textureViewProjMatrixDirty bool
time float
viewMatrix Matrix4
viewMatrixDirty bool
viewProjMatrix Matrix4
viewProjMatrixDirty bool
worldMatrix Matrix4[]
worldMatrixCount int
worldMatrixDirty bool
worldViewMatrix Matrix4
worldViewMatrixDirty bool
worldViewProjMatrix Matrix4
worldViewProjMatrixDirty bool

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

Метод Описание
AutoParamDataSource ( ) : System

Default constructor.

GetLight ( int index ) : Light

Get the light which is 'index'th closest to the current object

GetLightPowerScale ( int index ) : Real

SetCurrentLightList ( LightList lightList ) : void

SetShadowDirLightExtrusionDistance ( float distance ) : void

Sets the constant extrusion distance for directional lights.

Защищенные методы

Метод Описание
dispose ( bool disposeManagedResources ) : void

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

AutoParamDataSource() публичный метод

Default constructor.
public AutoParamDataSource ( ) : System
Результат System

GetLight() публичный метод

Get the light which is 'index'th closest to the current object
public GetLight ( int index ) : Light
index int Ordinal value signifying the light to retreive, with 0 being closest, 1 being next closest, etc.
Результат Axiom.Core.Light

GetLightPowerScale() публичный метод

public GetLightPowerScale ( int index ) : Real
index int Ordinal value signifying the light to retreive.
Результат Real

SetCurrentLightList() публичный метод

public SetCurrentLightList ( LightList lightList ) : void
lightList LightList
Результат void

SetShadowDirLightExtrusionDistance() публичный метод

Sets the constant extrusion distance for directional lights.
public SetShadowDirLightExtrusionDistance ( float distance ) : void
distance float
Результат void

dispose() защищенный метод

protected dispose ( bool disposeManagedResources ) : void
disposeManagedResources bool
Результат void

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

ProjectionClipSpace2DToImageSpacePerspective защищенное свойство

protected Matrix4 ProjectionClipSpace2DToImageSpacePerspective
Результат Matrix4

ambientLight защищенное свойство

Current global ambient light color.
protected ColorEx ambientLight
Результат ColorEx

blankLight защищенное свойство

Blank light to use when a higher index light is requested than is available.
protected Light blankLight
Результат Light

camera защищенное свойство

Current camera being used for rendering.
protected Camera camera
Результат Camera

cameraPositionObjectSpace защищенное свойство

Position of the current camera in object space relative to the current renderable.
protected Vector4 cameraPositionObjectSpace
Результат Vector4

cameraPositionObjectSpaceDirty защищенное свойство

protected bool cameraPositionObjectSpaceDirty
Результат bool

currentLightList защищенное свойство

List of lights that are in the scene and near the current renderable.
protected LightList currentLightList
Результат LightList

currentRenderTarget защищенное свойство

Current active render target.
protected RenderTarget currentRenderTarget
Результат RenderTarget

currentTextureProjector защищенное свойство

Current frustum used for texture projection.
protected Frustum currentTextureProjector
Результат Frustum

currentViewport защищенное свойство

The current viewport. We don't really do anything with this, but Ogre uses it to determine the width and height.
protected Viewport currentViewport
Результат Viewport

dirLightExtrusionDistance защищенное свойство

Distance to extrude shadow volume vertices.
protected float dirLightExtrusionDistance
Результат float

fogParams защищенное свойство

Parameters for GPU fog. fogStart, fogEnd, and fogScale
protected Vector4 fogParams
Результат Vector4

inverseTransposeWorldViewMatrix защищенное свойство

Inverse Transpose of the current world view matrix.
protected Matrix4 inverseTransposeWorldViewMatrix
Результат Matrix4

inverseTransposeWorldViewMatrixDirty защищенное свойство

protected bool inverseTransposeWorldViewMatrixDirty
Результат bool

inverseViewMatrix защищенное свойство

Inverse of the current view matrix.
protected Matrix4 inverseViewMatrix
Результат Matrix4

inverseViewMatrixDirty защищенное свойство

protected bool inverseViewMatrixDirty
Результат bool

inverseWorldMatrix защищенное свойство

Inverse of current world matrix.
protected Matrix4 inverseWorldMatrix
Результат Matrix4

inverseWorldMatrixDirty защищенное свойство

protected bool inverseWorldMatrixDirty
Результат bool

inverseWorldViewMatrix защищенное свойство

Inverse of current concatenated world and view matrices.
protected Matrix4 inverseWorldViewMatrix
Результат Matrix4

inverseWorldViewMatrixDirty защищенное свойство

protected bool inverseWorldViewMatrixDirty
Результат bool

mvShadowTechnique защищенное свойство

protected Vector4 mvShadowTechnique
Результат Vector4

passNumber защищенное свойство

protected int passNumber
Результат int

projMatrixDirty защищенное свойство

protected bool projMatrixDirty
Результат bool

projectionMatrix защищенное свойство

Current projection matrix.
protected Matrix4 projectionMatrix
Результат Matrix4

renderable защищенное свойство

Current target renderable.
protected IRenderable renderable
Результат IRenderable

textureViewProjMatrix защищенное свойство

Current texture view projection matrix.
protected Matrix4 textureViewProjMatrix
Результат Matrix4

textureViewProjMatrixDirty защищенное свойство

protected bool textureViewProjMatrixDirty
Результат bool

time защищенное свойство

current time
protected float time
Результат float

viewMatrix защищенное свойство

Current view matrix;
protected Matrix4 viewMatrix
Результат Matrix4

viewMatrixDirty защищенное свойство

protected bool viewMatrixDirty
Результат bool

viewProjMatrix защищенное свойство

Current view and projection matrices concatenated.
protected Matrix4 viewProjMatrix
Результат Matrix4

viewProjMatrixDirty защищенное свойство

protected bool viewProjMatrixDirty
Результат bool

worldMatrix защищенное свойство

Array of world matrices for the current renderable.
protected Matrix4[] worldMatrix
Результат Matrix4[]

worldMatrixCount защищенное свойство

Current count of matrices in the world matrix array.
protected int worldMatrixCount
Результат int

worldMatrixDirty защищенное свойство

protected bool worldMatrixDirty
Результат bool

worldViewMatrix защищенное свойство

Current concatenated world and view matrices.
protected Matrix4 worldViewMatrix
Результат Matrix4

worldViewMatrixDirty защищенное свойство

protected bool worldViewMatrixDirty
Результат bool

worldViewProjMatrix защищенное свойство

Current concatenated world, view, and projection matrices.
protected Matrix4 worldViewProjMatrix
Результат Matrix4

worldViewProjMatrixDirty защищенное свойство

protected bool worldViewProjMatrixDirty
Результат bool