Releases: moderngl/moderngl-window
Releases · moderngl/moderngl-window
3.0.3
3.0.2
3.0.1
- Timers now have
fps
andfps_average
properties for obtaining the current and average frame rate - Added
WindowConfig.hidden_window_framerate_limit
limiting 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_context
can now be implemented to completely override context creation.run_window_config
was split intocreate_window_config_instance
andrun_window_config_instance
making customization easier.run_window_config
will 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_render
resize
->on_resize
close
->on_close
iconify
->on_iconify
key_event
->on_key_event
mouse_position_event
->on_mouse_position_event
mouse_press_event
->on_mouse_press_event
mouse_release_event
->on_mouse_release_event
mouse_drag_event
->on_mouse_drag_event
mouse_scroll_event
->on_mouse_scroll_event
unicode_char_entered
->on_unicode_char_entered
files_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
--backend
option to specify context backend.
This is mostly for the headless window to enable EGL. - Window now has a
backend
property containing the name of the context backend - Window now has a
headless
boolean 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
2.4.3
2.4.2
- Allow toggling vsync at runtime for most windows
- Allow rendering with imgui in headless mode
- Fixed a crash when using fullscreen mode with glfw
- Support moving OrbitCamera
- Added SSAO example
- Added
on_generic_event
callback for pygame user events - Fixed zoom sensitivity getter returning the wrong value
- Fixed several typos
- Bumped several dependencies to reasonable versions
Thanks to @Rafale25, @n3onUser, @erikstrand (Erik Strand), @sheepman4267 and @dbs4261 (Daniel Simon) for contributions to this release.
2.4.1
2.4.1
- Experimental support for ffmpeg capture
- Event callbacks can now be assigned in WindowConfig.init
- Initial support for confirming window close (glfw)
- Fixed a crash when closing a pyglet window
- Remove some spammy prints in the text writer
Thanks to @DavideRuzza, @wk39 and @joehalliwell for their
contributions to this release.