Searched refs:my_tex_h (Results 1 - 1 of 1) sorted by relevance

/xsrc/external/mit/MesaLib.old/dist/src/imgui/
H A Dimgui_demo.cpp730 float my_tex_h = (float)io.Fonts->TexHeight; local in function:ShowDemoWindowWidgets
732 ImGui::Text("%.0fx%.0f", my_tex_w, my_tex_h);
734 ImGui::Image(my_tex_id, ImVec2(my_tex_w, my_tex_h), ImVec2(0,0), ImVec2(1,1), ImColor(255,255,255,255), ImColor(255,255,255,128));
740 float region_y = io.MousePos.y - pos.y - region_sz * 0.5f; if (region_y < 0.0f) region_y = 0.0f; else if (region_y > my_tex_h - region_sz) region_y = my_tex_h - region_sz;
744 ImVec2 uv0 = ImVec2((region_x) / my_tex_w, (region_y) / my_tex_h);
745 ImVec2 uv1 = ImVec2((region_x + region_sz) / my_tex_w, (region_y + region_sz) / my_tex_h);
755 if (ImGui::ImageButton(my_tex_id, ImVec2(32,32), ImVec2(0,0), ImVec2(32.0f/my_tex_w,32/my_tex_h), frame_padding, ImColor(0,0,0,255)))

Completed in 134 milliseconds