benilla-re systems structs docs

SetFormatAndCreateContext

function · gx · host

Address
0x59da70 · 43 bytes, up to 0x59da9a
Signature
void * __fastcall (void *dc, void *format)
Meaning
Sets a pixel format on a device context and creates an OpenGL context on it, or returns 0
Confidence
verified, proof one
Finding
gx/device#opengl-context-creation

Finding: OpenGL context creation in gx: the device

0x59da70(dc, format) sets a pixel format on the device context with the chooser the previous entry names, 0x59dcf0 when 0xc0f23c is set and 0x59daa0 otherwise, passing both arguments on. When the chooser returns non-zero it returns wglCreateContext(dc); otherwise it returns 0 without creating one. Its one caller is 0x58c340.

The derivation is in the doc.

Callers 1

Callees 2

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