CGxDevice::CreateCursor
function · gx · primitive
- Address
0x595640· 130 bytes, up to0x5956c1- Signature
void __thiscall (CGxDevice *this, void *format)- Meaning
- Picks the hardware cursor from the format and the caps, else makes the 32 by 32 software cursor texture
- Confidence
- verified, proof one
- Finding
- gx/slots#texture-state-and-cursor-slots
Finding: Texture, state and cursor slots in gx: the device's virtual slots
Slot +0 uploads a texture whose dirty byte +0 is set, and the base counts the upload. Slot
+0x18, not slot +0, is the deleting destructor (Life cycle slots).
| slot | name | base | OpenGl | Direct3D | does |
|---|---|---|---|---|---|
+0x00 | LoadTexture | 0x594c80 | 0x59f5b0 | 0x5a0d70 | uploads a dirty texture; the base adds 1 to +0x8c and the dirty rectangle's bytes to +0x90, then clears the byte |
+0x04 | ApplyRenderState | pure | 0x59d350 | 0x5a2f00 | applies one render state (renderstate.md) |
+0x08 | ApplyShaderParams | pure | 0x59ee60 | 0x5a0420 | uploads each changed parameter of a shader's list, or every one when forced |
+0x0c | CreateCursor | 0x595640 | base | 0x59a960 | picks the hardware or the software cursor and makes its 32 by 32 texture |
+0x10 | DestroyCursor | 0x5956d0 | base | 0x59a9e0 | frees the cursor texture |
+0x14 | DrawCursor | 0x5956f0 | base | 0x59a870 | draws the software cursor, or hands the hardware cursor its image (Cursor) |
The derivation is in the doc.
Callers 1
Callees 2
Calls and jumps by a bare address, from tables/calls.tsv.