ImGui Namespace Reference


void IMGUI_API Image (nap::Texture2D &texture, const ImVec2 &size, const ImVec2 &uv0=ImVec2(0, 1), const ImVec2 &uv1=ImVec2(1, 0), const ImVec4 &tint_col=ImVec4(1, 1, 1, 1), const ImVec4 &border_col=ImVec4(0, 0, 0, 0))

Detailed Description

This file contains NAP overrides for popular IMGui functions These utility functions allow you to use common NAP objects in conjunction with IMGui All the functions in this file follow the IMGui style and naming conventions

Function Documentation

◆ Image()

void IMGUI_API ImGui::Image ( nap::Texture2D texture,
const ImVec2 &  size,
const ImVec2 &  uv0 = ImVec2(0, 1),
const ImVec2 &  uv1 = ImVec2(1, 0),
const ImVec4 &  tint_col = ImVec4(1, 1, 1, 1),
const ImVec4 &  border_col = ImVec4(0, 0, 0, 0) 

Displays a NAP 2D texture as an IMGUI image

texturethe texture to display in IMGUI
sizedisplay size of the texture in pixels
uv0the min uv coordinates, defaults to lower left corner
uv1the max uv coordinates, defaults to upper right corner
tint_colused to tint the displayed texture
border_colof the border of the image