windows/opengl32

Windows WGL declarations for OpenGL rendering-context creation, destruction, procedure lookup, and current-context binding.


Context lifecycle


Procedure lookup


Imported functions


Signature examples

Printing imported names during compilation shows the exact imported signatures.

"windows/opengl32" use
"control" use

{} Int32 {} [
  @wglCreateContext printStack _:;
  @wglDeleteContext printStack _:;
  @wglGetProcAddress printStack _:;
  @wglMakeCurrent printStack _:;
  0
] "main" exportFunction

Expected Output During Compilation

{Arg1: {DC: (); unused: Int32;} Cref;} {GLRC: (); unused: Int32;} Cref {convention: "";} codeRef
{Arg1: {GLRC: (); unused: Int32;} Cref;} Int32 {convention: "";} codeRef
{procedureName: Natx;} Natx {convention: "";} codeRef
{arg1: {DC: (); unused: Int32;} Cref; arg2: {GLRC: (); unused: Int32;} Cref;} Int32 {convention: "";} codeRef

See also