| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- #pragma once
- #include "BsD3D9Prerequisites.h"
- #include "BsMultiRenderTexture.h"
- namespace BansheeEngine
- {
- class D3D9MultiRenderTexture;
- /**
- * @brief DirectX 9 implementation of a render texture with multiple color surfaces.
- *
- * @note Core thread only.
- */
- class BS_D3D9_EXPORT D3D9MultiRenderTextureCore : public MultiRenderTextureCore
- {
- public:
- D3D9MultiRenderTextureCore(const MULTI_RENDER_TEXTURE_CORE_DESC& desc);
- virtual ~D3D9MultiRenderTextureCore();
-
- /**
- * @copydoc MultiRenderTextureCore::getCustomAttribute
- */
- void getCustomAttribute(const String& name, void* pData) const;
- protected:
- friend class D3D9MultiRenderTexture;
- /**
- * @copydoc CoreObjectCore::initialize
- */
- virtual void initialize();
- /**
- * @copydoc MultiRenderTextureCore::getProperties
- */
- const RenderTargetProperties& getPropertiesInternal() const { return mProperties; }
- Vector<IDirect3DSurface9*> mDX9ColorSurfaces;
- IDirect3DSurface9* mDX9DepthStencilSurface;
- MultiRenderTextureProperties mProperties;
- };
- /**
- * @brief DirectX 9 implementation of a render texture with multiple color surfaces.
- *
- * @note Sim thread only.
- */
- class BS_D3D9_EXPORT D3D9MultiRenderTexture : public MultiRenderTexture
- {
- public:
- virtual ~D3D9MultiRenderTexture() { }
- protected:
- friend class D3D9TextureManager;
- D3D9MultiRenderTexture(const MULTI_RENDER_TEXTURE_DESC& desc);
- /**
- * @copydoc MultiRenderTexture::getProperties
- */
- const RenderTargetProperties& getPropertiesInternal() const { return mProperties; }
- MultiRenderTextureProperties mProperties;
- };
- }
|