1
0
mirror of https://github.com/borgesdan/xn65 synced 2024-12-29 21:54:47 +01:00
xn65/includes/xna/graphics/swapchain.hpp

22 lines
476 B
C++

#ifndef XNA_GRAPHICS_SWAPCHAIN_HPP
#define XNA_GRAPHICS_SWAPCHAIN_HPP
#include "../default.hpp"
#include "gresource.hpp"
namespace xna {
class SwapChain : GraphicsResource {
public:
SwapChain();
SwapChain(sptr<GraphicsDevice> const& device);
~SwapChain() override;
bool Initialize();
bool Present(bool vsync) const;
bool GetBackBuffer(Texture2D& texture2D);
public:
struct PlatformImplementation;
uptr<PlatformImplementation> impl = nullptr;
};
}
#endif