Function ImGui::Image(const TRAP::Ref<TRAP::Graphics::Texture>&, const ImVec2&, const ImVec2&, const ImVec2&, const ImVec4&, const ImVec4&)#
Function Documentation#
-
void ImGui::Image(const TRAP::Ref<TRAP::Graphics::Texture> &image, const ImVec2 &size, const ImVec2 &uv0 = ImVec2(0, 0), const ImVec2 &uv1 = ImVec2(1, 1), const ImVec4 &tint_col = ImVec4(1, 1, 1, 1), const ImVec4 &border_col = ImVec4(0, 0, 0, 0))#
Draw an image with ImGui.
Remark
Headless mode: This function is not available in headless mode.
- Parameters:
image – Image to draw.
size – Size for the image.
uv0 – UV0 coordinates.
uv1 – UV1 coordinates.
tint_col – Tint color.
border_col – Border color.