benilla-re systems structs docs

CGxDeviceOpenGl::ChoosePixelFormat

function · gx · host

Address
0x59dcf0 · 871 bytes, up to 0x59e056
Signature
uint32_t __fastcall (void *dc, const void *format)
Meaning
Builds the pixel format attribute list, chooses a format, checks it against the request and sets it
Confidence
verified, proof one
Finding
gx/device#opengl-pixel-format-choice

Finding: OpenGL pixel format choice in gx: the device

0x59dcf0(dc, format) (ecx is the device context, edx the format record) builds an attribute list for the entry point at 0xc0f2e0 (wglChoosePixelFormatARB, called with the list, no float list and room for one format): draw to window 0x2001, support OpenGL 0x2010, full acceleration 0x2027 for 0x2003, double buffer 0x2011, RGBA pixel type 0x2013, the red, green and blue sizes (0x2015, 0x2017, 0x2019), alpha 0x201b, depth 0x2022 and stencil 0x2023 sizes chosen from the format's bit-depth codes, and, when the multisample extension flag 0xc0f2ac is set and the format's sample count at +0x1c is above 1, sample buffers 0x2041 and samples 0x2042.

The derivation is in the doc.

Callers 1

Callees 3

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