Wiki
Download
Manual
Eggs
API
Tests
Bugs
show
edit
history
You can edit this page using
wiki syntax
for markup.
Article contents:
== epoxy [[toc:]] Bindings for the OpenGL and OpenGL ES APIs. Every version and profile of these APIs are available out of the box thanks to the Epoxy library. The actual version used is automatically determined by the current GL context (which you can obtain from windowing libraries like SDL or GLFW). This egg is based on Alex Charlton’s previous work on the opengl-glew egg and is a drop-in replacement for it (except for the {{init}} procedure that is no longer needed). It also provides the functionnality of the old opengl egg (fixed pipeline). === Requirements * libepoxy 1.5.3 or higher * bind === Documentation All functions and constants from every version of the OpenGL specifications 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. ==== Epoxy specific procedures <procedure> (has-gl-extension? EXTENSION)</procedure> Query whether the OpenGL extension, given as a string, is supported. <procedure> (is-desktop-gl?)</procedure> Return whether the current context is a regular desktop OpenGL one (#t), or an OpenGL ES one (#f). <procedure> (gl-version)</procedure> Return the current context’s OpenGL version as an integer (eg. 20 for 2.0, 43 for 4.3…) <procedure> (glsl-version)</procedure> Return the current context’s GLSL supported version. === Example For numerous examples of this egg’s usage, look at the [[https://wiki.call-cc.org/egg/gl-utils|gl-utils]] egg, [[https://wiki.call-cc.org/egg/glls|glls]] egg, or the [[https://wiki.call-cc.org/egg/noise|noise]] egg. === Version history ==== Version 0.2.0 15 March 2019 * Documentation * Fix some incorrect identifier renaming ==== Version 0.1.0 4 November 2018 * Initial release based on libepoxy 1.5.3 === Source repository Source available in [[https://www.upyum.com/cgit.cgi/epoxy|a git repository]]. Bug reports and patches welcome! Bugs can be reported to kooda@upyum.com === Author Adrien (Kooda) Ramos Based on previous work by Alex Charlton. === Licence BSD
Description of your changes:
I would like to authenticate
Authentication
Username:
Password:
Spam control
What do you get when you subtract 14 from 4?