C# 클래스 Axiom.Graphics.CompositorInstance

An instance of a Compositor object for one Viewport. It is part of the CompositorChain for a Viewport.
상속: DisposableObject
파일 보기 프로젝트 열기: WolfgangSt/axiom 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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