28 #ifndef __OgreGLESFBORTT_H__
29 #define __OgreGLESFBORTT_H__
38 class GLESRenderBuffer;
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);
100 GLESSurfaceDesc requestRenderBuffer(GLenum format,
size_t width,
size_t height,
uint fsaa);
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);
Factory for GL Frame Buffer Objects, and related things.
A 'canvas' which can receive the results of a rendering operation.
Base class for GL Render Textures.
GLuint mTempFBO
Temporary FBO identifier.
Frame Buffer Object abstraction.
PixelFormat
The pixel format used for images, textures, and render surfaces.
bool checkFormat(PixelFormat format)
Check if a certain format is usable as FBO rendertarget format.
void unbind(RenderTarget *target)
Unbind a certain render target.
An abstract class that contains a depth/stencil buffer.
GLESFrameBufferObject mFB
RBRef(GLESRenderBuffer *inBuffer)
map< RBFormat, RBRef >::type RenderBufferMap
GLuint getTemporaryFBO()
Get a FBO without depth/stencil for temporary use, like blitting between textures.
This class represents a render target that renders to multiple RenderTextures at once.
RenderBufferMap mRenderBufferMap
GLESRenderBuffer * buffer
RenderTexture for GL ES FBO.
bool operator<(SharedPtr< T > const &a, SharedPtr< U > const &b)
Manager/factory for RenderTextures.