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

#include <OgreGL3PlusDepthBuffer.h>

+ Inheritance diagram for Ogre::GL3PlusDepthBuffer:

Public Types

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

Public Member Functions

 GL3PlusDepthBuffer (uint16 poolId, GL3PlusRenderSystem *renderSystem, GLContext *creatorContext, GL3PlusRenderBuffer *depth, GL3PlusRenderBuffer *stencil, uint32 width, uint32 height, uint32 fsaa, bool manual)
 
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

◆ GL3PlusDepthBuffer()

Ogre::GL3PlusDepthBuffer::GL3PlusDepthBuffer ( uint16  poolId,
GL3PlusRenderSystem renderSystem,
GLContext creatorContext,
GL3PlusRenderBuffer depth,
GL3PlusRenderBuffer stencil,
uint32  width,
uint32  height,
uint32  fsaa,
bool  manual 
)

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: