GetTextureDeviceObject
function · gx · orchestration
- Address
0x44acf0· 82 bytes, up to0x44ad41- Signature
void * __fastcall (void *texture, uint32_t load, void *callback)- Meaning
- Returns a texture's device object, loading it first when asked; 0 for a null texture
- Confidence
- verified, proof one
- Finding
- models/render#texture-stages
Finding: Texture stages in models: drawing
An element of kind 0 to 2 binds a stage per texture of its unit. Stage k binds the instance
texture +0xa4[i], i the header's texture lookup entry at unit +0x10 + k, or 0 for a null
handle, combine 0x811f8c by blend mode (0, 1, 1, 1, 1, 5, 5), or for version 0x101 the array
+0x148 at k, and the scene float +0x14. Stages from the count up to 1 bind 0;
other kinds bind 0 with combine 1 on stages 0 and 1. A lookup entry of 0x8000 or more is inverted
into a texture frame state index, but zero-extended first, so the word read lies 0x100014 to
0x1ffff4 bytes before those states and indexes +0xa4 unbounded.
The derivation is in the doc.
Callers 48
- DrawPlainScreen loadingscreen
- DrawTaxiScreen loadingscreen
- DrawRoute loadingscreen
- DrawProgressBar loadingscreen
- UpdateCharacterComponent charactermodel
- DrawGroundReticle ui
- DrawOutdoorTile ui
- 0x4ebc00 ui
- DrawInteriorTile ui
- BlitInteriorTarget ui
- MinimapFrameRender ui
- BakePortrait ui
- SetSelectionCircleState objectlayer
- Rain::DrawPatterFixed lighting
- Rain::DrawDropsFixed lighting
- Rain::DrawPatterShader lighting
- Rain::DrawDropsShader lighting
- Snow::DrawShader lighting
- Snow::DrawFixed lighting
- Mists::Render lighting
- GetLiquidFrame terrain
- CChunkLiquid::DrawOcean terrain
- CChunkLiquid::DrawRiver terrain
- CChunkLiquid::DrawMagma terrain
- DrawDriftCloud terrain
- UpdateRipples terrain
- UpdateFootprints terrain
- CMapObj::IsReady models
- UploadDetailDoodadSlot terrain
- DrawExteriorGroupBatches terrain
- DrawInteriorGroupBatches terrain
- DrawGroupUnlitTextures terrain
- DrawGroupLiquid terrain
- CMapChunk::DrawLayers terrain
- CMapChunk::DrawLayersShader terrain
- PLAYERNAMEDESC::UpdatePlate playername
- WorldTextDrawIcons playername
- DrawBlobShadow lighting
- UpdateMinimap minimap
- M2DrawSetTextures models
- CM2Model::IsReady models
- CM2Model::SetReplaceableTexture models
- CSimpleTexture::GetDeviceTexture ui
- LightningBolt::Render gx
- CParticleEmitter2::Render models
- CRibbonEmitter::Render models
- DrawGlare lighting
- DrawDisc lighting
Callees 2
- TextureWaitLoaded gx
- SErrSetLastError storm
Calls and jumps by a bare address, from tables/calls.tsv.