| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #pragma once
- #include "BsGLPrerequisites.h"
- #include "BsMultiRenderTexture.h"
- #include "BsGLFrameBufferObject.h"
- namespace BansheeEngine
- {
- /** @addtogroup GL
- * @{
- */
- class GLMultiRenderTexture;
- /**
- * OpenGL implementation of a render texture with multiple color surfaces.
- *
- * @note Core thread only.
- */
- class BS_RSGL_EXPORT GLMultiRenderTextureCore : public MultiRenderTextureCore
- {
- public:
- GLMultiRenderTextureCore(const MULTI_RENDER_TEXTURE_CORE_DESC& desc);
- virtual ~GLMultiRenderTextureCore();
- /** @copydoc MultiRenderTextureCore::getCustomAttribute */
- void getCustomAttribute(const String& name, void* pData) const override;
- protected:
- friend class GLTextureManager;
- /** @copydoc CoreObjectCore::initialize */
- virtual void initialize() override;
- private:
- GLFrameBufferObject* mFB;
- /** @copydoc MultiRenderTextureCore::getProperties */
- const RenderTargetProperties& getPropertiesInternal() const override { return mProperties; }
- MultiRenderTextureProperties mProperties;
- };
- /**
- * OpenGL implementation of a render texture with multiple color surfaces.
- *
- * @note Sim thread only.
- */
- class BS_RSGL_EXPORT GLMultiRenderTexture : public MultiRenderTexture
- {
- public:
- virtual ~GLMultiRenderTexture() { }
- protected:
- friend class GLTextureManager;
- GLMultiRenderTexture(const MULTI_RENDER_TEXTURE_DESC& desc);
- /** @copydoc MultiRenderTexture::getProperties */
- const RenderTargetProperties& getPropertiesInternal() const override { return mProperties; }
- MultiRenderTextureProperties mProperties;
- };
- /** @} */
- }
|