This commit is contained in:
2025-05-13 02:46:21 +03:00
parent 143e16692e
commit 86914b7fcc
610 changed files with 92343 additions and 2 deletions
+23
View File
@@ -0,0 +1,23 @@
#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__