TextureCreate
function · gx · orchestration
- Address
0x449d90· 281 bytes, up to0x449ea8- Signature
void * __fastcall (const char *name, void *log, uint32_t filterIn, uint32_t force, uint32_t fileFlag)- Meaning
- Returns the texture cached under a name and flags, else loads the BLP or TGA, else the green solid texture
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- gx/textures#texture-creation
Finding: Texture creation in gx: textures
0x449d90(name, log, filterIn, force, fileFlag) returns a handle; log is a status object (vtable slot +0xc takes severity, format, arguments). A null or empty name, or a null log, sets Storm error 0x57 and returns 0. Otherwise it splits the name (Texture name split), builds the flags word (Texture flags word) and looks the stripped name and flags up in the hash; a hit is returned through 0x41af10, which adds one to the handle's count at +4: the caller owns a new reference. A miss tries the candidate files (Texture name candidates), caches the loaded texture under the stripped name and flags, and returns it. When every candidate fails it tells log and returns the solid texture (Texture load failure).
The derivation is in the doc.
Callers 37
- CreateLoadingScreen loadingscreen
- ResolveLoadingArt loadingscreen
- LoadRouteTextures loadingscreen
- ApplyBodySkin charactermodel
- BindHairTexture charactermodel
- LoadBakedSkin charactermodel
- ApplyCreatureDisplay charactermodel
- AttachItemModelFile charactermodel
- ApplyCloakTexture charactermodel
- CreateLooseItemModel charactermodel
- CGWorldFrame::CGWorldFrame ui
- LoadTaxiMapTexture ui
- LoadMinimapTextures ui
- Minimap::SetMaskTexture ui
- Minimap::SetIconTexture ui
- Minimap::SetBlipTexture ui
- CGGameObject_C::ApplyArtKit objectlayer
- InitializeSelectionCircle objectlayer
- Rain::Rain lighting
- Snow::Snow lighting
- Mists::Mists lighting
- GetLiquidFrame terrain
- SetDriftCloudTexture terrain
- InitRipples terrain
- CreateFootprintTextures terrain
- LoadMapTexture models
- PlayerNameInitialize playername
- WorldTextInitialize playername
- InitShadows lighting
- LoadInteriorTile minimap
- LoadOutdoorTiles minimap
- CreateLightningObjects spell
- CM2Shared::InitializeView models
- SimpleModelReplaceTexture ui
- CSimpleTexture::SetTexture ui
- LoadGlare lighting
- LoadDisc lighting
Callees 10
- TextureSplitExtension gx
- TextureMakeFlags gx
- TextureHashFind gx
- TextureHashInsert gx
- TextureLogNotLoaded gx
- TextureCreateFromTga gx
- TextureCreateFromBlp gx
- TextureCreateSolid gx
- SStrCopy storm
- SErrSetLastError storm
Calls and jumps by a bare address, from tables/calls.tsv.