Sample of using GLFW library with OpenGL First task at Computer Graphics course in BMSTU Script displays red rotating square with next key bindings:
- SPACEBAR - changes color to blue (red)
- UP - moves square up
- DOWN - moves square down
- ESC - closes the window
- PYGLFW
$ pip3 install pyglfw
- OpenGL
$ pip install PyOpenGL PyOpenGL_accelerate
$ python3 main.py