-
Notifications
You must be signed in to change notification settings - Fork 107
API philosophy
Luca Piccioni edited this page Aug 5, 2017
·
6 revisions
The OpenGL API wrapped in OpenGL.Net are automatically generated from the GL specification. All commands, constants and enumerations are under the OpenGL namespace, scoped in the classes Gl, Wgl, Glx and Egl.
All GL (and related) commands and constants have a prefix for indicating the API which they belongs to. This prefix is removed during the code generation.
- GL commands have removed the gl prefix, GL constants have removed the GL_ prefix;
- WGL commands have removed the wgl prefix, WGL constants have removed the WGL_ prefix;
- GL commands have removed the glX prefix, GLX constants have removed the GLX_ prefix;
- EGL commands have removed the egl prefix, EGL constants have removed the EGL_ prefix;
In the case the command or the constant starts with a numeric character, the symbol is prefixed with an underscore (_) character.
Since the GL specification has the concept of command aliasing (equivalent commands), every command being an alias of another command will not be generated.