Documentation

UI::DrawList::AddImage

Method in DrawList

void AddImage(UI::Texture@ texture, const vec2&in pos)

Draws a texture.

UI::Texture@ texture

vec2 pos

void AddImage(UI::Texture@ texture, const vec2&in pos, const vec2&in size)

Draws a texture scaled to a specific size.

UI::Texture@ texture

vec2 pos

vec2 size

void AddImage(UI::Texture@ texture, const vec2&in pos, const vec2&in size, uint color)

Draws a texture scaled to a specific size and blend color (in 0xRRGGBBAA hexadecimal format).

UI::Texture@ texture

vec2 pos

vec2 size

uint color

void AddImage(UI::Texture@ texture, const vec2&in pos, const vec2&in size, uint color, float rotation, const vec2&in origin = vec2 ( 0 , 0 ))

Draws a texture scaled to a specific size, blend color (in 0xRRGGBBAA hexadecimal format), and rotation around an origin.

UI::Texture@ texture

vec2 pos

vec2 size

uint color

float rotation

vec2 origin

void AddImage(UI::Texture@ texture, const vec2&in pos, const vec2&in size, uint color, const vec4&in uv)

Draws a texture with the given UV pixel offset.

UI::Texture@ texture

vec2 pos

vec2 size

uint color

vec4 uv