An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

imgui-app
========================================

A nanogui app example with a framework-like set of dependencies

![Logo](resources/Logo.png "App Logo")

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