-
Notifications
You must be signed in to change notification settings - Fork 3
OpenGL Guide
squid233 edited this page Jan 7, 2025
·
1 revision
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);
}
OverrunGL provides single parameter/return overloads for glGen*
, glCreate*
and glDelete*
functions. For glGen*
and glCreate*
, there is no parameter and a return value. For glDelete*
, there is a parameter accepting an OpenGL object to be deleted.
void glGen/glCreate*(int n, @Out MemorySegment dst) -> int glGen/glCreate*()
void glDelete*(int n, MemorySegment objs) -> void glDelete*(int obj)
Copyright (c) 2022-2025 Overrun Organization. In case of any problems with this wiki, please search or create an issue.