You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, we use the getWindowInfoFromWindow function to take a raw GLFW pointer to a Window, and get our augmented WindowInfo struct from it.
However, turns out there is a better way - there's a glfwSetWindowUserPointer and glfwGetWindowUserPointer to store app-specific data. We should use this instead, and store a pointer to the WindowInfo struct.
We can then use this to replace the getWindowInfoFromWindow, and remove the sActiveWindows concept entirely.
The text was updated successfully, but these errors were encountered:
Right now, we use the
getWindowInfoFromWindow
function to take a raw GLFW pointer to a Window, and get our augmentedWindowInfo
struct from it.However, turns out there is a better way - there's a
glfwSetWindowUserPointer
andglfwGetWindowUserPointer
to store app-specific data. We should use this instead, and store a pointer to theWindowInfo
struct.We can then use this to replace the
getWindowInfoFromWindow
, and remove thesActiveWindows
concept entirely.The text was updated successfully, but these errors were encountered: