OGRE  1.12.9
Object-Oriented Graphics Rendering Engine
Ogre::D3D9DepthBuffer Class Reference

#include <OgreD3D9DepthBuffer.h>

+ Inheritance diagram for Ogre::D3D9DepthBuffer:

Public Member Functions

 D3D9DepthBuffer (uint16 poolId, D3D9RenderSystem *renderSystem, IDirect3DDevice9 *creator, IDirect3DSurface9 *depthBufferSurf, D3DFORMAT fmt, uint32 width, uint32 height, uint32 fsaa, uint32 multiSampleQuality, bool isManual)
 
 ~D3D9DepthBuffer ()
 
IDirect3DSurface9 * getDepthBufferSurface () const
 
IDirect3DDevice9 * getDeviceCreator () const
 
virtual bool isCompatible (RenderTarget *renderTarget) const
 Returns whether the specified RenderTarget is compatible with this DepthBuffer That is, this DepthBuffer can be attached to that RenderTarget. More...
 
- Public Member Functions inherited from Ogre::DepthBuffer
 DepthBuffer (uint16 poolId, uint16 bitDepth, uint32 width, uint32 height, uint32 fsaa, const String &fsaaHint, 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...
 
virtual uint16 getBitDepth () const
 
uint32 getFSAA () const
 
uint32 getFsaa () const
 
const StringgetFSAAHint () const
 
const StringgetFsaaHint () 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...
 

Additional Inherited Members

- Public Types inherited from Ogre::DepthBuffer
enum  PoolId { POOL_NO_DEPTH = 0, POOL_MANUAL_USAGE = 0, POOL_DEFAULT = 1 }
 

Constructor & Destructor Documentation

◆ D3D9DepthBuffer()

Ogre::D3D9DepthBuffer::D3D9DepthBuffer ( uint16  poolId,
D3D9RenderSystem renderSystem,
IDirect3DDevice9 *  creator,
IDirect3DSurface9 *  depthBufferSurf,
D3DFORMAT  fmt,
uint32  width,
uint32  height,
uint32  fsaa,
uint32  multiSampleQuality,
bool  isManual 
)

◆ ~D3D9DepthBuffer()

Ogre::D3D9DepthBuffer::~D3D9DepthBuffer ( )

Member Function Documentation

◆ isCompatible()

virtual bool Ogre::D3D9DepthBuffer::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.

◆ getDeviceCreator()

IDirect3DDevice9* Ogre::D3D9DepthBuffer::getDeviceCreator ( ) const

◆ getDepthBufferSurface()

IDirect3DSurface9* Ogre::D3D9DepthBuffer::getDepthBufferSurface ( ) const

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