C# 클래스 Axiom.Graphics.Compositor

Class representing a Compositor object. Compositors provide the means to flexibly "composite" the final rendering result from multiple scene renders and intermediate operations like rendering fullscreen quads. This makes it possible to apply postfilter effects, HDRI postprocessing, and shadow effects to a Viewport.
상속: Axiom.Core.Resource
파일 보기 프로젝트 열기: WolfgangSt/axiom 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
autoNumber int
compilationRequired bool
globalMRTs MultiRenderTarget>.Dictionary
globalTextures Texture>.Dictionary
supportedTechniques List
techniques List

공개 메소드들

메소드 설명
Compositor ( ResourceManager parent, string name, System.UInt64 handle, string group, bool isManual, IManualResourceLoader loader ) : System
CreateTechnique ( ) : CompositionTechnique

Create a new technique, and return a pointer to it.

GetMRTLocalName ( string baseName, int attachment ) : string

GetRenderTarget ( string name ) : RenderTarget

Get's the render target for a given render texture name.

You can use this to add listeners etc, but do not use it to update the targets manually or any other modifications, the compositor instance is in charge of this.

GetSupportedTechniqueByScheme ( ) : CompositionTechnique

Get a reference to a supported technique for a given scheme.

GetSupportedTechniqueByScheme ( string schemeName ) : CompositionTechnique

Get a reference to a supported technique for a given scheme.

If there is no specific supported technique with this scheme name, then the first supported technique with no specific scheme will be returned.

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

Get's the instance of a global texture.

RemoveAllTechniques ( ) : void

Remove all techniques.

RemoveTechnique ( int idx ) : void

Remove a technique.

Touch ( ) : void

Overridden to ensure a recompile occurs if needed before use.

보호된 메소드들

메소드 설명
Compile ( ) : void

Check supportedness of techniques.

dispose ( bool disposeManagedResources ) : void

Disposes of any resources used by this object.

load ( ) : void

Overridden from Resource.

By default, Materials are not loaded, and adding additional textures etc do not cause those textures to be loaded. When the Load method is called, all textures are loaded (if they are not already), GPU programs are created if applicable, and Controllers are instantiated. Once a material has been loaded, all changes made to it are immediately loaded too

unload ( ) : void

Unloads the material, frees resources etc. Resource

비공개 메소드들

메소드 설명
CreateGlobalTextures ( ) : void

Create global rendertextures.

FreeGlobalTextures ( ) : void

Destroy global rendertextures.

메소드 상세

Compile() 보호된 메소드

Check supportedness of techniques.
protected Compile ( ) : void
리턴 void

Compositor() 공개 메소드

public Compositor ( ResourceManager parent, string name, System.UInt64 handle, string group, bool isManual, IManualResourceLoader loader ) : System
parent Axiom.Core.ResourceManager
name string
handle System.UInt64
group string
isManual bool
loader IManualResourceLoader
리턴 System

CreateTechnique() 공개 메소드

Create a new technique, and return a pointer to it.
public CreateTechnique ( ) : CompositionTechnique
리턴 CompositionTechnique

GetMRTLocalName() 공개 메소드

public GetMRTLocalName ( string baseName, int attachment ) : string
baseName string
attachment int
리턴 string

GetRenderTarget() 공개 메소드

Get's the render target for a given render texture name.
You can use this to add listeners etc, but do not use it to update the targets manually or any other modifications, the compositor instance is in charge of this.
public GetRenderTarget ( string name ) : RenderTarget
name string name of the texture
리턴 RenderTarget

GetSupportedTechniqueByScheme() 공개 메소드

Get a reference to a supported technique for a given scheme.
public GetSupportedTechniqueByScheme ( ) : CompositionTechnique
리턴 CompositionTechnique

GetSupportedTechniqueByScheme() 공개 메소드

Get a reference to a supported technique for a given scheme.
If there is no specific supported technique with this scheme name, then the first supported technique with no specific scheme will be returned.
public GetSupportedTechniqueByScheme ( string schemeName ) : CompositionTechnique
schemeName string The scheme name you are looking for. /// Blank means to look for techniques with no scheme associated ///
리턴 CompositionTechnique

GetTextureInstance() 공개 메소드

Get's the instance of a global texture.
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

RemoveAllTechniques() 공개 메소드

Remove all techniques.
public RemoveAllTechniques ( ) : void
리턴 void

RemoveTechnique() 공개 메소드

Remove a technique.
public RemoveTechnique ( int idx ) : void
idx int
리턴 void

Touch() 공개 메소드

Overridden to ensure a recompile occurs if needed before use.
public Touch ( ) : void
리턴 void

dispose() 보호된 메소드

Disposes of any resources used by this object.
protected dispose ( bool disposeManagedResources ) : void
disposeManagedResources bool
리턴 void

load() 보호된 메소드

Overridden from Resource.
By default, Materials are not loaded, and adding additional textures etc do not cause those textures to be loaded. When the Load method is called, all textures are loaded (if they are not already), GPU programs are created if applicable, and Controllers are instantiated. Once a material has been loaded, all changes made to it are immediately loaded too
protected load ( ) : void
리턴 void

unload() 보호된 메소드

Unloads the material, frees resources etc. Resource
protected unload ( ) : void
리턴 void

프로퍼티 상세

autoNumber 보호되어 있는 정적으로 프로퍼티

Auto incrementing number for creating unique names.
protected static int autoNumber
리턴 int

compilationRequired 보호되어 있는 프로퍼티

This is set if the techniques change and the supportedness of techniques has to be re-evaluated.
protected bool compilationRequired
리턴 bool

globalMRTs 보호되어 있는 프로퍼티

Store a list of MRTs we've created
protected Dictionary globalMRTs
리턴 MultiRenderTarget>.Dictionary

globalTextures 보호되어 있는 프로퍼티

Store a list of textures we've created
protected Dictionary globalTextures
리턴 Texture>.Dictionary

supportedTechniques 보호되어 있는 프로퍼티

protected List supportedTechniques
리턴 List

techniques 보호되어 있는 프로퍼티

protected List techniques
리턴 List