1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-11 00:04:24 +00:00
imgui/examples
Konstantin Podsvirov b567ffe7e0 Add CMake project
Export Dear ImGui as CMake's ImGui package.

Options:
- ImGui_USER_CONFIG;
- ImGui_EXAMPLES;
- ImGui_BACKENDS;
- ImGui_MISC;
- ImGui_3RDPARTY;
- ImGui_OPENGL_LOADER;
- ImGui_FREETYPE;
- ImGui_TOOLS;
- ImGui_PACKAGE.

Export targets:
- ImGui::Core;
- ImGui::ImplGLUT;
- ImGui::ImplSDL2;
- ImGui::ImplSDLRenderer2;
- ImGui::ImplSDL3;
- ImGui::ImplSDLRenderer3;
- ImGui::ImplGlfw;
- ImGui::ImplOpenGL2;
- ImGui::ImplOpenGL3;
- ImGui::ImplVulkan;
- ImGui::FreeType;
- ImGui::StdLib;
- ImGui::BinaryToCompressedC.

Import targets from:
- build directory;
- installed package.

Examples:
- example_null;
- example_glut_opengl2
- example_sdl2_sdlrenderer2;
- example_sdl2_opengl2;
- example_sdl2_opengl3;
- example_sdl2_vulkan;
- example_sdl3_sdlrenderer3;
- example_sdl3_opengl3;
- example_sdl3_vulkan;
- example_glfw_opengl2;
- example_glfw_opengl3;
- example_glfw_vulkan.

Presets:
- vcpkg (require $env{VCPKG_ROOT});
- emscripten (inherits vcpkg and require $env{EMSCRIPTEN_ROOT}).
2025-06-25 21:37:37 +03:00
..
example_allegro5 Examples: remove explicit font sizes from AddFontXXX() calls. Add commented out style.FontSizeBase assignment. 2025-06-11 16:25:03 +02:00
example_android_opengl3 Examples: remove comments/references about baking and GetGlyphRangesJapanese(). 2025-06-11 16:11:03 +02:00
example_apple_metal Examples: remove explicit font sizes from AddFontXXX() calls. Add commented out style.FontSizeBase assignment. 2025-06-11 16:25:03 +02:00
example_apple_opengl2 Examples: remove explicit font sizes from AddFontXXX() calls. Add commented out style.FontSizeBase assignment. 2025-06-11 16:25:03 +02:00
example_glfw_metal Examples: remove explicit font sizes from AddFontXXX() calls. Add commented out style.FontSizeBase assignment. 2025-06-11 16:25:03 +02:00
example_glfw_opengl2 Add CMake project 2025-06-25 21:37:37 +03:00
example_glfw_opengl3 Add CMake project 2025-06-25 21:37:37 +03:00
example_glfw_vulkan Add CMake project 2025-06-25 21:37:37 +03:00
example_glfw_wgpu Examples: remove explicit font sizes from AddFontXXX() calls. Add commented out style.FontSizeBase assignment. 2025-06-11 16:25:03 +02:00
example_glut_opengl2 Add CMake project 2025-06-25 21:37:37 +03:00
example_null Add CMake project 2025-06-25 21:37:37 +03:00
example_sdl2_directx11 Examples: remove explicit font sizes from AddFontXXX() calls. Add commented out style.FontSizeBase assignment. 2025-06-11 16:25:03 +02:00
example_sdl2_metal Examples: remove explicit font sizes from AddFontXXX() calls. Add commented out style.FontSizeBase assignment. 2025-06-11 16:25:03 +02:00
example_sdl2_opengl2 Add CMake project 2025-06-25 21:37:37 +03:00
example_sdl2_opengl3 Add CMake project 2025-06-25 21:37:37 +03:00
example_sdl2_sdlrenderer2 Add CMake project 2025-06-25 21:37:37 +03:00
example_sdl2_vulkan Add CMake project 2025-06-25 21:37:37 +03:00
example_sdl3_opengl3 Add CMake project 2025-06-25 21:37:37 +03:00
example_sdl3_sdlgpu3 Examples: remove explicit font sizes from AddFontXXX() calls. Add commented out style.FontSizeBase assignment. 2025-06-11 16:25:03 +02:00
example_sdl3_sdlrenderer3 Add CMake project 2025-06-25 21:37:37 +03:00
example_sdl3_vulkan Add CMake project 2025-06-25 21:37:37 +03:00
example_win32_directx9 Examples: remove explicit font sizes from AddFontXXX() calls. Add commented out style.FontSizeBase assignment. 2025-06-11 16:25:03 +02:00
example_win32_directx10 Examples: remove explicit font sizes from AddFontXXX() calls. Add commented out style.FontSizeBase assignment. 2025-06-11 16:25:03 +02:00
example_win32_directx11 Examples: remove explicit font sizes from AddFontXXX() calls. Add commented out style.FontSizeBase assignment. 2025-06-11 16:25:03 +02:00
example_win32_directx12 Examples: remove explicit font sizes from AddFontXXX() calls. Add commented out style.FontSizeBase assignment. 2025-06-11 16:25:03 +02:00
example_win32_opengl3 Examples: remove explicit font sizes from AddFontXXX() calls. Add commented out style.FontSizeBase assignment. 2025-06-11 16:25:03 +02:00
example_win32_vulkan Examples: remove explicit font sizes from AddFontXXX() calls. Add commented out style.FontSizeBase assignment. 2025-06-11 16:25:03 +02:00
libs Docs: Fix some typos (#8505) 2025-03-21 16:23:09 +01:00
CMakeLists.txt Add CMake project 2025-06-25 21:37:37 +03:00
CMakePresets.json Add CMake project 2025-06-25 21:37:37 +03:00
imgui_examples.sln Backends: SDLGPU3: Added sdl_gpu backend. (#8163, #7998, #7988) 2025-01-09 16:55:03 +01:00
ImGuiConfig.cmake Add CMake project 2025-06-25 21:37:37 +03:00
ImGuiModule.cmake Add CMake project 2025-06-25 21:37:37 +03:00
ImGuiTargets.cmake Add CMake project 2025-06-25 21:37:37 +03:00
README.txt Examples: update all VS project files to VS2015. Update DX12 project Windows SDK to latest. 2021-06-08 17:08:49 +02:00
vcpkg.json Add CMake project 2025-06-25 21:37:37 +03:00

See BACKENDS and EXAMPLES files in the docs/ folder, or on the web at: https://github.com/ocornut/imgui/tree/master/docs

Backends = Helper code to facilitate integration with platforms/graphics api (used by Examples + should be used by your app).
Examples = Standalone applications showcasing integration with platforms/graphics api.

Some Examples have extra README files in their respective directory, please check them too!

Once Dear ImGui is running (in either examples or your own application/game/engine),
run and refer to ImGui::ShowDemoWindow() in imgui_demo.cpp for the end-user API.