/pyglfw-sample

Sample of using GLFW library with OpenGL

Primary LanguagePython

pyglfw-sample

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

Required libraries:

  • PYGLFW
$ pip3 install pyglfw
  • OpenGL
$ pip install PyOpenGL PyOpenGL_accelerate

Launching

$ python3 main.py