Files
LifeProject/LifeGraphics/ISwapChain.h
T
2025-05-13 02:46:21 +03:00

24 lines
619 B
C++

#ifndef ISwapChain_h__
#define ISwapChain_h__
#include "render/ITexture2D.h"
#include "Types.h"
#include <delegate/Delegate.h>
namespace LifeGraphics
{
class ISwapChain{
public:
EVENT1(SwapChainEvent, ISwapChain*);
SwapChainEvent Event_Resized;
SwapChainEvent Event_Presented;
virtual LifeGraphics::ITexture2D* GetBackBuffer(uint8 id) = 0;
virtual LifeGraphics::ITexture2D* GetDepthBuffer(uint8 id) = 0;
virtual void Resize(uint16 width, uint16 height) = 0;
virtual void Present() = 0;
virtual ~ISwapChain(){}
};
}
#endif // ISwapChain_h__