benilla-re systems structs docs

CGxDeviceOpenGl::SetGamma

function · gx · host

Address
0x58d080 · 50 bytes, up to 0x58d0b1
Signature
void __thiscall (CGxDeviceOpenGl *this, float gamma)
Meaning
Builds the working gamma ramp and sends it with SetDeviceGammaRamp unless windowed
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.

slotnamebaseOpenGlDirect3Ddoes
+0x18DeletingDestructor0x591c900x58dfb00x598de0runs the destructor, frees the object when bit 0 of the argument is set and returns it
+0x1cCreateOnWindow0x591fa00x58cce00x599bc0makes the context or device on a given window and copies the format
+0x20DeviceCreate0x591f800x58cbb00x599a60saves the gamma ramp, registers a window class and calls slot +0x28
+0x24DestroyDevice0x591fc00x58cda00x599c30releases what the create made, its own window and its class
+0x28DeviceSetFormat0x591fd00x58ce400x599c90sets a format (device.md)
+0x2cSetTextureSkip0x5920500x58d0600x599da0stores the top mip levels to skip and recreates every texture
+0x30SetGammaRamp0x5920800x58d0c00x599e10copies a ramp to +0x328 and sends it in full screen
+0x34SetGamma0x5920600x58d0800x599dc0builds +0x328 from a gamma and sends it in full screen
+0x38SetFullColorTextures0x5920a00x58d2800x599e60stores whether textures are made 32-bit and recreates every texture
+0x3cGetWindowpure0x58d2a00x599e80returns the window, +0x39e4 or +0x3894

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 1

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