C# Class Axiom.RenderSystems.OpenGL.GLRTTManager

Abstract Factory for RenderTextures.
Inheritance: IDisposable
Afficher le fichier Open project: WolfgangSt/axiom Class Usage Examples

Méthodes publiques

Méthode Description
Bind ( RenderTarget target ) : void

Bind a certain render target.

CheckFormat ( PixelFormat format ) : bool

Check if a certain format is usable as rendertexture format

CreateMultiRenderTarget ( string name ) : Axiom.Graphics.MultiRenderTarget

Create a multi render target

CreateRenderTexture ( string name, Axiom.RenderSystems.OpenGL.GLSurfaceDesc target, bool writeGamma, int fsaa ) : RenderTexture

Create a texture rendertarget object

Dispose ( ) : void
GetSupportedAlternative ( PixelFormat format ) : PixelFormat

Get the closest supported alternative format. If format is supported, returns format.

Unbind ( RenderTarget target ) : void

Unbind a certain render target. This is called before binding another RenderTarget, and before the context is switched. It can be used to do a copy, or just be a noop if direct binding is used.

Méthodes protégées

Méthode Description
GLRTTManager ( Axiom.RenderSystems.OpenGL.BaseGLSupport glSupport ) : System

Internal constructor. This class cannot be instantiated externally.

Protected internal because this singleton will actually hold the instance of a subclass created by a render system plugin.

dispose ( bool disposeManagedResources ) : void

Class level dispose method

When implementing this method in an inherited class the following template should be used; protected override void dispose( bool disposeManagedResources ) { if ( !isDisposed ) { if ( disposeManagedResources ) { // Dispose managed resources. } // There are no unmanaged resources to release, but // if we add them, they need to be released here. } // If it is available, make the call to the // base class's Dispose(Boolean) method base.dispose( disposeManagedResources ); }

Method Details

Bind() public abstract méthode

Bind a certain render target.
public abstract Bind ( RenderTarget target ) : void
target Axiom.Graphics.RenderTarget
Résultat void

CheckFormat() public abstract méthode

Check if a certain format is usable as rendertexture format
public abstract CheckFormat ( PixelFormat format ) : bool
format PixelFormat
Résultat bool

CreateMultiRenderTarget() public méthode

Create a multi render target
public CreateMultiRenderTarget ( string name ) : Axiom.Graphics.MultiRenderTarget
name string
Résultat Axiom.Graphics.MultiRenderTarget

CreateRenderTexture() public abstract méthode

Create a texture rendertarget object
public abstract CreateRenderTexture ( string name, Axiom.RenderSystems.OpenGL.GLSurfaceDesc target, bool writeGamma, int fsaa ) : RenderTexture
name string
target Axiom.RenderSystems.OpenGL.GLSurfaceDesc
writeGamma bool
fsaa int
Résultat Axiom.Graphics.RenderTexture

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GLRTTManager() protected méthode

Internal constructor. This class cannot be instantiated externally.
Protected internal because this singleton will actually hold the instance of a subclass created by a render system plugin.
protected GLRTTManager ( Axiom.RenderSystems.OpenGL.BaseGLSupport glSupport ) : System
glSupport Axiom.RenderSystems.OpenGL.BaseGLSupport
Résultat System

GetSupportedAlternative() public méthode

Get the closest supported alternative format. If format is supported, returns format.
public GetSupportedAlternative ( PixelFormat format ) : PixelFormat
format PixelFormat
Résultat PixelFormat

Unbind() public abstract méthode

Unbind a certain render target. This is called before binding another RenderTarget, and before the context is switched. It can be used to do a copy, or just be a noop if direct binding is used.
public abstract Unbind ( RenderTarget target ) : void
target Axiom.Graphics.RenderTarget
Résultat void

dispose() protected méthode

Class level dispose method
When implementing this method in an inherited class the following template should be used; protected override void dispose( bool disposeManagedResources ) { if ( !isDisposed ) { if ( disposeManagedResources ) { // Dispose managed resources. } // There are no unmanaged resources to release, but // if we add them, they need to be released here. } // If it is available, make the call to the // base class's Dispose(Boolean) method base.dispose( disposeManagedResources ); }
protected dispose ( bool disposeManagedResources ) : void
disposeManagedResources bool True if Unmanaged resources should be released.
Résultat void