Skip to content

Releases: moderngl/moderngl-window

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.

2.4.0

26 Jun 14:36
9d9c8ee
Compare
Choose a tag to compare

2.4.0

Python 3.5 is no longer supported from this version.

New Features

  • Experimental: New simple 2D text writer
  • Various smaller improvements
  • F11 now toggles fullscreen mode by default
  • Window modules are now fetched from moderngl_window.WINDOW_CLASSES as a fallback. This is necessary in some enviroments.
  • Absolute paths will now bypass all registered resource directories and load the specified file directly.

Bug Fixes

  • Varying names can now be passed in when loading a program. Since the auto detection of out attributes is far from perfect this can be needed for more complex shaders.
  • Missing python 3.9 classifier in setup.py
  • SDL2 window should now also process since change events
  • GLFW: Fixed some incorrect key mappings
  • Fixed an issue with timers causing the first frame to have negative frame time
  • Fixed a pixel scale issue in the imgui integration. This was especially an issue with tiling window managers

2.3.0

24 Oct 12:34
Compare
Choose a tag to compare

New Features

  • Added a simple Scheduler (Thanks to @Leterax)
  • Added support for toggling fullscreen
  • Added support for setting window icon
  • TextureDescription now supports flipping the texture on x and y
  • The pyglet window now supports dragging in files
  • Added BaseWindow.convert_window_coordinates for converting mouse coordinates
  • Added more examples

Bug Fixes

  • BaseWindow now references WindowConfig using a weakref
  • Overriding the timer in run_window_config had no effect
  • Numpad keys was not mapped correctly in some instances
  • Timers should return 0 when not started
  • glfw window close callback did now work
  • glfw now respects content scaling on windows and X11
  • Added some missing methods in docs
  • Fixed various doc typos

2.2.3

24 Jul 14:59
Compare
Choose a tag to compare

2.2.3

  • imgui integration no longer relies on pyopengl
  • Bug: Properly parse out attributes with layout qualifiers
  • Bug: Do not cache system shaders at module level. We now cache them in the context to better support multiple windows.
  • Bug: OrbitCameraWindow - Fixed radians/degree issue
  • Bug: A window can now be closed from inside render()

2.2.2

24 Jun 03:38
Compare
Choose a tag to compare
  • Fixed several issues causing the window close callback not being called
  • imgui: Fixed incorrect mouse button mapping in mouse drag events