Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
Ogre::GLESDepthBuffer Class Reference

#include <OgreGLESDepthBuffer.h>

Inheritance diagram for Ogre::GLESDepthBuffer:
Inheritance graph
[legend]

List of all members.

Public Types

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

Public Member Functions

 GLESDepthBuffer (uint16 poolId, GLESRenderSystem *renderSystem, GLESContext *creatorContext, GLESRenderBuffer *depth, GLESRenderBuffer *stencil, uint32 width, uint32 height, uint32 fsaa, uint32 multiSampleQuality, bool isManual)
 ~GLESDepthBuffer ()
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.
virtual uint16 getBitDepth () const
GLESRenderBuffergetDepthBuffer () const
virtual uint32 getFsaa () const
virtual const StringgetFsaaHint () const
GLESContextgetGLContext () const
virtual uint32 getHeight () const
virtual uint16 getPoolId () const
 Gets the pool id in which this DepthBuffer lives.
GLESRenderBuffergetStencilBuffer () const
virtual uint32 getWidth () const
virtual bool isCompatible (RenderTarget *renderTarget) const
bool isManual () const
 Manual DepthBuffers are cleared in RenderSystem's destructor.
void operator delete (void *ptr)
void operator delete (void *ptr, void *)
void operator delete (void *ptr, const char *, int, const char *)
void operator delete[] (void *ptr)
void operator delete[] (void *ptr, const char *, int, const char *)
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 * operator new (size_t sz, void *ptr)
 placement operator new
void * operator new[] (size_t sz, const char *file, int line, const char *func)
 array operator new, with debug line info
void * operator new[] (size_t sz)

Protected Types

typedef set< RenderTarget * >::type RenderTargetSet

Protected Member Functions

void detachFromAllRenderTargets ()

Protected Attributes

RenderTargetSet mAttachedRenderTargets
uint16 mBitDepth
GLESContextmCreatorContext
GLESRenderBuffermDepthBuffer
uint32 mFsaa
String mFsaaHint
uint32 mHeight
bool mManual
uint32 mMultiSampleQuality
uint16 mPoolId
GLESRenderSystemmRenderSystem
GLESRenderBuffermStencilBuffer
uint32 mWidth

Detailed Description

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.

Definition at line 49 of file OgreGLESDepthBuffer.h.


Constructor & Destructor Documentation

Ogre::GLESDepthBuffer::GLESDepthBuffer ( uint16  poolId,
GLESRenderSystem renderSystem,
GLESContext creatorContext,
GLESRenderBuffer depth,
GLESRenderBuffer stencil,
uint32  width,
uint32  height,
uint32  fsaa,
uint32  multiSampleQuality,
bool  isManual 
)

Member Function Documentation

Definition at line 62 of file OgreGLESDepthBuffer.h.

References mDepthBuffer.

Definition at line 61 of file OgreGLESDepthBuffer.h.

References mCreatorContext.

Definition at line 63 of file OgreGLESDepthBuffer.h.

References mStencilBuffer.

virtual bool Ogre::GLESDepthBuffer::isCompatible ( RenderTarget renderTarget) const [virtual]

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.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr) [inherited]

Definition at line 96 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
void *   
) [inherited]

Definition at line 102 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
const char *  ,
int  ,
const char *   
) [inherited]

Definition at line 108 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr) [inherited]

Definition at line 113 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr,
const char *  ,
int  ,
const char *   
) [inherited]

Definition at line 119 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
const char *  file,
int  line,
const char *  func 
) [inherited]

operator new, with debug line info

Definition at line 68 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz) [inherited]

Definition at line 73 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
void *  ptr 
) [inherited]

placement operator new

Definition at line 79 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz,
const char *  file,
int  line,
const char *  func 
) [inherited]

array operator new, with debug line info

Definition at line 86 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz) [inherited]

Definition at line 91 of file OgreMemoryAllocatedObject.h.


Member Data Documentation

Definition at line 67 of file OgreGLESDepthBuffer.h.

Referenced by getGLContext().

Definition at line 68 of file OgreGLESDepthBuffer.h.

Referenced by getDepthBuffer().

Definition at line 66 of file OgreGLESDepthBuffer.h.

Definition at line 70 of file OgreGLESDepthBuffer.h.

Definition at line 69 of file OgreGLESDepthBuffer.h.

Referenced by getStencilBuffer().


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

Copyright © 2012 Torus Knot Software Ltd
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Mon Jul 27 2020 13:41:08