OgreDepthBuffer.h
Go to the documentation of this file.
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2013 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-----------------------------------------------------------------------------
*/
#ifndef __DepthBuffer_H__
#define __DepthBuffer_H__
#include "OgrePrerequisites.h"
#include "OgreHeaderPrefix.h"
namespace Ogre
{
class _OgreExport DepthBuffer : public RenderSysAlloc
{
public:
enum PoolId
{
POOL_NO_DEPTH = 0,
POOL_MANUAL_USAGE = 0,
POOL_DEFAULT = 1
};
DepthBuffer( uint16 poolId, uint16 bitDepth, uint32 width, uint32 height,
uint32 fsaa, const String &fsaaHint, bool manual );
virtual ~DepthBuffer();
void _setPoolId( uint16 poolId );
virtual uint16 getPoolId() const;
virtual uint16 getBitDepth() const;
virtual uint32 getWidth() const;
virtual uint32 getHeight() const;
virtual uint32 getFsaa() const;
virtual const String& getFsaaHint() const;
bool isManual() const;
virtual bool isCompatible( RenderTarget *renderTarget ) const;
virtual void _notifyRenderTargetAttached( RenderTarget *renderTarget );
virtual void _notifyRenderTargetDetached( RenderTarget *renderTarget );
protected:
typedef set<RenderTarget*>::type RenderTargetSet;
uint16 mPoolId;
uint16 mBitDepth;
uint32 mWidth;
uint32 mHeight;
uint32 mFsaa;
String mFsaaHint;
bool mManual; //We don't Release manual surfaces on destruction
RenderTargetSet mAttachedRenderTargets;
void detachFromAllRenderTargets();
};
}
#include "OgreHeaderSuffix.h"
#endif
Ogre::RenderTarget
A &#39;canvas&#39; which can receive the results of a rendering operation.
Definition: OgreRenderTarget.h:65
Ogre::DepthBuffer::mManual
bool mManual
Definition: OgreDepthBuffer.h:149
_OgreExport
#define _OgreExport
Definition: OgrePlatform.h:257
Ogre::DepthBuffer::RenderTargetSet
set< RenderTarget * >::type RenderTargetSet
Definition: OgreDepthBuffer.h:140
Ogre::DepthBuffer::mFsaa
uint32 mFsaa
Definition: OgreDepthBuffer.h:146
Ogre::DepthBuffer::mBitDepth
uint16 mBitDepth
Definition: OgreDepthBuffer.h:143
Ogre::DepthBuffer::mPoolId
uint16 mPoolId
Definition: OgreDepthBuffer.h:142
Ogre::DepthBuffer::mAttachedRenderTargets
RenderTargetSet mAttachedRenderTargets
Definition: OgreDepthBuffer.h:150
Ogre::DepthBuffer::mFsaaHint
String mFsaaHint
Definition: OgreDepthBuffer.h:147
OgrePrerequisites.h
Ogre::DepthBuffer::PoolId
PoolId
Definition: OgreDepthBuffer.h:85
Ogre::DepthBuffer::mWidth
uint32 mWidth
Definition: OgreDepthBuffer.h:144
Ogre::String
_StringBase String
Definition: OgrePrerequisites.h:439
Ogre::DepthBuffer
An abstract class that contains a depth/stencil buffer.
Definition: OgreDepthBuffer.h:82
Ogre::set
Definition: OgrePrerequisites.h:519
Ogre::DepthBuffer::mHeight
uint32 mHeight
Definition: OgreDepthBuffer.h:145
OgreHeaderSuffix.h
Ogre::uint32
unsigned int uint32
Definition: OgrePlatform.h:359
Ogre
Definition: OgreAndroidLogListener.h:34
OgreHeaderPrefix.h
Ogre::uint16
unsigned short uint16
Definition: OgrePlatform.h:360
Ogre::AllocatedObject
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
Definition: OgreMemoryAllocatedObject.h:58

Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.