CGxDevice::CGxDevice
function · gx · orchestration
- Address
0x5916e0· 1456 bytes, up to0x591c8f- Signature
void * __thiscall (CGxDevice *this)- Meaning
- Constructs the device base: clears its fields, sets vtable 0x809da0, tag 2, caps word 0x3ff and 1.0 gamma ramps
- Confidence
- verified, proof one
- Finding
- gx/device#device-object
Finding: Device object in gx: the device
The base constructor 0x5916e0 zeroes the object, stores vtable 0x809da0 (whose unimplemented slots point at the pure-call stub 0x40a2d7) and tag 2 at +0x1fc; CGxDeviceD3d::CGxDeviceD3d (0x598ce0) then stores vtable 0x809ef8, tag 1 and 0 at +0x258, and CGxDeviceOpenGl (0x58dda0) vtable 0x809af8, tag 0 and 1 at +0x258. The accessor 0x589ca0 returns the tag. Fields: +0x204 a 14-dword copy of the format record, +0x23c the capability block, +0x2824 the render state entries, +0x328 and +0x928 the two gamma ramps, +0x24fc four light records, +0x2864 the capture flag. Direct3D adds +0x3894 the window, +0x38a4 the IDirect3D9, +0x38a8 the IDirect3DDevice9 and +0x38ac its caps.
The derivation is in the doc.
Callers 2
Callees 14
- OsGetCpuCapabilities os
- SetVector3 spline
- 0x5898d0 gx
- 0x5912e0 gx
- 0x5912f0 gx
- GammaRampBuild gx
- 0x591cc0 gx
- 0x591ef0 gx
- CGxDevice::InitRenderStates gx
- 0x595fc0 gx
- 0x596170 gx
- 0x597340 gx
- 0x597350 gx
- SetPlane gx
Calls and jumps by a bare address, from tables/calls.tsv.