CGxDevice::DrawCursor
function · gx · primitive
- Address
0x5956f0· 1256 bytes, up to0x595bd7- Signature
void __thiscall (CGxDevice *this)- Meaning
- Draws the shown software cursor as a 32 by 32 textured quad at the pointer minus the hot spot
- Confidence
- verified, proof one
- Finding
- gx/slots#cursor
- Test
gx::quad_corners_matches_binary
Finding: Cursor in gx: the device's virtual slots
The cursor is the 32 by 32 image at +0x2890 with its hot spot at +0x2888, +0x288c. It is a
hardware cursor when the format's hardware cursor byte (+5) is set and the device reports colour
cursors (+0x300); OpenGL never does. Otherwise the base draws it at each present while it is
shown (+0x2880, 1 at construction) and the pointer is inside the draw rectangle: a 32 by 32
textured quad whose top left is the pointer minus the hot spot, which Direct3D moves half a pixel
left and up. A hardware cursor gets its image at the present after the hot spot is set: the 32
rows go into its surface and to SetCursorProperties.
The derivation is in the doc.
Callers 1
Callees 18
- OsInputGetCursorPos core
- GxRsSetFloat gx
- GxRsSet gx
- GxRsSetObject gx
- GxRsPush gx
- GxRsPop gx
- GxBufLock gx
- GxBufUnlock gx
- GxBufCreate gx
- GxVertexBufBind gx
- GxPrimRenderOne gx
- SetDeviceProjection gx
- SetDeviceView gx
- GetDeviceProjection gx
- GetDeviceView gx
- 0x58b210 gx
- 0x58b220 gx
- CGxDevice::DrawRect gx
Calls and jumps by a bare address, from tables/calls.tsv.