Documentation

UI::ImageWithBg

Function

void UI::ImageWithBg(Texture@ texture, const vec2&in size, const vec2&in uv0 = vec2(0, 0), const vec2&in uv1 = vec2(1, 1), const vec4&in bg_col = vec4(), const vec4&in tint_col = vec4(1, 1, 1, 1))

An image scaled to a specific size, uv coordinates, background color, and tint color.

UI::Texture@ texture

vec2 size

vec2 uv0

vec2 uv1

vec4 bg_col

vec4 tint_col