GxRsSetObject
function · gx · orchestration
- Address
0x589e80· 14 bytes, up to0x589e8d- Signature
void __fastcall (uint32_t id, void *object)- Meaning
- Sets an object render state, a stage texture or a program, through the device
- Confidence
- verified, proof one
- Finding
- gx/renderstate#cache-dirty-list-and-stack
Finding: Cache, dirty list and stack in gx: render state
An entry holds four value dwords (+0 to +0xc), a stack generation (+0x10) and a dirty flag (+0x14). The setters (0x593710 integers, 0x593770 floats, 0x5937b0, 0x5937e0 and 0x593840 other values) compare with the cached value and on a change call 0x594010 and store. 0x594010 appends the id to the dirty list ([dev+0x2c], count [dev+0x28]) once, and when the entry's generation differs from the device's ([dev+0x18]) pushes the old value as an undo record. Setting id 7 also sets id 8 to 0x85ad20[mode].
The derivation is in the doc.
Callers 64
- DrawPlainScreen loadingscreen
- DrawTaxiScreen loadingscreen
- DrawRoute loadingscreen
- DrawProgressBar loadingscreen
- DrawGroundReticle ui
- DrawScreenFade ui
- DrawOutdoorTile ui
- 0x4ebc00 ui
- DrawInteriorTile ui
- BlitInteriorTarget ui
- MinimapFrameRender ui
- CGxDevice::DrawCursor gx
- CGxStringBatch::DrawRun font
- AtlasPage::Dump font
- SetSelectionCircleState objectlayer
- Rain::DrawPatterFixed lighting
- Rain::DrawDropsFixed lighting
- Rain::DrawPatterShader lighting
- Rain::DrawDropsShader lighting
- Snow::DrawShader lighting
- Snow::DrawFixed lighting
- Sand::DrawShader lighting
- Mists::Render lighting
- DrawOceanPass terrain
- DrawRiverPass terrain
- CChunkLiquid::DrawOcean terrain
- CChunkLiquid::DrawRiver terrain
- CChunkLiquid::DrawMagma terrain
- DrawDriftCloud terrain
- UpdateRipples terrain
- UpdateFootprints terrain
- DrawDetailDoodadBatch terrain
- UploadDetailDoodadSlot terrain
- DrawExteriorGroupBatches terrain
- DrawInteriorGroupBatches terrain
- DrawGroupVertexColors terrain
- DrawGroupUnlitTextures terrain
- DrawGroupLiquid terrain
- DrawExteriorGroupLiquid terrain
- CMapChunk::DrawLayers terrain
- CMapChunk::DrawLayersShader terrain
- CMapChunk::DrawFlat terrain
- PLAYERNAMEDESC::UpdatePlate playername
- WorldTextDrawIcons playername
- RenderBox4Pass ffxeffects
- RenderGauss4Pass ffxeffects
- RenderGlowPass ffxeffects
- RenderGlowWavePass ffxeffects
- RenderDeathPass ffxeffects
- RenderDeathCombinerPass ffxeffects
- DrawDecalBatches lighting
- DrawBlobShadow lighting
- M2DrawSetTextures models
- M2DrawBeginEmitter models
- M2DrawBatch models
- M2DrawBatchedRun models
- DrawBatch ui
- DrawMovie ui
- LightningBolt::Render gx
- CParticleEmitter2::Render models
- CRibbonEmitter::Render models
- DrawGlare lighting
- DrawDisc lighting
- DrawClouds lighting
Callees 1
Calls and jumps by a bare address, from tables/calls.tsv.