You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ImGui::SliderFloat("float", &f, 0.0f, 1.0f); // Edit 1 float using a slider from 0.0f to 1.0f
110
+
ImGui::ColorEdit3("clear color", (float*)&clear_color); // Edit 3 floats representing a color
111
+
112
+
if (ImGui::Button("Button")) // Buttons return true when clicked (most widgets return true when edited/activated)
113
+
counter++;
114
+
ImGui::SameLine();
115
+
ImGui::Text("counter = %d", counter);
116
+
117
+
ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate);
118
+
ImGui::End();
119
+
}
120
+
121
+
// 3. Show another simple window.
122
+
if (show_another_window)
123
+
{
124
+
ImGui::Begin("Another Window", &show_another_window); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked)
0 commit comments