28 #ifndef __OgreGLES2FBORTT_H__
29 #define __OgreGLES2FBORTT_H__
37 class GLES2FBOManager;
38 class GLES2RenderBuffer;
47 virtual void getCustomAttribute(
const String& name,
void* pData);
50 virtual void swapBuffers();
53 virtual bool attachDepthBuffer(
DepthBuffer *depthBuffer );
54 virtual void detachDepthBuffer();
55 virtual void _detachDepthBuffer();
59 #if OGRE_PLATFORM == OGRE_PLATFORM_ANDROID
61 virtual void notifyOnContextLost();
64 virtual void notifyOnContextReset();
87 void getBestDepthStencil(GLenum internalFormat, GLenum *depthFormat, GLenum *stencilFormat);
148 format(inFormat), width(inWidth), height(inHeight), samples(fsaa)
161 else if(format == other.
format)
163 if(width < other.
width)
167 else if(width == other.
width)
171 else if (height == other.
height)
185 buffer(inBuffer), refcount(1)
199 void detectFBOFormats();
200 GLuint _tryFormat(GLenum depthFormat, GLenum stencilFormat);
201 bool _tryPackedFormat(GLenum packedFormat);
202 void _createTempFramebuffer(
PixelFormat pixFmt, GLuint internalFormat, GLuint fmt, GLenum dataType, GLuint &fb, GLuint &tid);
A 'canvas' which can receive the results of a rendering operation.
GLES2FrameBufferObject mFB
bool operator<(SharedPtr< T > const &a, SharedPtr< U > const &b)
bool checkFormat(PixelFormat format)
Check if a certain format is usable as FBO rendertarget format.
Factory for GL ES 2 Frame Buffer Objects, and related things.
RenderTexture for GL ES 2 FBO.
GLES2RenderBuffer * buffer
void unbind(RenderTarget *target)
Unbind a certain render target.
This class represents a render target that renders to multiple RenderTextures at once.
An abstract class that contains a depth/stencil buffer.
PixelFormat
The pixel format used for images, textures, and render surfaces.
map< RBFormat, RBRef >::type RenderBufferMap
Frame Buffer Object abstraction.
GLuint mTempFBO
Temporary FBO identifier.
RBRef(GLES2RenderBuffer *inBuffer)
GLuint getTemporaryFBO()
Get a FBO without depth/stencil for temporary use, like blitting between textures.
Base class for GL Render Textures.
RenderBufferMap mRenderBufferMap
Manager/factory for RenderTextures.