*
This commit is contained in:
@@ -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__
|
||||
Reference in New Issue
Block a user