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

An instance of a Compositor object for one Viewport. It is part of the CompositorChain for a Viewport.
Наследование: DisposableObject
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
chain Axiom.Graphics.CompositorChain
compositor Compositor
enabled bool
localTextures Texture>.Dictionary
materialDummyCounter int
previousInstance CompositorInstance
renderSystemOperations List
resourceDummyCounter int
technique CompositionTechnique

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

Метод Описание
CompileOutputOperation ( CompositeTargetOperation finalState ) : void

Compile the final (output) operation. This is done seperately because this is combined with the input in chained filters.

CompileTargetOperations ( List compiledState ) : void

Recursively collect target states (except for final Pass).

CompositorInstance ( CompositionTechnique technique, Axiom.Graphics.CompositorChain chain ) : System
CreateResources ( bool forResizeOnly ) : void

Create local rendertextures and other resources. Builds mLocalTextures.

FreeResources ( bool forResizeOnly, bool clearReservedTextures ) : void

Destroy local rendertextures and other resources.

GetTextureInstance ( string name ) : Axiom.Core.Texture

Get the instance for a local texture.

It is only valid to call this when local textures have been loaded, which in practice means that the compositor instance is active. Calling it at other times will cause an exception. Note that since textures are cleaned up aggressively, this name is not guaranteed to stay the same if you disable and renable the compositor instance.

GetTextureInstance ( string name, int mrtIndex ) : Axiom.Core.Texture

Get the instance for a local texture.

It is only valid to call this when local textures have been loaded, which in practice means that the compositor instance is active. Calling it at other times will cause an exception. Note that since textures are cleaned up aggressively, this name is not guaranteed to stay the same if you disable and renable the compositor instance.

OnMaterialRender ( CompositorInstanceMaterialEventArgs args ) : void

Notify listeners of a material render.

OnMaterialSetup ( CompositorInstanceMaterialEventArgs args ) : void

Notify listeners of a material compilation.

OnResourceCreated ( CompositorInstanceResourceEventArgs args ) : void

Notify listeners of a material render.

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

Метод Описание
CollectPasses ( CompositeTargetOperation finalState, CompositionTargetPass target ) : void

Collect rendering passes. Here, passes are converted into render target operations and queued with queueRenderSystemOp.

CreateLocalMaterial ( string name ) : Material

Create a local dummy material with one technique but no passes. The material is detached from the Material Manager to make sure it is destroyed when going out of scope.

QueueRenderSystemOp ( CompositeTargetOperation finalState, CompositeRenderSystemOperation op ) : void

Queue a render system operation.

dispose ( bool disposeManagedResources ) : void

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

Метод Описание
DeriveTextureRenderTargetOptions ( string texname, bool &hwGammaWrite, int &fsaa, string &fsaaHint ) : void

Search for options like AA and hardware gamma which we may want to inherit from the main render target to which we're attached.

GetMrtTextureLocalName ( String baseName, int attachment ) : String

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

CollectPasses() защищенный Метод

Collect rendering passes. Here, passes are converted into render target operations and queued with queueRenderSystemOp.
protected CollectPasses ( CompositeTargetOperation finalState, CompositionTargetPass target ) : void
finalState CompositeTargetOperation
target CompositionTargetPass
Результат void

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

Compile the final (output) operation. This is done seperately because this is combined with the input in chained filters.
public CompileOutputOperation ( CompositeTargetOperation finalState ) : void
finalState CompositeTargetOperation
Результат void

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

Recursively collect target states (except for final Pass).
public CompileTargetOperations ( List compiledState ) : void
compiledState List This vector will contain a list of TargetOperation objects
Результат void

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

public CompositorInstance ( CompositionTechnique technique, Axiom.Graphics.CompositorChain chain ) : System
technique CompositionTechnique
chain Axiom.Graphics.CompositorChain
Результат System

CreateLocalMaterial() защищенный Метод

Create a local dummy material with one technique but no passes. The material is detached from the Material Manager to make sure it is destroyed when going out of scope.
protected CreateLocalMaterial ( string name ) : Material
name string
Результат Material

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

Create local rendertextures and other resources. Builds mLocalTextures.
public CreateResources ( bool forResizeOnly ) : void
forResizeOnly bool
Результат void

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

Destroy local rendertextures and other resources.
public FreeResources ( bool forResizeOnly, bool clearReservedTextures ) : void
forResizeOnly bool
clearReservedTextures bool
Результат void

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

Get the instance for a local texture.
It is only valid to call this when local textures have been loaded, which in practice means that the compositor instance is active. Calling it at other times will cause an exception. Note that since textures are cleaned up aggressively, this name is not guaranteed to stay the same if you disable and renable the compositor instance.
public GetTextureInstance ( string name ) : Axiom.Core.Texture
name string The name of the texture in the original compositor definition
Результат Axiom.Core.Texture

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

Get the instance for a local texture.
It is only valid to call this when local textures have been loaded, which in practice means that the compositor instance is active. Calling it at other times will cause an exception. Note that since textures are cleaned up aggressively, this name is not guaranteed to stay the same if you disable and renable the compositor instance.
public GetTextureInstance ( string name, int mrtIndex ) : Axiom.Core.Texture
name string The name of the texture in the original compositor definition
mrtIndex int If name identifies a MRT, which texture attachment to retrieve
Результат Axiom.Core.Texture

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

Notify listeners of a material render.
public OnMaterialRender ( CompositorInstanceMaterialEventArgs args ) : void
args CompositorInstanceMaterialEventArgs
Результат void

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

Notify listeners of a material compilation.
public OnMaterialSetup ( CompositorInstanceMaterialEventArgs args ) : void
args CompositorInstanceMaterialEventArgs
Результат void

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

Notify listeners of a material render.
public OnResourceCreated ( CompositorInstanceResourceEventArgs args ) : void
args CompositorInstanceResourceEventArgs
Результат void

QueueRenderSystemOp() защищенный Метод

Queue a render system operation.
protected QueueRenderSystemOp ( CompositeTargetOperation finalState, CompositeRenderSystemOperation op ) : void
finalState CompositeTargetOperation
op CompositeRenderSystemOperation
Результат void

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

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

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

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

Composition chain of which this instance is part
protected CompositorChain,Axiom.Graphics chain
Результат Axiom.Graphics.CompositorChain

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

Compositor of which this is an instance
protected Compositor,Axiom.Graphics compositor
Результат Compositor

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

Is this instance enabled?
protected bool enabled
Результат bool

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

Map from name->local texture
protected Dictionary localTextures
Результат Texture>.Dictionary

materialDummyCounter защищенное статическое свойство

protected static int materialDummyCounter
Результат int

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

Previous instance (set by chain)
protected CompositorInstance,Axiom.Graphics previousInstance
Результат CompositorInstance

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

Render System operations queued by last compile, these are created by this instance thus managed and deleted by it. The list is cleared with clearCompilationState()
protected List renderSystemOperations
Результат List

resourceDummyCounter защищенное статическое свойство

protected static int resourceDummyCounter
Результат int

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

Composition technique used by this instance
protected CompositionTechnique,Axiom.Graphics technique
Результат CompositionTechnique