|
| GLES2DepthBuffer (uint16 poolId, GLES2RenderSystem *renderSystem, GLES2Context *creatorContext, GLenum depthFormat, GLenum stencilFormat, uint32 width, uint32 height, uint32 fsaa, uint32 multiSampleQuality, PixelFormat pixelFormat, bool isDepthTexture, bool isManual) |
|
| ~GLES2DepthBuffer () |
|
virtual void | _notifyRenderTargetAttached (RenderTarget *renderTarget) |
| Called when a RenderTarget is attaches this DepthBuffer.
|
|
virtual void | _notifyRenderTargetDetached (RenderTarget *renderTarget) |
| Called when a RenderTarget is detaches from this DepthBuffer.
|
|
void | _setPoolId (uint16 poolId) |
| Sets the pool id in which this DepthBuffer lives.
|
|
void | bindToFramebuffer (GLenum target=GL_FRAMEBUFFER) |
|
bool | copyTo (DepthBuffer *destination) |
| Copies the contents of the DepthBuffer to the destination.
|
|
virtual uint16 | getBitDepth () const |
|
GLuint | getDepthBuffer () const |
|
PixelFormat | getFormat (void) const |
|
virtual uint32 | getFsaa () const |
|
virtual const String & | getFsaaHint () const |
|
GLES2Context * | getGLContext () const |
|
virtual uint32 | getHeight () const |
|
virtual uint16 | getPoolId () const |
| Gets the pool id in which this DepthBuffer lives.
|
|
GLuint | getStencilBuffer () const |
|
virtual uint32 | getWidth () const |
|
bool | hasSeparateStencilBuffer () const |
|
virtual bool | isCompatible (RenderTarget *renderTarget, bool exactFormatMatch) const |
| Returns whether the specified RenderTarget is compatible with this DepthBuffer That is, this DepthBuffer can be attached to that RenderTarget.
|
|
bool | isDepthTexture (void) const |
|
bool | isManual () const |
| Manual DepthBuffers are cleared in RenderSystem's destructor.
|
|
void | operator delete (void *ptr) |
|
void | operator delete (void *ptr, const char *, int, const char *) |
|
void | operator delete (void *ptr, void *) |
|
void | operator delete[] (void *ptr) |
|
void | operator delete[] (void *ptr, const char *, int, const char *) |
|
void * | operator new (size_t sz) |
|
void * | operator new (size_t sz, const char *file, int line, const char *func) |
| operator new, with debug line info
|
|
void * | operator new (size_t sz, void *ptr) |
| placement operator new
|
|
void * | operator new[] (size_t sz) |
|
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
| array operator new, with debug line info
|
|
OpenGL supports 2 different methods: FBO & Copy. Each one has it's own limitations. Non-FBO methods are solved using "dummy" DepthBuffers. That is, a DepthBuffer pointer is attached to the RenderTarget (for the sake of consistency) but it doesn't actually contain a Depth surface/renderbuffer (mDepthBuffer & mStencilBuffer are null pointers all the time) Those dummy DepthBuffers are identified thanks to their GL context. Note that FBOs don't allow sharing with the main window's depth buffer. Therefore even when FBO is enabled, a dummy DepthBuffer is still used to manage the windows.