CTexture::CTexture
function · gx · orchestration
- Address
0x448190· 266 bytes, up to0x448299- Signature
void * __thiscall (CTexture *this)- Meaning
- Constructs a texture object: vtable 0x8026b4, empty name, flags and list links, then links it on the texture list
- Confidence
- verified, proof one
- Finding
- gx/textures#texture-objects
Finding: Texture objects in gx: textures
A CTexture is 0x15c bytes, allocated under the tag HTEXTURE (0x835604) and wrapped by CreateHandle. The constructor 0x448190 stores the vtable 0x8026b4 (slot 0 the deleting destructor 0x4482b0, slot 1 0x4482a0, which returns this + 0xc). Fields: +0xc name (260 bytes), +0x110 flags (bit 0 set when the image has no alpha, bit 1 set when the caller's file flag was non-zero), +0x114 mip levels dropped, +0x118 pixel type code (below), +0x11c alpha bits, +0x120 decoded mip buffer, +0x138 async load record, +0x140 device texture, +0x144, +0x148 width and height after the drop, +0x14c the GxTex format of the device texture, +0x150 the GxTex flags word.
The derivation is in the doc.
Callers 8
- TextureCreateFromFile gx
- 0x449a10 gx
- TextureCreateBlank gx
- TextureCreateWithCallback gx
- TextureCreateNamedBlank gx
- TextureCreateFromTga gx
- TextureCreateFromBlp gx
- TextureCreateSolid gx
Callees 1
Calls and jumps by a bare address, from tables/calls.tsv.