No description
Find a file
ringabout 8e2e098f82
bump to 1.2.9 in order to fix the pre-existing wrong tag (#99)
There is already a tag for 1.2.8, but the version of this file wasn't updated properly
2023-10-06 13:25:34 +08:00
examples Fixed glut example imports, added freeglut to opengl/glut.nim in windows 2018-07-14 13:49:15 +02:00
src Fixed using deprecated TXID symbol (#95) 2023-06-01 05:38:01 +02:00
.gitignore added support for GL_ARB_direct_state_access 2016-04-08 22:13:47 +02:00
LICENSE Create LICENSE 2016-07-31 13:24:35 +02:00
opengl.nimble bump to 1.2.9 in order to fix the pre-existing wrong tag (#99) 2023-10-06 13:25:34 +08:00
README.md Update README.md 2019-06-23 11:23:16 +01:00

opengl

An OpenGL interface

Extension loading

loadExtensions() must be executed after the creation of a rendering context and before any OpenGL extension procs are used.

Automatic error checking

The OpenGL procs do perform automatic error checking by default. This can be disabled at compile-time by defining the conditional symbol noAutoGLerrorCheck (-d:noAutoGLerrorCheck), in which case the error checking code will be omitted from the binary; or at run-time by executing this statement: enableAutoGLerrorCheck(false).

Building with x11 (linux)

When receiving the following error:

<path-to-opengl>/opengl/private/prelude.nim(5, 10) Error: cannot open file: X

Version 1.2.0 is broken for Linux builds, as x11 is imported incorrectly - use 1.2.2 or greater!