Skip to content

Releases: moderngl/moderngl-window

2.0.5

03 Jan 21:51
Compare
Choose a tag to compare

Improvements

  • Windows now has an exit_key property that can be used to change or disable the exit key. This key is ESCAPE by default and can be disabled by setting the property to None. This is useful for users that don't want the default exit key behavior.
  • Log consumed glerrors after context creation as warnings

Bug fixes

  • Pyglet mouse coordinates was translated wrong in cases were the framebuffer size is larger that then window. The mouse position
    should always use window coordinates.
  • VAOs should now properly support 64 bit floats / dvec
  • VAOs should be better at detecting/ignoring built in attributes
  • Camera.look_at had broken input validation when passing in a vector
  • Various typos in docstrings

2.0.4

23 Nov 01:22
Compare
Choose a tag to compare
  • Resolved an issue with version constraints causing some dependencies to install pre-release versions

2.0.3

19 Nov 16:35
Compare
Choose a tag to compare
  • Missing WindowConfig.close method and support for close callback for all window types
  • Bug: KeyboardCamera's matrix is now always returned as a 32bit floats
  • Bug: Projection3D's matrix is now always returned as a 32bit floats
  • Example cleanup and improvements

2.0.2

15 Nov 20:48
Compare
Choose a tag to compare
  • Bug: An INVALID_ENUM glerror triggered after querying context info is now consumed.

2.0.1

13 Nov 05:31
Compare
Choose a tag to compare

Bugfixes

  • SDL2 window now allows highdpi framebuffers when available
  • pygame2 window should only initialize the display module

2.0.0

10 Nov 23:53
Compare
Choose a tag to compare

Breaking Changes

  • mouse_position_event signature has changed from (x, y) to (x, y, dx, dy).
    This means you will also be getting the relative position change.
  • mouse_drag_event signature has changed from (x, y) to (x, y, dx, dy).
    This means you will also be getting the relative position change.
  • KeyboardCamera.rot_state now takes dx and dy instead of x and y

Improvements

  • Python 3.8 support (PySide2 will take a few more months. SDL2 has issues on windows)
  • Added pygame2 window
  • Added window callback iconify for all window types that will be called
    when a window is minimized or restored
  • Window property mouse_exclusivity added for all window types.
    When enabled the mouse cursor is invisible and mouse position changes
    are only reported through the dx and dy values.
  • Window property size is now assignable for all window types
  • Window property position is now assignable for all window types
  • Window property title is now assignable for all window types
  • Window property cursor is now assignable for all window types
  • The KeyboardCamera class should now be better at reducing the
    chance of rotation and movement popping
  • All windows now properly separate viewport calculations when
    using fixed and free viewport (derived from window size)
  • The window aspect_ratio property should always return
    the a value based on if the aspect ratio is fixed or free
  • Added window fixed_aspect_ratio property so users can freely
    control this after window creation

1.5.2

18 Oct 21:06
Compare
Choose a tag to compare
  • Added window property position for getting and setting window position for all window types
  • Added window properties: viewport_size, viewport_width, viewport_height
  • Upgraded dependecy for tkinter window. pyopengltk>=0.0.3
  • Losened up most of the requirements
  • Bug: Missing call to tk.destroy() in tk window

1.5.1

10 Oct 15:43
Compare
Choose a tag to compare
  • Upgraded dependecy for tkinter window. pyopengltk==0.0.2.

1.5.0

09 Oct 21:33
Compare
Choose a tag to compare
  • Added experimental support for tkinter window. Relies on
    Jon Wright's pyopengltk package: https://github.com/jonwright/pyopengltk.
    Currently only supports windows and linux, but that might change
    in the future.
  • KeyboardCamera: Exposed mouse_sensitivity, velocity and projection attributes
  • Various missing docstring and docstring improvements
  • Various missing type hints

1.4.0

30 Sep 22:12
Compare
Choose a tag to compare
  • Added support for mouse_drag events for all window types
  • Added support for unicode_char_entred (text input) for all windows
  • Added support for mouse wheel events for all window types