benilla-re systems structs docs

CGxDeviceOpenGl::EnumerateFormats

function · gx · host

Address
0x58d2b0 · 435 bytes, up to 0x58d462
Signature
uint32_t __fastcall (void *list)
Meaning
Lists the OpenGL pixel formats through a hidden window and a temporary context
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 3

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