OGRE  1.12.4
Object-Oriented Graphics Rendering Engine
Ogre::GLES2DepthBuffer Class Reference

#include <OgreGLES2DepthBuffer.h>

+ Inheritance diagram for Ogre::GLES2DepthBuffer:

Public Types

enum  PoolId { POOL_NO_DEPTH = 0, POOL_MANUAL_USAGE = 0, POOL_DEFAULT = 1 }
 

Public Member Functions

 GLES2DepthBuffer (uint16 poolId, GLES2RenderSystem *renderSystem, GLContext *creatorContext, GLES2RenderBuffer *depth, GLES2RenderBuffer *stencil, uint32 width, uint32 height, uint32 fsaa, bool isManual)
 
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...
 
virtual uint16 getBitDepth () const
 
GLHardwarePixelBufferCommongetDepthBuffer () const
 
uint32 getFSAA () const
 
uint32 getFsaa () const
 
const StringgetFSAAHint () const
 
const StringgetFsaaHint () const
 
GLContextgetGLContext () const
 
virtual uint32 getHeight () const
 
virtual uint16 getPoolId () const
 Gets the pool id in which this DepthBuffer lives. More...
 
GLHardwarePixelBufferCommongetStencilBuffer () const
 
virtual uint32 getWidth () 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...
 
bool isManual () const
 Manual DepthBuffers are cleared in RenderSystem's destructor. More...
 

Constructor & Destructor Documentation

◆ GLES2DepthBuffer()

Ogre::GLES2DepthBuffer::GLES2DepthBuffer ( uint16  poolId,
GLES2RenderSystem renderSystem,
GLContext creatorContext,
GLES2RenderBuffer depth,
GLES2RenderBuffer stencil,
uint32  width,
uint32  height,
uint32  fsaa,
bool  isManual 
)

Member Function Documentation

◆ isCompatible()

bool Ogre::GLDepthBufferCommon::isCompatible ( RenderTarget renderTarget) const
overridevirtualinherited

Returns whether the specified RenderTarget is compatible with this DepthBuffer That is, this DepthBuffer can be attached to that RenderTarget.

Remarks
Most APIs impose the following restrictions: Width & height must be equal or higher than the render target's They must be of the same bit depth. They need to have the same FSAA setting
Parameters
renderTargetThe render target to test against

Reimplemented from Ogre::DepthBuffer.

◆ getGLContext()

GLContext* Ogre::GLDepthBufferCommon::getGLContext ( ) const
inlineinherited

◆ getDepthBuffer()

GLHardwarePixelBufferCommon* Ogre::GLDepthBufferCommon::getDepthBuffer ( ) const
inlineinherited

◆ getStencilBuffer()

GLHardwarePixelBufferCommon* Ogre::GLDepthBufferCommon::getStencilBuffer ( ) const
inlineinherited

The documentation for this class was generated from the following file: