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

29 lines
727 B
C++
Raw Normal View History

2024-03-18 15:41:46 -03:00
#ifndef XNA_GRAPHICS_DEVICE_HPP
#define XNA_GRAPHICS_DEVICE_HPP
2024-05-24 22:26:10 -03:00
#include "../default.hpp"
2024-03-18 15:41:46 -03:00
namespace xna {
2024-05-24 22:26:10 -03:00
class GraphicsDevice : public std::enable_shared_from_this<GraphicsDevice> {
2024-03-18 15:41:46 -03:00
public:
2024-05-24 22:26:10 -03:00
GraphicsDevice();
GraphicsDevice(GraphicsDeviceInformation const& info);
~GraphicsDevice();
void Clear();
void Clear(Color const& color);
2024-06-05 09:26:33 -03:00
bool Initialize();
2024-05-24 22:26:10 -03:00
bool Present();
sptr<GraphicsAdapter> Adapter() const;
xna::Viewport Viewport() const;
void Viewport(xna::Viewport const& viewport);
void UseVSync(bool use);
2024-06-05 21:09:35 -03:00
//void DrawPrimitives(PrimitiveType primitiveType, Int startVertex, Int primitiveCount);
2024-05-24 22:26:10 -03:00
public:
struct PlatformImplementation;
uptr<PlatformImplementation> impl = nullptr;
2024-03-18 15:41:46 -03:00
};
}
#endif