GetPortraitAlphaMask
function · ui · primitive
- Address
0x5258a0· 513 bytes, up to0x525aa0- Signature
void * __fastcall (uint32_t size)- Meaning
- Returns the cached one-byte-per-texel alpha mask, loading the portrait mask image on first use
- Confidence
- verified, proof one
- Finding
- ui/portraittextures#the-circular-mask
Finding: The circular mask in ui: portrait textures
0x5258a0(size) returns the alpha template for portraits, one byte per texel, size squared of them. Size 0x40 reads
Interface\CharacterFrame\TempPortraitAlphaMaskSmall.tga, and when that fails ...Small.blp (the blue byte of each
decoded texel); size 0x80 reads TempPortraitAlphaMask the same way. If both fail it fills 255 bytes with the low byte
of the texel count and caches the result; the template is never retried. Both callers, the 2D sink and the 3D unit
portrait bake 0x524f60, pass 0x40. A block of DXT colour 0xffff decodes to 248, 252, 248, because the client shifts
the 5 and 6 bit channels left instead of scaling them to 255.
The derivation is in the doc.
Callers 2
Callees 10
- _atexit crt
- 0x5268b0 ui
- TgaClose image
- TgaOpen image
- TgaDecode image
- TgaRequirePixels image
- BlpReset image
- BlpOpen image
- BlpDecodeLevel image
- BlpFreeScratch image
Calls and jumps by a bare address, from tables/calls.tsv.