Moderngl-window

Latest version: v2.4.6

Safety actively analyzes 630223 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 5

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 environments.
* 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

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

* 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

* Fixed several issues causing the window close callback not being called
* Fixed incorrect mouse button mapping in mouse drag events

2.2.1

* imgui renderer now supports moderngl textures. This opens up for both
displaying images and animated framebuffer textures into imgui.
* Scene: Fixed several issues related to shader assigning based on material properties.
This especially affected wavefront/obj files.
* OrbitCamera: Fixed translation issue (Leterax)
* OrbitCamera: Now using degrees instead of radians (Leterax)
* Bumped pyglet version to minimum 1.5.6. This version
solves several issue with window events for MacBooks with Touch Bar

2.2.0

* `WindowConfig` now supports overriding the default arugment parser.
A classmethod `add_arguments` can be implemented to add additional
arguments. The parsed arguments are available in `self.argv`
* Added in `Scene.draw_wireframe` rendering a scene in wire frame mode
* `Scene.draw_bbox` now support passing in a `color`
* `Scene` should now have better support for all the vertex formats
wavefront/obj files may have.
* Addded `WindowConfig.clear_color` attribute so uses can control the
clear color of the screen. The value can be set to `None` to
disable screen clearing (Leterax)
* Added `OrbitCamera` (Leterax)
* Allow setting camera rotation (Leterax)
* `VAO` should now give better feedback if the buffers and program
attributes are not compatible
* `ModernGLRenderer` (imgui renderer) should not rely on moderngl-window (minuJeong)
* `Scene` should now cache default shaders internally so they are not loaded
for every scene
* Several typos in docs (dawid-januszkiewicz)
* `WindowConfig.load_compute_shader` missing in docs
* Bumped pygame to `2.0.0.dev10`

Thanks to Leterax, minuJeong and dawid-januszkiewicz for the contributions to this release
and mtbouchard for input on `WindowConfig` and `Scene` changes.

Page 2 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.