CGxDeviceOpenGl::GetScreenRect
function · gx · host
- Address
0x58d970· 180 bytes, up to0x58da23- 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}.
| slot | name | base | OpenGl | Direct3D | does |
|---|---|---|---|---|---|
+0x40 | RequestCapture | 0x592130 | base | base | arms a capture at the next present (capture.md) |
+0x44 | GetCapture | 0x5921a0 | base | base | returns the capture's width, height and buffer |
+0x48 | ReadPixels | pure | 0x58e0c0 | 0x599e90 | reads a rectangle of the colour buffer as 32-bit BGRA, top row first |
+0x4c | ReadDepths | pure | 0x58e220 | 0x59a130 | reads a rectangle of depths as floats; Direct3D writes zeros |
+0x50 | HandleWindowEvent | pure | 0x58ca60 | 0x59a1c0 | follows a window event (Window events) |
+0x54 | SetRenderTarget | 0x592230 | 0x58f5e0 | 0x59a2e0 | binds a texture, or none, as target 0 (colour) or 1 (depth) |
+0x58 | DeviceOverride | 0x592370 | 0x58e320 | 0x59a440 | applies an override (device.md) |
+0x5c | GetDrawRect | pure | 0x5a0180 | 0x5a1a30 | copies the draw rectangle +0x1ec |
+0x60 | GetScreenRect | pure | 0x58d970 | 0x5a1a60 | returns the draw rectangle in screen coordinates when windowed |
+0x64 | SetClearColor | 0x592400 | base | base | stores the clear colour at +0x324 |
+0x68 | PresentFrame | 0x592430 | 0x59ba10 | 0x5a1910 | draws the cursor and shows the frame; the base counts it (Frame counters) |
+0x6c | Clear | 0x592520 | 0x59b910 | 0x5a17d0 | clears 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
- __ftol crt
- 0x592220 gx
- CGxDevice::DrawRect gx
Calls and jumps by a bare address, from tables/calls.tsv.