IsWglExtensionListed
function · gx · host
- Address
0x59b850· 53 bytes, up to0x59b884- Signature
bool __fastcall (const char *name)- Meaning
- Returns whether a WGL extension is listed in the cached wglGetExtensionsStringARB string
- 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.