C# Класс Axiom.RenderSystems.OpenGL.GLRTTManager

Abstract Factory for RenderTextures.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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.

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

Метод Описание
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 ); }

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

Bind() публичный абстрактный метод

Bind a certain render target.
public abstract Bind ( RenderTarget target ) : void
target Axiom.Graphics.RenderTarget
Результат void

CheckFormat() публичный абстрактный метод

Check if a certain format is usable as rendertexture format
public abstract CheckFormat ( PixelFormat format ) : bool
format PixelFormat
Результат bool

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

Create a multi render target
public CreateMultiRenderTarget ( string name ) : Axiom.Graphics.MultiRenderTarget
name string
Результат Axiom.Graphics.MultiRenderTarget

CreateRenderTexture() публичный абстрактный метод

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
Результат Axiom.Graphics.RenderTexture

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

public Dispose ( ) : void
Результат void

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

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
Результат System

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

Get the closest supported alternative format. If format is supported, returns format.
public GetSupportedAlternative ( PixelFormat format ) : PixelFormat
format PixelFormat
Результат PixelFormat

Unbind() публичный абстрактный метод

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
Результат void

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

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.
Результат void