Skip to content
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

Updating normalized positions when glutin windows resize #281

Open
Bayugoon opened this issue Feb 19, 2024 · 1 comment
Open

Updating normalized positions when glutin windows resize #281

Bayugoon opened this issue Feb 19, 2024 · 1 comment

Comments

@Bayugoon
Copy link

Using the example "hello" program when ever I resize the window using the glutin/winit features the vertices of the triangle don't conform to the new size of the window, how is one intended to achieve this?

@Bayugoon
Copy link
Author

gl.viewport(x, y, width, height) call on a window resize event seems to do the trick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant