TextureCreateWithCallback
function · gx · orchestration
- Address
0x449bf0· 195 bytes, up to0x449cb2- Signature
void * __fastcall (uint32_t w, uint32_t h, uint32_t format, uint32_t typeCode, uint32_t flt, void *owner, void *cb, const char *name, uint32_t force)- Meaning
- Creates a named texture whose pixels the caller's callback supplies and returns its handle
- Confidence
- verified, proof one
- Finding
- gx/textures#texture-creation-variants
Finding: Texture creation variants in gx: textures
0x449b30(w, h, format, typeCode, filter, force), 0x449bf0(w, h, format, typeCode, filter, owner, callback, name, force) and 0x449cc0(name, w, h, format, typeCode, filter, force) create a texture with no file. format is the device texture's GxTex format and typeCode the pixel type code of the data the owner supplies. Each allocates a CTexture, builds the flags word with 0x449ae0, gets a device texture from 0x448450, and stores the device texture, the type code at +0x118, the size, the format at +0x14c and the flags. The callback is the no-op 0x448830 except in 0x449bf0, which passes the caller's callback and owner. The name is Unique Texture (0x835624) for 0x449b30, and the given name or Unique Texture No Name (0x835634) for the others.
The derivation is in the doc.
Callers 6
- TabardModel::GetUpperEmblemTexture ui
- TabardModel::GetLowerEmblemTexture ui
- BakePortrait ui
- SetPortraitTexture ui
- CSimpleColorSelect::SetWheelTexture ui
- CSimpleColorSelect::SetValueTexture ui
Callees 6
- CreateHandle base
- CTexture::CTexture gx
- TexturePoolAcquire gx
- TextureMakeFlags gx
- SMemAlloc storm
- SStrCopy storm
Calls and jumps by a bare address, from tables/calls.tsv.