pupil-labs / pyglui

cython powered OpenGL gui that works with glfw
MIT License
30 stars 20 forks source link

Global UI scale to resize elements #1

Closed willpatera closed 9 years ago

willpatera commented 9 years ago

Create global UI scale option, so that all all menus and elements in the UI can scale/resize. This could be user driven to increase and decrease the GUI element size manually/from the UI or dependent on screen density so the elements resize automatically/responsively.

mkassner commented 9 years ago

implemented

willpatera commented 9 years ago

In example.py fonts disappear when gui.scale grows to be greater than a value around 1.25

I tried setting the value of gui.scale directly to the value where it breaks in the while loop, and could not replicate the error. All other values, when statically declared do not pose problems either.

It would appear that the text is scaling at a different rate from the menu. Maybe a rounding or OpenGL transformation error somewhere?

screen shot 2014-10-31 at 12 33 54

mkassner commented 9 years ago

Fixed.