benilla-re systems structs docs

CSimpleTexture::CSimpleTexture

function · ui · primitive

Address
0x76fc40 · 193 bytes, up to 0x76fd00
Meaning
Builds a texture of a frame and layer with no image, the BLEND mode and the unit coordinates
Confidence
verified, proof one
Finding
ui/texture#draw-layer-and-blend-mode

Finding: Draw layer and blend mode in ui: texture colour and drawing

SetDrawLayer(layer) moves the texture to one of the five draw layers and GetDrawLayer() answers the layer's name. The names are BACKGROUND, BORDER, ARTWORK, OVERLAY and HIGHLIGHT, matched ignoring case. A texture starts on the layer its creator gives it with the blend mode BLEND. SetBlendMode(mode) takes DISABLE, ALPHAKEY, BLEND, ADD or MOD, which are modes 0 to 4 in the order 0 DISABLE, 1 ALPHAKEY, 2 BLEND, 3 ADD, 4 MOD, and GetBlendMode() answers the name, UNKNOWN for any other value. A name that is not a string or not in the list raises Usage: %s:SetDrawLayer("layer") or Usage: %s:SetBlendMode("mode") and changes nothing.

The derivation is in the doc.

Callers 17

Callees 2

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