#ifndef ISwapChain11_h__ #define ISwapChain11_h__ #include "../../ISwapChain.h" #include #include "render/dx11/ITexture2D11.h" #include namespace LifeGraphics{ class ISwapChain11 : public ISwapChain{ public: ISwapChain11(ID3D11Device* device, LifeCore::IRenderWindow* wnd); LifeGraphics::ITexture2D* GetBackBuffer(uint8 id); LifeGraphics::ITexture2D* GetDepthBuffer(uint8 id); void Resize(uint16 width, uint16 height); void Present(); ~ISwapChain11(); private: IDXGISwapChain* swap_chain; LifeGraphics::ITexture2D11* back_buffer; LifeGraphics::ITexture2D11* depth_buffer; }; } #endif // ISwapChain11_h__