Windows WGL declarations for OpenGL rendering-context creation, destruction, procedure lookup, and current-context binding.
wglCreateContext (hdc -- context): creates one rendering context for one device context.wglDeleteContext (context -- result): destroys one rendering context.wglGetProcAddress (procedureName -- address): looks up one OpenGL or WGL procedure by name address.wglMakeCurrent (hdc context -- result): binds one rendering context to one device context.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
{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