|
| GLDepthBufferCommon (uint16 poolId, GLRenderSystemCommon *renderSystem, GLContext *creatorContext, GLHardwarePixelBufferCommon *depth, GLHardwarePixelBufferCommon *stencil, const RenderTarget *target, bool isManual) |
|
virtual | ~GLDepthBufferCommon () |
|
GLHardwarePixelBufferCommon * | getDepthBuffer () const |
|
GLContext * | getGLContext () const |
|
GLHardwarePixelBufferCommon * | getStencilBuffer () const |
|
bool | isCompatible (RenderTarget *renderTarget) const override |
| Returns whether the specified RenderTarget is compatible with this DepthBuffer That is, this DepthBuffer can be attached to that RenderTarget. More...
|
|
| DepthBuffer (uint16 poolId, uint32 width, uint32 height, uint32 fsaa, bool manual) |
|
virtual | ~DepthBuffer () |
|
virtual void | _notifyRenderTargetAttached (RenderTarget *renderTarget) |
| Called when a RenderTarget is attaches this DepthBuffer. More...
|
|
virtual void | _notifyRenderTargetDetached (RenderTarget *renderTarget) |
| Called when a RenderTarget is detaches from this DepthBuffer. More...
|
|
void | _setPoolId (uint16 poolId) |
| Sets the pool id in which this DepthBuffer lives. More...
|
|
uint32 | getFSAA () const |
|
virtual uint32 | getHeight () const |
|
virtual uint16 | getPoolId () const |
| Gets the pool id in which this DepthBuffer lives. More...
|
|
virtual uint32 | getWidth () const |
|
bool | isManual () const |
| Manual DepthBuffers are cleared in RenderSystem's destructor. More...
|
|
OpenGL supports 3 different methods: FBO, pbuffer & 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.