17 Window(std::shared_ptr<Application> app, std::string title,
int width,
int height);
21 auto pollEvent() -> void;
23 [[nodiscard]]
auto getSize()
const -> std::pair<int, int>;
25 [[nodiscard]]
auto getWidth()
const ->
int {
26 auto [width, height] = getSize();
30 [[nodiscard]]
auto getHeight()
const ->
int {
31 auto [width, height] = getSize();
37 [[nodiscard]]
auto getNative()
const -> std::shared_ptr<GLFWwindow> {
42 static inline unsigned int m_count = 0;
43 std::shared_ptr<GLFWwindow> m_window;
46 static auto errorCallback(
int error_code,
const char *description) -> void;
48 static auto cursorPosCallback(GLFWwindow *window,
double xpos,
double ypos) -> void;
49 static auto windowCloseCallback(GLFWwindow *window) -> void;
50 static auto mouseButtonCallback(GLFWwindow *window,
int button,
int action,
int mods) -> void;
51 static auto scrollCallback(GLFWwindow *window,
double xoffset,
double yoffset) -> void;
52 static auto keyCallback(GLFWwindow *window,
int key,
int scancode,
int action,
int mods) -> void;
53 static auto charCallback(GLFWwindow *window,
unsigned int codepoint) -> void;