Skip to content

OpenGL Guide

squid233 edited this page Jan 27, 2025 · 3 revisions

Functions

The OpenGL module does not use static but instance methods to invoke functions. An instance is required to be constructed before the methods could be invoked.

To obtain such instance, simply use new.

void main() {
    var gl = new GL(GLFW::glfwGetProcAddress);
}
Clone this wiki locally