C# Класс Axiom.Controllers.ControllerManager

Summary description for ControllerManager.
Наследование: DisposableObject
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CreateController ( IControllerValue destination, IControllerFunction function ) : Controller

Overloaded method. Creates a new controller, using a reference to a FrameTimeControllerValue as the source.

CreateController ( IControllerValue source, IControllerValue destination, IControllerFunction function ) : Controller

Factory method for creating an instance of a controller based on the input provided.

CreateFrameTimePassthroughController ( IControllerValue dest ) : Controller
CreateGpuProgramTimerParam ( GpuProgramParameters parms, int index, float timeFactor ) : Controller

Predefined controller value for setting a single floating- point value in a constant paramter of a vertex or fragment program.

Any value is accepted, it is propagated into the 'x' component of the constant register identified by the index. If you need to use named parameters, retrieve the index from the param object before setting this controller up.

CreateTextureAnimator ( TextureUnitState texUnit, float sequenceTime ) : Controller

Creates a texture layer animator controller.

This helper method creates the Controller, IControllerValue and IControllerFunction classes required to animate a texture.

CreateTextureRotator ( TextureUnitState layer, float speed ) : Controller

Creates a basic time-based texture coordinate modifier designed for creating rotating textures.

This simple method allows you to easily create constant-speed rotating textures. If you want more control, look up the ControllerManager.CreateTextureWaveTransformer for more complex wave-based scrollers / stretchers / rotaters.

CreateTextureUScroller ( TextureUnitState layer, float speed ) : Controller

Creates a basic time-based texture u coordinate modifier designed for creating scrolling textures.

This simple method allows you to easily create constant-speed scrolling textures. If you want more control, look up the CreateTextureWaveTransformer for more complex wave-based scrollers / stretchers / rotaters.

CreateTextureUVScroller ( TextureUnitState layer, float speed ) : Controller

Creates a basic time-based texture uv coordinate modifier designed for creating scrolling textures.

This simple method allows you to easily create constant-speed scrolling textures. If you want to specify differnt speed values for horizontil and vertical scroll, use the specific methods CreateTextureUScroller and CreateTextureVScroller. If you want more control, look up the CreateTextureWaveTransformer for more complex wave-based scrollers / stretchers / rotaters.

CreateTextureVScroller ( TextureUnitState layer, float speed ) : Controller

Creates a basic time-based texture v coordinate modifier designed for creating scrolling textures.

This simple method allows you to easily create constant-speed scrolling textures. If you want more control, look up the CreateTextureWaveTransformer for more complex wave-based scrollers / stretchers / rotaters.

CreateTextureWaveTransformer ( TextureUnitState layer, TextureTransform type, WaveformType waveType, float baseVal, float frequency, float phase, float amplitude ) : Controller

Creates a very flexible time-based texture transformation which can alter the scale, position or rotation of a texture based on a wave function.

DestroyController ( Controller controller ) : void
GetElapsedTime ( ) : float
UpdateAll ( ) : void

Causes all registered controllers to execute. This will depend on RenderSystem.BeginScene already being called so that the time since last frame can be obtained for calculations.

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

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

Called when the engine is shutting down.

Приватные методы

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

Internal constructor. This class cannot be instantiated externally.

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

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

Overloaded method. Creates a new controller, using a reference to a FrameTimeControllerValue as the source.
public CreateController ( IControllerValue destination, IControllerFunction function ) : Controller
destination IControllerValue Controller value to use as the destination.
function IControllerFunction Controller funcion that will use the source value to set the destination.
Результат Controller

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

Factory method for creating an instance of a controller based on the input provided.
public CreateController ( IControllerValue source, IControllerValue destination, IControllerFunction function ) : Controller
source IControllerValue Controller value to use as the source.
destination IControllerValue Controller value to use as the destination.
function IControllerFunction Controller funcion that will use the source value to set the destination.
Результат Controller

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

public CreateFrameTimePassthroughController ( IControllerValue dest ) : Controller
dest IControllerValue
Результат Controller

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

Predefined controller value for setting a single floating- point value in a constant paramter of a vertex or fragment program.
Any value is accepted, it is propagated into the 'x' component of the constant register identified by the index. If you need to use named parameters, retrieve the index from the param object before setting this controller up.
public CreateGpuProgramTimerParam ( GpuProgramParameters parms, int index, float timeFactor ) : Controller
parms Axiom.Graphics.GpuProgramParameters
index int
timeFactor float
Результат Controller

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

Creates a texture layer animator controller.
This helper method creates the Controller, IControllerValue and IControllerFunction classes required to animate a texture.
public CreateTextureAnimator ( TextureUnitState texUnit, float sequenceTime ) : Controller
texUnit Axiom.Graphics.TextureUnitState The texture unit to animate.
sequenceTime float Length of the animation (in seconds).
Результат Controller

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

Creates a basic time-based texture coordinate modifier designed for creating rotating textures.
This simple method allows you to easily create constant-speed rotating textures. If you want more control, look up the ControllerManager.CreateTextureWaveTransformer for more complex wave-based scrollers / stretchers / rotaters.
public CreateTextureRotator ( TextureUnitState layer, float speed ) : Controller
layer Axiom.Graphics.TextureUnitState The texture unit to animate.
speed float Speed of the rotation, in counter-clockwise revolutions per second.
Результат Controller

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

Creates a basic time-based texture u coordinate modifier designed for creating scrolling textures.
This simple method allows you to easily create constant-speed scrolling textures. If you want more control, look up the CreateTextureWaveTransformer for more complex wave-based scrollers / stretchers / rotaters.
public CreateTextureUScroller ( TextureUnitState layer, float speed ) : Controller
layer Axiom.Graphics.TextureUnitState The texture unit to animate.
speed float speed, in wraps per second.
Результат Controller

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

Creates a basic time-based texture uv coordinate modifier designed for creating scrolling textures.
This simple method allows you to easily create constant-speed scrolling textures. If you want to specify differnt speed values for horizontil and vertical scroll, use the specific methods CreateTextureUScroller and CreateTextureVScroller. If you want more control, look up the CreateTextureWaveTransformer for more complex wave-based scrollers / stretchers / rotaters.
public CreateTextureUVScroller ( TextureUnitState layer, float speed ) : Controller
layer Axiom.Graphics.TextureUnitState The texture unit to animate.
speed float speed, in wraps per second.
Результат Controller

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

Creates a basic time-based texture v coordinate modifier designed for creating scrolling textures.
This simple method allows you to easily create constant-speed scrolling textures. If you want more control, look up the CreateTextureWaveTransformer for more complex wave-based scrollers / stretchers / rotaters.
public CreateTextureVScroller ( TextureUnitState layer, float speed ) : Controller
layer Axiom.Graphics.TextureUnitState The texture unit to animate.
speed float speed, in wraps per second.
Результат Controller

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

Creates a very flexible time-based texture transformation which can alter the scale, position or rotation of a texture based on a wave function.
public CreateTextureWaveTransformer ( TextureUnitState layer, TextureTransform type, WaveformType waveType, float baseVal, float frequency, float phase, float amplitude ) : Controller
layer Axiom.Graphics.TextureUnitState The texture unit to effect.
type TextureTransform The type of transform, either translate (scroll), scale (stretch) or rotate (spin).
waveType WaveformType The shape of the wave, see WaveformType enum for details.
baseVal float The base value of the output.
frequency float The speed of the wave in cycles per second.
phase float The offset of the start of the wave, e.g. 0.5 to start half-way through the wave.
amplitude float Scales the output so that instead of lying within 0..1 it lies within 0..(1 * amplitude) for exaggerated effects
Результат Controller

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

public DestroyController ( Controller controller ) : void
controller Controller
Результат void

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

public GetElapsedTime ( ) : float
Результат float

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

Causes all registered controllers to execute. This will depend on RenderSystem.BeginScene already being called so that the time since last frame can be obtained for calculations.
public UpdateAll ( ) : void
Результат void

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

Called when the engine is shutting down.
protected dispose ( bool disposeManagedResources ) : void
disposeManagedResources bool
Результат void