Public Member Functions | Private Member Functions | Private Attributes
Ogre::GLES2FrameBufferObject Class Reference

Frame Buffer Object abstraction. More...

#include <OgreGLES2FrameBufferObject.h>

List of all members.

Public Member Functions

 GLES2FrameBufferObject (GLES2FBOManager *manager, uint fsaa)
 ~GLES2FrameBufferObject ()
void attachDepthBuffer (DepthBuffer *depthBuffer)
 This function acts very similar to.
void bind ()
 Bind FrameBufferObject.
void bindSurface (size_t attachment, const GLES2SurfaceDesc &target)
 Bind a surface to a certain attachment point.
void detachDepthBuffer ()
PixelFormat getFormat ()
GLsizei getFSAA ()
uint32 getHeight ()
GLES2FBOManagergetManager ()
const GLES2SurfaceDescgetSurface (size_t attachment)
uint32 getWidth ()
 Accessors.
void notifyOnContextLost ()
 See AndroidResource.
void notifyOnContextReset (const GLES2SurfaceDesc &target)
 See AndroidResource.
void swapBuffers ()
 Swap buffers - only useful when using multisample buffers.
void unbindSurface (size_t attachment)
 Unbind attachment.

Private Member Functions

void initialise ()
 Initialise object (find suitable depth and stencil format).

Private Attributes

GLES2SurfaceDesc mColour [OGRE_MAX_MULTIPLE_RENDER_TARGETS]
GLES2SurfaceDesc mDepth
GLuint mFB
GLES2FBOManagermManager
GLES2SurfaceDesc mMultisampleColourBuffer
GLuint mMultisampleFB
GLsizei mNumSamples
GLES2SurfaceDesc mStencil

Detailed Description

Frame Buffer Object abstraction.

Definition at line 42 of file OgreGLES2FrameBufferObject.h.


Constructor & Destructor Documentation


Member Function Documentation

This function acts very similar to.

See also:
GLES2FBORenderTexture::attachDepthBuffer The difference between D3D & OGL is that D3D setups the DepthBuffer before rendering, while OGL setups the DepthBuffer per FBO. So the DepthBuffer (RenderBuffer) needs to be attached for OGL.

Bind FrameBufferObject.

void Ogre::GLES2FrameBufferObject::bindSurface ( size_t  attachment,
const GLES2SurfaceDesc target 
)

Bind a surface to a certain attachment point.

attachment: 0..OGRE_MAX_MULTIPLE_RENDER_TARGETS-1

Definition at line 78 of file OgreGLES2FrameBufferObject.h.

Definition at line 79 of file OgreGLES2FrameBufferObject.h.

Accessors.

Initialise object (find suitable depth and stencil format).

Must be called every time the bindings change. It fails with an exception (ERR_INVALIDPARAMS) if:

  • Attachment point 0 has no binding
  • Not all bound surfaces have the same size
  • Not all bound surfaces have the same internal format

Swap buffers - only useful when using multisample buffers.

void Ogre::GLES2FrameBufferObject::unbindSurface ( size_t  attachment)

Unbind attachment.


Member Data Documentation

Definition at line 98 of file OgreGLES2FrameBufferObject.h.

Definition at line 95 of file OgreGLES2FrameBufferObject.h.

Definition at line 92 of file OgreGLES2FrameBufferObject.h.

Definition at line 90 of file OgreGLES2FrameBufferObject.h.

Definition at line 94 of file OgreGLES2FrameBufferObject.h.

Definition at line 93 of file OgreGLES2FrameBufferObject.h.

Definition at line 91 of file OgreGLES2FrameBufferObject.h.

Definition at line 96 of file OgreGLES2FrameBufferObject.h.


The documentation for this class was generated from the following file:

Copyright © 2012 Torus Knot Software Ltd
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Mon Jul 27 2020 13:41:06