OgreHardwareUniformBuffer.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 __HardwareUniformBuffer__
#define __HardwareUniformBuffer__
// Precompiler options
#include "OgrePrerequisites.h"
#include "OgreHardwareBuffer.h"
#include "OgreSharedPtr.h"
#include "OgreGpuProgramParams.h"
#include "OgreAny.h"
#include "OgreHeaderPrefix.h"
namespace Ogre {
class HardwareBufferManagerBase;
class _OgreExport HardwareUniformBuffer : public HardwareBuffer
{
protected:
HardwareBufferManagerBase* mMgr;
String mName;
public:
HardwareUniformBuffer(HardwareBufferManagerBase* mgr, size_t sizeBytes,
HardwareBuffer::Usage usage, bool useShadowBuffer = false, const String& name = "");
~HardwareUniformBuffer();
HardwareBufferManagerBase* getManager() const { return mMgr; }
const String& getName() const { return mName; }
};
class _OgreExport HardwareUniformBufferSharedPtr : public SharedPtr<HardwareUniformBuffer>
{
public:
HardwareUniformBufferSharedPtr() : SharedPtr<HardwareUniformBuffer>() {}
explicit HardwareUniformBufferSharedPtr(HardwareUniformBuffer* buf);
};
}
#include "OgreHeaderSuffix.h"
#endif
_OgreExport
#define _OgreExport
Definition: OgrePlatform.h:257
OgreSharedPtr.h
Ogre::HardwareUniformBuffer::mMgr
HardwareBufferManagerBase * mMgr
Definition: OgreHardwareUniformBuffer.h:52
Ogre::HardwareUniformBuffer
Specialisation of HardwareBuffer for a uniform buffer.
Definition: OgreHardwareUniformBuffer.h:49
OgrePrerequisites.h
OgreGpuProgramParams.h
Ogre::HardwareBufferManagerBase
Base definition of a hardware buffer manager.
Definition: OgreHardwareBufferManager.h:113
Ogre::HardwareUniformBuffer::getManager
HardwareBufferManagerBase * getManager() const
Return the manager of this buffer, if any.
Definition: OgreHardwareUniformBuffer.h:61
Ogre::HardwareUniformBufferSharedPtr::HardwareUniformBufferSharedPtr
HardwareUniformBufferSharedPtr()
Definition: OgreHardwareUniformBuffer.h:71
Ogre::HardwareBuffer::Usage
Usage
Enums describing buffer usage; not mutually exclusive.
Definition: OgreHardwareBuffer.h:79
Ogre::String
_StringBase String
Definition: OgrePrerequisites.h:439
Ogre::HardwareBuffer
Abstract class defining common features of hardware buffers.
Definition: OgreHardwareBuffer.h:74
OgreHeaderSuffix.h
Ogre::HardwareUniformBuffer::mName
String mName
Definition: OgreHardwareUniformBuffer.h:53
OgreAny.h
Ogre
Definition: OgreAndroidLogListener.h:34
OgreHardwareBuffer.h
Ogre::SharedPtr
Reference-counted shared pointer, used for objects where implicit destruction is required.
Definition: OgrePrerequisites.h:310
OgreHeaderPrefix.h
Ogre::HardwareUniformBuffer::getName
const String & getName() const
Definition: OgreHardwareUniformBuffer.h:63
Ogre::HardwareUniformBufferSharedPtr
Shared pointer implementation used to share uniform buffers.
Definition: OgreHardwareUniformBuffer.h:68

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