benilla-re systems structs docs

LoadWglExtensions

function · gx · host

Address
0x58c580 · 189 bytes, up to 0x58c63c
Signature
void __cdecl (void)
Meaning
Loads wglGetExtensionsStringARB and the pixel format, pbuffer and swap control entry points
Confidence
verified, proof one
Finding
gx/opengl#gl-and-wgl-extension-loads

Finding: GL and WGL extension loads in gx: the OpenGL context and extensions

0x59aff0 parses GL_VERSION as %d.%d into major << 16 | minor (−1 for an unread part), then tests thirty-six GL extensions, from GL_EXT_compiled_vertex_array to GL_EXT_framebuffer_multisample, storing their flags and taking their entry points with wglGetProcAddress. Without GL_ARB_multitexture the texture unit count is 1. 0x58c580 takes wglGetExtensionsStringARB, then, for WGL_ARB_pixel_format, WGL_ARB_pbuffer and WGL_EXT_swap_control, a flag and their entry points: the pixel format pair, five pbuffer calls and wglSwapIntervalEXT.

The derivation is in the doc.

Callers 1

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.