Skip to content

Releases: moderngl/moderngl-window

3.0.3

02 Dec 20:54
Compare
Choose a tag to compare
  • Fixed a potential division by zero issue in timers
  • Fixed the video player example

Thanks to @Leterax for the contributions to this release.

3.0.2

01 Dec 01:19
Compare
Choose a tag to compare
  • Fixed an issue causing BaseWindow.init_mgl_context to fail if no context
    creation callback was provided.

3.0.1

30 Nov 19:21
Compare
Choose a tag to compare
  • Timers now have fps and fps_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 into create_window_config_instance and run_window_config_instance
    making customization easier. run_window_config will still behave as before.
  • Some doc improvements

3.0.0

30 Nov 00:45
Compare
Choose a tag to compare
  • 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

05 Apr 19:01
Compare
Choose a tag to compare
  • 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

14 Oct 19:16
Compare
Choose a tag to compare
  • Minor code cleanups
  • Open up several contraints on requirements
  • The above also means Pillow 10.0.1 and higher can be used

2.4.4

18 May 11:07
Compare
Choose a tag to compare

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

03 Mar 12:05
Compare
Choose a tag to compare

2.4.3

  • Fix compatibility with moderngl 5.8.x
  • Camera now has keymap support (QWERTY, AZERTY etc)

2.4.2

17 Sep 18:01
Compare
Choose a tag to compare
  • 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

23 Dec 20:16
Compare
Choose a tag to compare

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.