C-Ler / chez-glfw

OpenGL and GLFW module for ChezScheme

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenGL module for ChezScheme

ChezScheme comes with an OpenGL module, but that doesn't support the latest and greatest versions of OpenGL. This packages parses the Khronos registry for OpenGL standards and creates bindings for OpenGL for whichever version you need.

I tried to stick to R6RS code as much as possible, so it should be possible to port this to other scheme systems. Where there are imports from (chezscheme), they are done with (import (only (chezscheme) ...)).

Future

  • Load OpenGL extensions at runtime: I'm not sure how to achieve this within the confines of the hygienic Scheme system.
  • Vulkan support.
  • Higher level Scheme interface.

Requirements

  • ChezScheme - though most of the code is R6RS, the GL-ffi code is of course made for the Chez foreign interface.
  • Lyonesse - my own little pack of batteries; it has a minimal XML parser.
  • PFDS - Ian Price's collection of Purely Functional Data Structures, with a small patch of my own.
  • SRFI's 13 (string tools) and 48 (format)
  • GLFW - to create an OpenGL context, and access to keyboard, mouse etc.

About

OpenGL and GLFW module for ChezScheme


Languages

Language:Scheme 100.0%Language:Shell 0.0%