Texture::GetVertexColor
function · ui · primitive
- Address
0x79aa50· 376 bytes, up to0x79abc7- Signature
int __fastcall (lua_State *L)- Meaning
- Answers the texture's vertex colour as r, g, b, a, or white unless it holds one entry
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/texture#two-colour-stores
- Test
ui::luabind_79a_get_vertex_color,ui::luabind_79a_normalize_full_domain
Finding: Two colour stores in ui: texture colour and drawing
A texture has two colour inputs that never overwrite each other: the image at +0xcc, and a vertex colour that
multiplies it. <Color> and SetTexture(r, g, b, a) replace the image with a solid one; SetVertexColor and
SetAlpha write the vertex colour. GetVertexColor answers opaque white unless the vertex colour holds exactly one entry, so a
vertex colour of two or more entries, a gradient, reads back white as well as an empty one.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 7
- lua_settop lua
- lua_type lua
- lua_touserdata lua
- lua_pushnumber lua
- lua_rawgeti lua
- luaL_error lua
- CScriptRegion::GetVertexColor ui
Calls and jumps by a bare address, from tables/calls.tsv.