cl-glfw3

2021-05-31

Bindings for GLFW 3.x

Upstream URL

github.com/AlexCharlton/cl-glfw3

Author

Alex Charlton <alex.n.charlton@gmail.com>

License

BSD-2
README

cl-glfw3

Bindings for the GLFW library, version 3.x, for Common Lisp.

These bindings have been enhanced with several conveniences, as described in cl-glfw3.lisp.

Direct bindings to all GLFW functions can be found in the system %glfw glfw-bindings.lisp.

Installing

cl-glfw3 is Quicklisp installable! Just type:

(ql:quickload :cl-glfw3)

Running the resulting system requires GLFW version 3.x and libffi to be installed on your computer.

OSX

  • brew install glfw libffi

Ubuntu/Debian

  • sudo apt-get install libglfw3 libffi-dev

Examples

Examples can be found in the examples directory.

The examples rely on cl-opengl (which Quicklisp will take care of) and require that OpenGL be installed on your computer.

These can be loaded through Quicklisp with:

(ql:quickload :cl-glfw3-examples)

(cl-glfw3-examples:events-example)
(cl-glfw3-examples:basic-window-example)
(cl-glfw3-examples:particles-basic-example)
(cl-glfw3-examples:fragment-shader-example)

Documentation

The best place to find documentation for GLFW3 is their official site.

Stability

At the moment these bindings are largely untested, aside from what can be seen in the examples directory. Contributions are most welcome!

Dependencies (4)

  • alexandria
  • cffi
  • cl-opengl
  • trivial-main-thread

Dependents (0)

    • GitHub
    • Quicklisp