This repository has been archived on 2023-06-25. You can view files and clone it, but cannot push or open issues or pull requests.
2023-06-24 18:38:24 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "pch.hpp"
|
|
|
|
|
2023-06-25 11:20:06 +08:00
|
|
|
inline auto WindowDestroy = [](SDL_Window* window) {
|
|
|
|
SDL_DestroyWindow(window);
|
|
|
|
};
|
|
|
|
|
2023-06-24 18:38:24 +08:00
|
|
|
class Window final {
|
|
|
|
public:
|
|
|
|
friend class Renderer;
|
|
|
|
|
|
|
|
Window(const std::string& title, int w, int h);
|
|
|
|
|
|
|
|
private:
|
2023-06-25 11:20:06 +08:00
|
|
|
std::unique_ptr<SDL_Window, decltype(WindowDestroy)> window_;
|
2023-06-24 18:38:24 +08:00
|
|
|
};
|