CGxDevice::CreateOnWindow
function · gx · orchestration
- Address
0x591fa0· 32 bytes, up to0x591fbf- Signature
uint32_t __thiscall (CGxDevice *this, void *window, void *format)- Meaning
- Copies the format into the device and returns 1
- Confidence
- verified, proof one
- Finding
- gx/slots#life-cycle-slots
Finding: Life cycle slots in gx: the device's virtual slots
The device is made with slot +0x20 (GxDevCreate) and torn down with slots +0x24 and
+0x18. Slot +0x1c makes it on a window the caller owns.
| slot | name | base | OpenGl | Direct3D | does |
|---|---|---|---|---|---|
+0x18 | DeletingDestructor | 0x591c90 | 0x58dfb0 | 0x598de0 | runs the destructor, frees the object when bit 0 of the argument is set and returns it |
+0x1c | CreateOnWindow | 0x591fa0 | 0x58cce0 | 0x599bc0 | makes the context or device on a given window and copies the format |
+0x20 | DeviceCreate | 0x591f80 | 0x58cbb0 | 0x599a60 | saves the gamma ramp, registers a window class and calls slot +0x28 |
+0x24 | DestroyDevice | 0x591fc0 | 0x58cda0 | 0x599c30 | releases what the create made, its own window and its class |
+0x28 | DeviceSetFormat | 0x591fd0 | 0x58ce40 | 0x599c90 | sets a format (device.md) |
+0x2c | SetTextureSkip | 0x592050 | 0x58d060 | 0x599da0 | stores the top mip levels to skip and recreates every texture |
+0x30 | SetGammaRamp | 0x592080 | 0x58d0c0 | 0x599e10 | copies a ramp to +0x328 and sends it in full screen |
+0x34 | SetGamma | 0x592060 | 0x58d080 | 0x599dc0 | builds +0x328 from a gamma and sends it in full screen |
+0x38 | SetFullColorTextures | 0x5920a0 | 0x58d280 | 0x599e60 | stores whether textures are made 32-bit and recreates every texture |
+0x3c | GetWindow | pure | 0x58d2a0 | 0x599e80 | returns the window, +0x39e4 or +0x3894 |
The derivation is in the doc.
Callers 2
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.