benilla-re systems structs docs

CSimpleTexture::ScaleRectToTexCoords

function · ui · primitive

Address
0x770570 · 64 bytes, up to 0x7705af
Signature
void __thiscall (CSimpleTexture *this, float *rect)
Meaning
Shrinks a rectangle (bottom, left, top, right) to the texture coordinate spans |URx-ULx| and |LLy-ULy|
Confidence
verified, proof one
Finding
ui/texture#reading-the-image-and-the-coordinates
Test
ui::glue_770570_lerp

Finding: Reading the image and the coordinates in ui: texture colour and drawing

GetTexture() answers the name of the image without its extension, or nil when there is no image. A solid fill is named Solid Texture. GetTexCoord() answers the eight coordinates in the order top left, bottom left, top right, bottom right, each as a pair. SetTexCoord(minX, maxX, minY, maxY) sets the same four corners from a rectangle, and SetTexCoord(ULx, ULy, LLx, LLy, URx, URy, LRx, LRy) sets all eight; any other number of arguments raises Usage: %s:SetTexCoord(minX, maxX, minY, maxY) or SetTexCoord(ULx, ULy, LLx, LLy, URx, URy, LRx, LRy). When SetTexCoordModifiesRect is on, a change of coordinates recomputes the vertices from the resolved rectangle.

The derivation is in the doc.

Callers 3

Callees 0

None by a direct call or jump.

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