https://github.com/gpmueller/imgui-app
An ImGui app example with OpenGL that runs on all platforms, including the web
https://github.com/gpmueller/imgui-app
cpp cross-platform imgui imgui-glfw opengl3 wasm
Last synced: about 15 hours ago
JSON representation
An ImGui app example with OpenGL that runs on all platforms, including the web
- Host: GitHub
- URL: https://github.com/gpmueller/imgui-app
- Owner: GPMueller
- License: mit
- Created: 2021-03-15T18:51:59.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-09-27T21:25:16.000Z (over 4 years ago)
- Last Synced: 2025-04-24T02:41:55.145Z (11 months ago)
- Topics: cpp, cross-platform, imgui, imgui-glfw, opengl3, wasm
- Language: C++
- Homepage: https://gpmueller.github.io/imgui-app
- Size: 5.56 MB
- Stars: 10
- Watchers: 1
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
imgui-app
========================================
A nanogui app example with a framework-like set of dependencies

Native application
----------------------------------------
Build the app by calling
```
mkdir -p build && cd build
cmake ..
cmake --build . -j4
cd ..
```
Web application
----------------------------------------
You need to have emscripten available.
Then, to build,
```
source /path/to/emsdk/emsdk_env.sh
mkdir -p build && cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=/path/to/emsdk/emscripten//cmake/Modules/Platform/Emscripten.cmake
cmake --build . -j4
cd ..
```
And to run the app, for example
```
cd ui-web
python3 -m http.server
open index.html
```
Dependencies
----------------------------------------
* Dear ImGui
* fmtlib
* GLFW
* glad
* OpenGL 3