grovesNL / glow

GL on Whatever: a set of bindings to run GL anywhere and avoid target-specific code
Apache License 2.0
1.2k stars 130 forks source link

Updating normalized positions when glutin windows resize #281

Open Bayugoon opened 9 months ago

Bayugoon commented 9 months ago

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 commented 9 months ago

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