The glue code which mediates between OpenGL and some GUI


Keywords
opengl, python
License
MIT
Install
pip install glglue==2.5.0

Documentation

glglue

The glue code which mediates between OpenGL and some GUI. GUI ใ‚คใƒ™ใƒณใƒˆ(resize, mouse, keyboard, repaint) ใ‚’ OpenGL ใซๆฉ‹ๆธกใ—ใ™ใ‚‹ใ€‚

GUI                         OpenGL controller
+--------+                   +------------+
| win32  |--window resize--->| Update     |
| glut   |--mouse input----->| Update     |
| sdl    |--keyboard input-->| Update     |
| pyside6|                   |            |
| gtk3   |--repaint--------->| Draw       |
| gtk4   |                   +------------+
+--------+

And OpenGL utilities.

Requirements

  • Python 3.11

status

platform status comment
win32 ok windows11
glut ok windows11, PATH to freeglut64.vc.dll
glfw ok windows11, pip install glfw
gtk3 ? require gtk3 self build
gtk4 ok require gtk4 self build
sdl2 ok windows11, pip install pysdl2 pysdl2-dll
qt6 ok windows11, pip install pyside6
pyopengltk ok windows11, pip install pyopengltk

upload

rm -rf dist
py -m build --sdist
twine upload dist/*