Minimal, high-performance DirectX 11 + Dear ImGui application skeleton for Windows.
- ⚡ Ultra-minimal: Clean, modular C++17 codebase
- 🖼️ DirectX 11: Modern graphics backend
- 🎯 Win32 API: Native window management
- 🎨 Dear ImGui: Immediate-mode GUI, easily extensible
- 🧩 Modular: Window, Renderer, and Interface classes
- 🛠️ Easy Build: CMake + batch script for one-command setup
- Windows
- Visual Studio (with C++ Desktop Development tools)
- DirectX SDK (June 2010)
- CMake
build.bat
Or manually:
mkdir build
cd build
cmake -G "Visual Studio 17 2022" -A x64 ..
cmake --build . --config Release
The executable will be in build/Release/
.
wind/
├── main.cpp # Entry point, WinMain loop
├── utils/
│ ├── window.* # Window creation & management
│ ├── renderer.* # DirectX 11 rendering
│ └── interface.* # ImGui interface logic
├── imgui/ # Dear ImGui core & backends
├── build.bat # Windows build script
├── CMakeLists.txt # CMake project file
└── .gitignore
- Add your ImGui widgets in
utils/interface.cpp
- Customize rendering in
utils/renderer.cpp
- Use the modular structure to add new features or backends
- Dear ImGui by Omar Cornut
- Microsoft DirectX 11
Copyright (c) hiraeeth
Everyone is free to copy, modify, and use this code for any purpose, without any requirement to credit the original author.
"No credit needed, just build cool things."
Made with ❤️ by hiraeeth