Releases: moderngl/moderngl-window
Releases · moderngl/moderngl-window
3.1.1
3.1.0
- Add basic support for draco compression glTF2 through DracoPy (@einarf)
- Added missing GLTF keys (LEFT_SHIFT, RIGHT_SHIFT, LEFT_CTRL) (@fangjunzhou)
- Pass horizontal mouse scroll to imgui (@fangjunzhou)
- Typing improvements (@nocarryr)
3.0.3
3.0.2
3.0.1
- Timers now have
fpsandfps_averageproperties for obtaining the current and average frame rate - Added
WindowConfig.hidden_window_framerate_limitlimiting framerate when the window is hidden.
The default value is currently 30 fps. This can be disabled by setting the value to 0.
This change combats framerate spikes in the thousands when the window is minimized eating up
battery life and resources. WindowConfig.init_mgl_contextcan now be implemented to completely override context creation.run_window_configwas split intocreate_window_config_instanceandrun_window_config_instance
making customization easier.run_window_configwill still behave as before.- Some doc improvements
3.0.0
- All callback functions now has an
on_prefix meaning existing code will need updating. The old names was somewhat unambiguous and was a source of confusion. It also makes it easier to separate the callback functions from other methods.render->on_renderresize->on_resizeclose->on_closeiconify->on_iconifykey_event->on_key_eventmouse_position_event->on_mouse_position_eventmouse_press_event->on_mouse_press_eventmouse_release_event->on_mouse_release_eventmouse_drag_event->on_mouse_drag_eventmouse_scroll_event->on_mouse_scroll_eventunicode_char_entered->on_unicode_char_enteredfiles_dropped_event->on_files_dropped_event
- Pyrr is now replaced with PyGLM
- imgui is replaced with imgui-bundle
- Numpy version is no longer restricted
- Type annotation improvements
- Python 3.13 support
- Other modernizations in the project
2.4.6
- Includes in shaders with quoted paths are now supported
- Renamed incorrect base window method name.
filed_dropped->file_dropped_event - Added size setters for headless window
- Added visible setter for all windows
- TextWriter2D should now take viewport size into account
- Loosened up some requirements
2.4.5
2.4.4
2.4.4
- Added
--backendoption to specify context backend.
This is mostly for the headless window to enable EGL. - Window now has a
backendproperty containing the name of the context backend - Window now has a
headlessboolean property to check if the window is headless.
This is useful for adding headless only paths in your code. - Added stencil bits to window framebuffers by default