Skip to content
Luca Piccioni edited this page Aug 5, 2017 · 6 revisions

API philosophy

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.

Naming guidelines

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.

Command aliasing

Since the GL specification has the concept of command aliasing (equivalent commands), every command being an alias of another command will not be generated.

Implicit parameters removal

Special cases - Gen methods

Special cases - Get methods

Clone this wiki locally