benilla-re systems structs docs

CGxDeviceD3d::LoadAdapter

function · gx · host

Address
0x5992a0 · 139 bytes, up to 0x59932a
Signature
uint32_t __thiscall (CGxDeviceD3d *this)
Meaning
Loads Direct3D and reads the adapter's caps and display mode into the device
Confidence
verified, proof one
Finding
gx/device#direct3d-device-start

Finding: Direct3D device start in gx: the device

Slot +0x20 of CGxDeviceD3d (0x599a60, arguments the window procedure and the format) saves the screen's gamma ramp (GetDeviceGammaRamp into +0x928, copied to +0x328), registers the window class GxWindowClassD3d (0x599b30, icon BlizzardIcon.ico, cursor BlizzardCursor.cur, procedure 0x598750) and runs 0x5992a0, which loads d3d9.dll (0x598e40, Direct3DCreate9(32)), reads GetDeviceCaps into +0x38ac and GetAdapterDisplayMode into +0x3a24. It stores the window procedure at +0xf28 and calls slot +0x28 (0x599c90) with the format: that copies the format to +0x204, creates the window (0x598b50), creates the device (0x5995c0) and shows the window.

The derivation is in the doc.

Callers 2

Callees 2

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