benilla-re systems structs docs

CGxDevice::CreateCursor

function · gx · primitive

Address
0x595640 · 130 bytes, up to 0x5956c1
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).

slotnamebaseOpenGlDirect3Ddoes
+0x00LoadTexture0x594c800x59f5b00x5a0d70uploads a dirty texture; the base adds 1 to +0x8c and the dirty rectangle's bytes to +0x90, then clears the byte
+0x04ApplyRenderStatepure0x59d3500x5a2f00applies one render state (renderstate.md)
+0x08ApplyShaderParamspure0x59ee600x5a0420uploads each changed parameter of a shader's list, or every one when forced
+0x0cCreateCursor0x595640base0x59a960picks the hardware or the software cursor and makes its 32 by 32 texture
+0x10DestroyCursor0x5956d0base0x59a9e0frees the cursor texture
+0x14DrawCursor0x5956f0base0x59a870draws 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.