https://github.com/gotoss08/imgui_project_template
CMake ImGui template
https://github.com/gotoss08/imgui_project_template
cmake cpp imgui template
Last synced: about 1 year ago
JSON representation
CMake ImGui template
- Host: GitHub
- URL: https://github.com/gotoss08/imgui_project_template
- Owner: gotoss08
- Created: 2025-05-05T23:51:46.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-06T00:05:34.000Z (about 1 year ago)
- Last Synced: 2025-05-06T00:37:40.488Z (about 1 year ago)
- Topics: cmake, cpp, imgui, template
- Language: C++
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ImGui Project Template
This is a starter template for projects using [Dear ImGui](https://github.com/ocornut/imgui).
## Features
- Pre-configured build system (CMake)
- Example ImGui window
- Easy to extend
- Uses packaged library versions:
- Dear ImGui: 1.91.9b
- SDL2: 2.32.4
- FreeType: 2.13.3
- Uses FreeType for text rendering
- Supports DPI scaling
## Rendering Backend
This template uses **OpenGL3 + SDL2** as the rendering backend for Dear ImGui.
You can change the backend by modifying the source and build configuration as needed.
## Getting Started
1. **Clone the repository:**
```
git clone https://github.com/gotoss08/imgui_project_template
```
2. **Install dependencies:**
- Make sure you have a C++ compiler and CMake installed.
- Compilation was tested on **Windows** using the **x64 MSVC compiler**.
3. **Build the project:**
```
mkdir build
cd build
cmake ..
cmake --build .
```
- The MSVC compiler will create a `Debug` folder inside `bin` containing the executable.
4. **Copy SDL2.dll:**
- Copy `bin/SDL2.dll` to the `bin/Debug` folder before running the executable.
5. **Run the application:**
- The executable will be in the `bin/Debug` directory.
## Customization
- Edit the source files in `src/` to add your own ImGui windows and logic.
## License
This template is provided as-is. Add your own license as appropriate.