Home

Awesome

Introduction

This is pyglfw, Python bindings for GLFW 2.7.5 using ctypes. It's a very light set of bindings, the API is nearly the same from Python as from C, except that the C and ctypes details are hidden from the user.

Usage

Everything works as described in the GLFW reference manual, with a few changes:

Other than the above changes everything works exactly as in the GLFW reference manual (see docs/reference.pdf).

Dependencies

pyglfw depends on a Python version greater or equal than 2.5. It also depends on GLFW 2.7.5, although any larger 2.x.x version should work (not GLFW 3, that's incompatible).

pyglfw needs a shared library version of GLFW to run. For Windows users it's easy - pyglfw comes shipped with a Windows GLFW DLL pre-built. Users on other OS's must compile a shared version of GLFW themselves. Make sure that the shared library follows your system's naming scheme for the library "glfw" (so, for example, on Linux this would be libglfw.so) and copy the file to the glfw/ directory before installing.

pyglfw comes with the GLFW documentation. They can be found in the folder docs. For the GLFW source code (needed to build a GLFW shared library) download a copy from http://glfw.org/.