25 lines
722 B
C++
25 lines
722 B
C++
#ifndef ISwapChain11_h__
|
|||
|
|
#define ISwapChain11_h__
|
||
|
|
|
||
|
|
#include "../../ISwapChain.h"
|
||
|
|
#include <IRenderWindow.h>
|
||
|
|
#include "render/dx11/ITexture2D11.h"
|
||
|
|
#include <d3d11.h>
|
||
|
|
|
||
|
|
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__
|