GxEnumerateFormats
function · gx · primitive
- Address
0x589a00· 135 bytes, up to0x589a86- Signature
uint32_t __fastcall (uint32_t api, void *list)- Meaning
- Clears a format list and fills it from the OpenGL or Direct3D backend, returning whether it holds one
- Confidence
- verified, proof one
- Finding
- gx/device#format-lists
Finding: Format lists in gx: the device
0x589a00(api, list) clears the list, reserves room for 256 records, sets its growth step to 64,
and fills it from the backend api names: 0 OpenGL, 1 Direct3D, any other none. It returns whether
the list holds a record. The OpenGL fill opens a hidden window of class adfmt, takes its first
suitable pixel format and a context as the probe does (opengl.md), and lists the formats through
wglGetPixelFormatAttribivARB when WGL_ARB_pixel_format is listed, else through
DescribePixelFormat, then puts the previous context back.
The derivation is in the doc.
Callers 1
Callees 4
Calls and jumps by a bare address, from tables/calls.tsv.