opengl

High-level and low-level wrapper for OpenGL

Wrapper score 15/100 · tests present · no docs generated

Wraps a native library — check OS Compatibility below for platform-specific linking notes.

Summary

Latest Version Unknown
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:23

Tags

Installation

nimble install opengl
choosenim install opengl
git clone https://github.com/nim-lang/opengl

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
opengl - - - - - - -

Source

Repository https://github.com/nim-lang/opengl
Homepage https://github.com/nim-lang/opengl
Registry Source nimble_official

README

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!