benilla-re systems structs docs

CSimpleBackdrop::ApplyTexCoords

function · ui · primitive

Address
0x77f0c0 · 833 bytes, up to 0x77f400
Signature
void __thiscall (CSimpleBackdrop *this, float *rect)
Meaning
Computes the edge and tile texture coordinates from the frame rectangle and edge size and applies the colours
Confidence
verified, proof one
Finding
ui/backdrop#the-edge-file
Test
ui::glue_geom_77f0c0_scale_offset_divide

Finding: The edge file in ui: the frame backdrop

The edge file is eight slices across its width, each 0.125 wide, in the order left, right, top, bottom, top left, top right, bottom left, bottom right. A texture's vertices run top left, bottom left, top right, bottom right. A side strip repeats its slice along its length with a period of one edge size: the left and right slices run in v from 0 to the repeat count, and the top and bottom slices are turned, with u across the strip and v from the repeat count at the left end to 0 at the right. A corner shows its slice whole. A side loads its file with the wrap flag on and a corner with it off.

The derivation is in the doc.

Callers 2

Callees 5

Calls and jumps by a bare address, from tables/calls.tsv.