2022-09-13 18:25:18 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "engine_api.h"
|
|
|
|
|
|
|
|
#include "engine.hpp"
|
|
|
|
|
2022-09-17 00:22:35 +00:00
|
|
|
#include <memory>
|
|
|
|
|
2022-09-19 08:57:02 +00:00
|
|
|
struct SDL_Window;
|
2022-09-13 18:25:18 +00:00
|
|
|
|
|
|
|
namespace engine::gfx {
|
|
|
|
|
|
|
|
struct ENGINE_API Device {
|
|
|
|
|
2022-09-17 00:22:35 +00:00
|
|
|
Device(AppInfo appInfo, SDL_Window* window);
|
2022-09-19 17:33:56 +00:00
|
|
|
|
|
|
|
Device(const Device&) = delete;
|
|
|
|
Device& operator=(const Device&) = delete;
|
2022-09-13 18:25:18 +00:00
|
|
|
~Device();
|
|
|
|
|
|
|
|
private:
|
|
|
|
class Impl;
|
2022-09-13 21:43:24 +00:00
|
|
|
std::unique_ptr<Impl> pimpl;
|
2022-09-13 18:25:18 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|