-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Window::get_size() should return (u32, u32) #471
Comments
glfwGetWindowSize returns values as |
But |
The window can be resized. All of the glfw functions (other than create) return or use signed int. Either this was an oversight in GLFW or there is some edge cases on some platform that could return negative numbers. I think the best option here is to open an issue with GLFW. If they decide to change these to be unsigned values than we could update to match accordingly. If they don't want to change these to be unsigned, then we'll have our reason why. In either case, we should continue to use the same type (currently signed int: |
The
glfw.create_window()
function usesu32
for the width and height, so I think it would make more sense to return a pair ofu32
s inWindow::get_size()
instead of a pair ofi32
sThe text was updated successfully, but these errors were encountered: