summaryrefslogtreecommitdiff
path: root/imgui-1.92.1/examples/example_null/main.cpp
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2025-08-09 08:35:03 +0200
committerAldrik Ramaekers <aldrikboy@gmail.com>2025-08-09 08:35:03 +0200
commit432f24319319fe040e142059eb83279c53f90ab8 (patch)
tree5631eb0eb3a46d086070e8398d9080ff681133ac /imgui-1.92.1/examples/example_null/main.cpp
parent5d34aff5888d3f0c624251f15bedb96c347978d6 (diff)
refactor 2
Diffstat (limited to 'imgui-1.92.1/examples/example_null/main.cpp')
-rw-r--r--imgui-1.92.1/examples/example_null/main.cpp38
1 files changed, 0 insertions, 38 deletions
diff --git a/imgui-1.92.1/examples/example_null/main.cpp b/imgui-1.92.1/examples/example_null/main.cpp
deleted file mode 100644
index 460f33c..0000000
--- a/imgui-1.92.1/examples/example_null/main.cpp
+++ /dev/null
@@ -1,38 +0,0 @@
-// dear imgui: "null" example application
-// (compile and link imgui, create context, run headless with NO INPUTS, NO GRAPHICS OUTPUT)
-// This is useful to test building, but you cannot interact with anything here!
-#include "imgui.h"
-#include <stdio.h>
-
-int main(int, char**)
-{
- IMGUI_CHECKVERSION();
- ImGui::CreateContext();
- ImGuiIO& io = ImGui::GetIO();
-
- // Build atlas
- //unsigned char* tex_pixels = nullptr;
- //int tex_w, tex_h;
- //io.Fonts->GetTexDataAsRGBA32(&tex_pixels, &tex_w, &tex_h);
- io.BackendFlags |= ImGuiBackendFlags_RendererHasTextures;
-
- for (int n = 0; n < 20; n++)
- {
- printf("NewFrame() %d\n", n);
- io.DisplaySize = ImVec2(1920, 1080);
- io.DeltaTime = 1.0f / 60.0f;
- ImGui::NewFrame();
-
- static float f = 0.0f;
- ImGui::Text("Hello, world!");
- ImGui::SliderFloat("float", &f, 0.0f, 1.0f);
- ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate);
- ImGui::ShowDemoWindow(nullptr);
-
- ImGui::Render();
- }
-
- printf("DestroyContext()\n");
- ImGui::DestroyContext();
- return 0;
-}