Go to the documentation of this file.
28 #ifndef __OgreGLFBORTT_H__
29 #define __OgreGLFBORTT_H__
36 #define GL_DEPTH24_STENCIL8_EXT 0x88F0
49 virtual void getCustomAttribute(
const String& name,
void* pData);
52 virtual void swapBuffers();
55 virtual bool attachDepthBuffer(
DepthBuffer *depthBuffer );
56 virtual void detachDepthBuffer();
57 virtual void _detachDepthBuffer();
81 void getBestDepthStencil(GLenum internalFormat, GLenum *depthFormat, GLenum *stencilFormat);
138 format(inFormat), width(inWidth), height(inHeight), samples(fsaa)
152 else if(format == other.
format)
154 if(width < other.
width)
158 else if(width == other.
width)
162 else if (height == other.
height)
176 buffer(inBuffer), refcount(1)
193 void detectFBOFormats();
194 GLuint _tryFormat(GLenum depthFormat, GLenum stencilFormat);
195 bool _tryPackedFormat(GLenum packedFormat);
196 void _createTempFramebuffer(GLuint fmt, GLuint &fb, GLuint &tid);
An abstract class that contains a depth/stencil buffer.
Base class for GL Render Textures.
bool mATIMode
Buggy ATI driver?
RBRef(GLRenderBuffer *inBuffer)
map< RBFormat, RBRef >::type RenderBufferMap
void unbind(RenderTarget *target)
Unbind a certain render target.
Factory for GL Frame Buffer Objects, and related things.
A 'canvas' which can receive the results of a rendering operation.
PixelFormat
The pixel format used for images, textures, and render surfaces.
RenderBufferMap mRenderBufferMap
Frame Buffer Object abstraction.
This class represents a render target that renders to multiple RenderTextures at once.
GLuint getTemporaryFBO()
Get a FBO without depth/stencil for temporary use, like blitting between textures.
RenderTexture for GL FBO.
GLuint mTempFBO
Temporary FBO identifier.
bool checkFormat(PixelFormat format)
Check if a certain format is usable as FBO rendertarget format.
Manager/factory for RenderTextures.
bool operator<(SharedPtr< T > const &a, SharedPtr< U > const &b)
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Tue Apr 13 2021 08:53:15