C# Class Axiom.RenderSystems.OpenGL.GLFrameBufferObject

Inheritance: IDisposable
Show file Open project: mono-soc-2011/axiom Class Usage Examples

Public Methods

Method Description
Bind ( ) : void

Bind FrameBufferObject

BindSurface ( int attachment, Axiom.RenderSystems.OpenGL.GLSurfaceDesc target ) : void

Bind a surface to a certain attachment point.

Dispose ( ) : void
GLFrameBufferObject ( GLFBORTTManager manager ) : System
UnbindSurface ( int attachment ) : void

Unbind attachment

Protected Methods

Method Description
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 ); }

Private Methods

Method Description
_initialize ( ) : void

Initialize object (find suitable depth and stencil format).

Method Details

Bind() public method

Bind FrameBufferObject
public Bind ( ) : void
return void

BindSurface() public method

Bind a surface to a certain attachment point.
public BindSurface ( int attachment, Axiom.RenderSystems.OpenGL.GLSurfaceDesc target ) : void
attachment int 0..Config.MaxMultipleRenderTargets-1
target Axiom.RenderSystems.OpenGL.GLSurfaceDesc
return void

Dispose() public method

public Dispose ( ) : void
return void

GLFrameBufferObject() public method

public GLFrameBufferObject ( GLFBORTTManager manager ) : System
manager GLFBORTTManager
return System

UnbindSurface() public method

Unbind attachment
public UnbindSurface ( int attachment ) : void
attachment int
return void

dispose() protected method

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.
return void