opengl-glew

  1. opengl-glew
    1. Requirements
    2. Documentation
      1. GLEW functions
    3. Example
    4. Version history
      1. Version 0.8.0
      2. Version 0.7.0
      3. Version 0.6.0
      4. Version 0.5.0
      5. Version 0.4.4
      6. Version 0.3.0
      7. Version 0.2.0
      8. Version 0.1.0
    5. Source repository
    6. Author
    7. Licence

Bindings to OpenGL with GLEW extension loading.

Chicken's other opengl bindings are based on the old fixed function pipeline OpenGL. These bindings generated by bind with the OpenGL core header file. Additionally, bindings to GLEW are provided for extension management.

Requirements

Documentation

All functions and constants from the OpenGL core header file are exported. Scheme style names are provided (underscores and camelCase replaced with hyphens), the gl prefix is removed from names, functions starting with is instead end in question marks, and constants are bookended by +s (e.g. delete-texture, enabled?, +arb-viewport-array+). The terms 1D, 2D and 3D are additionally hyphen separated in order to match their constant counterparts (e.g. tex-image-2d and +texture-2d+).

Functions whose C counterparts accept or return GLboolean accept or return a Scheme boolean value. Do not pass +true+ or +false+ to these functions.

GLEW functions

[procedure] (init)

Required to initialize GLEW/OpenGL. An OpenGL context must be created before this is called.

[procedure] (supported? EXTENSION-NAME)

Query whether the OpenGL extension, given as a string, is supported.

Example

For numerous examples of opengl-glew usage, look at the gl-utils egg, glls egg, or the noise egg.

Version history

Version 0.8.0

24 August 2014

Version 0.7.0

8 August 2014

Version 0.6.0

17 June 2014

Version 0.5.0

3 June 2014

Version 0.4.4

2 June 2014

Version 0.4.3

30 May 2014

Version 0.4.2

24 May 2014

Version 0.4.1

12 May 2014

Version 0.4.0

11 May 2014

Version 0.3.0

Version 0.2.0

Version 0.1.0

Source repository

Source available on GitHub.

Bug reports and patches welcome! Bugs can be reported via GitHub or to alex.n.charlton at gmail.

Author

Alex Charlton

Licence

BSD