41 void KeyboardCallback(GLFWwindow* _w,
int key,
int scancode,
int action,
int mods);
66 void DropCallback(GLFWwindow* _w,
int count,
const char** paths) {}
77 glfwSetWindowSize(
window, width, height);
104 void SetIcon(std::string_view path);
Definition: application.h:47
Rml::Context * GetRmlUiContext()
Definition: application.h:162
Definition: glfwwindow.h:25
void InitWindow(int width, int height)
Definition: glfwwindow.cpp:163
double GetMouseY() const
Definition: glfwwindow.h:33
void Destroy()
Definition: glfwwindow.cpp:115
bool ButtonIsHeld(int btn) const
Definition: glfwwindow.h:29
std::vector< unsigned int > code_input
Definition: glfwwindow.h:136
GLFWwindow * window
Definition: glfwwindow.h:106
void SetIcon(std::string_view path)
Definition: glfwwindow.cpp:140
void SetFullScreen(bool fullscreen) const
Definition: glfwwindow.cpp:122
Application * app
Definition: glfwwindow.h:108
GLWindow(Application *app)
Definition: glfwwindow.h:27
int GetWindowWidth() const
Definition: glfwwindow.h:84
double m_mouse_pressed_time[GLFW_MOUSE_BUTTON_LAST]
Definition: glfwwindow.h:123
void FrameBufferSizeCallback(GLFWwindow *window, int width, int height)
Definition: glfwwindow.cpp:55
double m_scroll_amount
Definition: glfwwindow.h:129
void MouseButtonCallback(GLFWwindow *_w, int button, int action, int mods)
Definition: glfwwindow.cpp:40
bool MouseButtonIsReleased(int btn) const
Definition: glfwwindow.h:36
bool m_mouse_keys_pressed[GLFW_MOUSE_BUTTON_LAST]
Definition: glfwwindow.h:120
void MouseEnterCallback(GLFWwindow *_w, int entered)
Definition: glfwwindow.h:49
double m_mouse_y
Definition: glfwwindow.h:113
bool MouseButtonIsPressed(int btn) const
Definition: glfwwindow.h:37
float GetTime() const
Definition: glfwwindow.cpp:120
bool ButtonIsPressed(int btn) const
Definition: glfwwindow.h:31
void DropCallback(GLFWwindow *_w, int count, const char **paths)
Definition: glfwwindow.h:66
double MouseButtonLastReleased(int btn) const
Definition: glfwwindow.h:88
bool m_mouse_keys_held[GLFW_MOUSE_BUTTON_LAST]
Definition: glfwwindow.h:118
void CharacterCallback(GLFWwindow *window, unsigned int codepoint)
Definition: glfwwindow.h:60
bool m_mouse_keys_released[GLFW_MOUSE_BUTTON_LAST]
Definition: glfwwindow.h:119
double m_mouse_y_on_pressed
Definition: glfwwindow.h:116
void SetCallbacks()
Definition: glfwwindow.cpp:64
void SetWindowSize(int width, int height)
Definition: glfwwindow.h:74
bool window_size_changed
Definition: glfwwindow.h:111
bool ButtonIsReleased(int btn) const
Definition: glfwwindow.h:30
void OnFrame()
Any cleanups or clearing the window has to do each frame
Definition: glfwwindow.cpp:147
bool WindowSizeChanged() const
Definition: glfwwindow.h:80
bool ExitApplication()
Definition: glfwwindow.cpp:135
double m_mouse_x
Definition: glfwwindow.h:112
int GetScrollAmount() const
Definition: glfwwindow.h:82
void KeyboardCallback(GLFWwindow *_w, int key, int scancode, int action, int mods)
Definition: glfwwindow.cpp:26
int m_mods
Definition: glfwwindow.h:138
std::vector< int > keys_released_last
Definition: glfwwindow.h:135
bool m_keys_held[GLFW_KEY_LAST]
Definition: glfwwindow.h:125
int m_window_width
Definition: glfwwindow.h:131
void ScrollCallback(GLFWwindow *_w, double xoffset, double yoffset)
Definition: glfwwindow.h:55
void MousePositionCallback(GLFWwindow *_w, double xpos, double ypos)
Definition: glfwwindow.h:43
bool ShouldExit() const
Definition: glfwwindow.cpp:133
bool MouseButtonIsHeld(int btn) const
Definition: glfwwindow.h:35
double GetMouseX() const
Definition: glfwwindow.h:32
bool MouseButtonDoubleClicked(int btn) const
Definition: glfwwindow.h:90
bool m_keys_released[GLFW_KEY_LAST]
Definition: glfwwindow.h:126
std::vector< int > keys_pressed_last
Definition: glfwwindow.h:134
int GetWindowHeight() const
Definition: glfwwindow.h:83
bool m_keys_pressed[GLFW_KEY_LAST]
Definition: glfwwindow.h:127
bool MouseDragged() const
Definition: glfwwindow.h:39
double m_mouse_x_on_pressed
Definition: glfwwindow.h:115
double m_mouse_keys_last_pressed[GLFW_MOUSE_BUTTON_LAST]
Definition: glfwwindow.h:122
int m_window_height
Definition: glfwwindow.h:131
The window handles the initialization of the callbacks, and all the input and output....
Definition: window.h:25
bool ProcessCursorPosCallback(Rml::Context *context, double xpos, double ypos, int mods)
Definition: RmlUi_Platform_GLFW.cpp:111
bool ProcessCharCallback(Rml::Context *context, unsigned int codepoint)
Definition: RmlUi_Platform_GLFW.cpp:96
bool ProcessCursorEnterCallback(Rml::Context *context, int entered)
Definition: RmlUi_Platform_GLFW.cpp:103
bool ProcessScrollCallback(Rml::Context *context, double yoffset, int mods)
Definition: RmlUi_Platform_GLFW.cpp:134
Definition: application.cpp:54