benilla-re systems structs docs

CGxDeviceOpenGl::GetPixelFormatAttrib

function · gx · orchestration

Address
0x59e070 · 27 bytes, up to 0x59e08a
Signature
uint32_t __fastcall (void *dc, uint32_t format, uint32_t attrib, uint32_t *value)
Meaning
Queries one pixel format attribute through the ARB entry point
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 0

None by a direct call or jump.

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