benilla-re systems structs docs

CGxDeviceOpenGl::EnumerateModes

function · gx · host

Address
0x58bd40 · 254 bytes, up to 0x58be3d
Signature
uint32_t __thiscall (CGxDeviceOpenGl *this)
Meaning
Lists the desktop modes of 640 by 480 or more at 16 bits or more and sorts them by area
Confidence
verified, proof one
Finding
gx/device#display-modes

Finding: Display modes in gx: the device

0x58b740(list) fills a list of device format records (0x38 bytes) for Direct3D: for each of three adapter display formats (0x85a820: 0x17, 0x16, 0x15) it walks the adapter's modes (GetAdapterModeCount, EnumAdapterModes) and, for each depth format of 0x85a82c (0x50, 0x4d, 0x4b, 0x47) that CheckDeviceFormat accepts as a depth-stencil surface, and each sample count of 0x85a83c (0, 2, 4, ..., 16) that CheckDeviceMultiSampleType accepts for the display and the depth format, appends a record through 0x591220, which adds it when no equal one is held. 0x58bd40(list) does the OpenGL case from EnumDisplaySettings, keeping modes of 640 by 480 or more at 16 bits or more, and sorts them by area with 0x58be40.

The derivation is in the doc.

Callers 1

Callees 2

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