benilla-re systems structs docs

CGxDeviceOpenGl::GetScreenRect

function · gx · host

Address
0x58d970 · 180 bytes, up to 0x58da23
Signature
void __thiscall (CGxDeviceOpenGl *this, float *rect)
Meaning
Returns the draw rectangle in screen coordinates when windowed, else the draw rectangle
Confidence
verified, proof one
Finding
gx/slots#capture-window-and-frame-slots

Finding: Capture, window and frame slots in gx: the device's virtual slots

These slots read the frame back, follow the window, bind render targets and end the frame. Rectangles of floats are {top, left, bottom, right}.

slotnamebaseOpenGlDirect3Ddoes
+0x40RequestCapture0x592130basebasearms a capture at the next present (capture.md)
+0x44GetCapture0x5921a0basebasereturns the capture's width, height and buffer
+0x48ReadPixelspure0x58e0c00x599e90reads a rectangle of the colour buffer as 32-bit BGRA, top row first
+0x4cReadDepthspure0x58e2200x59a130reads a rectangle of depths as floats; Direct3D writes zeros
+0x50HandleWindowEventpure0x58ca600x59a1c0follows a window event (Window events)
+0x54SetRenderTarget0x5922300x58f5e00x59a2e0binds a texture, or none, as target 0 (colour) or 1 (depth)
+0x58DeviceOverride0x5923700x58e3200x59a440applies an override (device.md)
+0x5cGetDrawRectpure0x5a01800x5a1a30copies the draw rectangle +0x1ec
+0x60GetScreenRectpure0x58d9700x5a1a60returns the draw rectangle in screen coordinates when windowed
+0x64SetClearColor0x592400basebasestores the clear colour at +0x324
+0x68PresentFrame0x5924300x59ba100x5a1910draws the cursor and shows the frame; the base counts it (Frame counters)
+0x6cClear0x5925200x59b9100x5a17d0clears the buffers a mask names; the base does nothing

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 3

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