Working, minimal example.

This commit is contained in:
Pcornat 2022-01-09 00:43:33 +01:00
parent 01697f9df4
commit bfc12b4a72
Signed by: Pcornat
GPG key ID: 2F3932FF46D9ECA0
7 changed files with 123 additions and 7 deletions

View file

@ -2,6 +2,7 @@
#define BILLYSHEET_WINDOW_HPP
#include <memory>
#include "imgui_impl_opengl3_loader.h"
#include <GLFW/glfw3.h>
namespace gui {
@ -18,6 +19,12 @@ namespace gui {
Window();
~Window() noexcept = default;
[[nodiscard]] const std::unique_ptr<GLFWwindow, decltype(&delete_glfw_window)> &get_window() const { return wwindow; }
[[nodiscard]] bool should_close() const noexcept;
void swap_buffers() const noexcept;
};
}