C# Class Axiom.RenderSystems.OpenGLES.GLESFBOManager

Factory for GL Frame Buffer Objects, and related things.
Inheritance: Axiom.RenderSystems.OpenGLES.GLESRTTManager
Show file Open project: WolfgangSt/axiom

Public Properties

Property Type Description
DepthBits int[]
DepthFormatCount int
DepthFormats All[]
StencilBits int[]
StencilFormatCount int
StencilFormats All[]

Public Methods

Method Description
Bind ( Graphics target ) : void

Bind a certain render target if it is a FBO. If it is not a FBO, bind the main frame buffer.

CheckFormat ( Media format ) : bool
CreateMultiRenderTarget ( string name ) : Graphics.MultiRenderTarget

CreateRenderTexture ( string name, GLESSurfaceDescription target, bool writeGame, int fsaa ) : Graphics.RenderTexture

GLESFBOManager ( ) : System

GetBestDepthStencil ( All internalFormat, All &depthFormat, All &stencilFormat ) : void

Get best depth and stencil supported for given internalFormat

ReleaseRenderbuffer ( GLESSurfaceDescription surface ) : void

RequestRenderbuffer ( All format, int width, int height, int fsaa ) : GLESSurfaceDescription

Request a render buffer. If format is GL_NONE, return a zero buffer.

RequestRenderbuffer ( GLESSurfaceDescription surface ) : void

Request the specify render buffer in case shared somewhere. Ignore silently if surface.buffer is null.

Unbind ( Graphics target ) : void

Unbind a certain render target. No-op for FBOs.

Private Methods

Method Description
DetectFBOFormats ( ) : void

Detect which internal formats are allowed as RTT Also detect what combinations of stencil and depth are allowed with this internal format.

TryFormat ( All depthFormat, All stencilFormat ) : bool

Try a certain FBO format, and return the status. Also sets mDepthRB and mStencilRB.

TryPacketFormat ( All packedFormat ) : bool

Try a certain packed depth/stencil format, and return the status.

Method Details

Bind() public method

Bind a certain render target if it is a FBO. If it is not a FBO, bind the main frame buffer.
public Bind ( Graphics target ) : void
target Graphics
return void

CheckFormat() public method

public CheckFormat ( Media format ) : bool
format Media
return bool

CreateMultiRenderTarget() public method

public CreateMultiRenderTarget ( string name ) : Graphics.MultiRenderTarget
name string
return Graphics.MultiRenderTarget

CreateRenderTexture() public method

public CreateRenderTexture ( string name, GLESSurfaceDescription target, bool writeGame, int fsaa ) : Graphics.RenderTexture
name string
target GLESSurfaceDescription
writeGame bool
fsaa int
return Graphics.RenderTexture

GLESFBOManager() public method

public GLESFBOManager ( ) : System
return System

GetBestDepthStencil() public method

Get best depth and stencil supported for given internalFormat
public GetBestDepthStencil ( All internalFormat, All &depthFormat, All &stencilFormat ) : void
internalFormat All
depthFormat All
stencilFormat All
return void

ReleaseRenderbuffer() public method

public ReleaseRenderbuffer ( GLESSurfaceDescription surface ) : void
surface GLESSurfaceDescription
return void

RequestRenderbuffer() public method

Request a render buffer. If format is GL_NONE, return a zero buffer.
public RequestRenderbuffer ( All format, int width, int height, int fsaa ) : GLESSurfaceDescription
format All
width int
height int
fsaa int
return GLESSurfaceDescription

RequestRenderbuffer() public method

Request the specify render buffer in case shared somewhere. Ignore silently if surface.buffer is null.
public RequestRenderbuffer ( GLESSurfaceDescription surface ) : void
surface GLESSurfaceDescription
return void

Unbind() public method

Unbind a certain render target. No-op for FBOs.
public Unbind ( Graphics target ) : void
target Graphics
return void

Property Details

DepthBits public static property

public static int[] DepthBits
return int[]

DepthFormatCount public static property

public static int DepthFormatCount
return int

DepthFormats public static property

public static All[] DepthFormats
return All[]

StencilBits public static property

public static int[] StencilBits
return int[]

StencilFormatCount public static property

public static int StencilFormatCount
return int

StencilFormats public static property

Stencil and depth formats to be tried
public static All[] StencilFormats
return All[]