benilla-re systems structs docs

FindExtensionName

function · gx · primitive

Address
0x59b7f0 · 92 bytes, up to 0x59b84b
Signature
bool __fastcall (const char *list, const char *name)
Meaning
Returns whether a name begins a space-separated word of a list, ignoring case
Confidence
verified, proof one
Finding
gx/opengl#extension-tests

Finding: Extension tests in gx: the OpenGL context and extensions

An extension is listed when its name starts a space-separated word of the extension string, compared ignoring case over the name's length only, so GL_EXT_texture matches GL_EXT_texture3D. For a GL extension the test first looks the name up in the environment: a variable of that name whose text converts to 0 makes the extension absent. The GL string is glGetString(GL_EXTENSIONS); the WGL string comes from wglGetExtensionsStringARB on the current device context, and with no such entry point every WGL extension is absent. Both strings are cached until the context is released.

The derivation is in the doc.

Callers 2

Callees 1

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