https://github.com/benmcavoy/imapp
A simple wrapper around the sokol libraries to make it easier to create simple applications.
https://github.com/benmcavoy/imapp
cpp dear-imgui dearimgui imgui sokol template
Last synced: 7 months ago
JSON representation
A simple wrapper around the sokol libraries to make it easier to create simple applications.
- Host: GitHub
- URL: https://github.com/benmcavoy/imapp
- Owner: BenMcAvoy
- License: mit
- Created: 2024-11-19T14:06:10.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-11-20T15:24:07.000Z (11 months ago)
- Last Synced: 2025-02-05T07:25:24.493Z (9 months ago)
- Topics: cpp, dear-imgui, dearimgui, imgui, sokol, template
- Language: C++
- Homepage:
- Size: 82 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# imApp
A simple wrapper around sokol_app, sokol_gfx, sokol_imgui, and sokol_log to make it easier to create simple applications with sokol libraries.
## Clone:
```bash
> git clone https://github.com/BenMcAvoy/imApp.git
> cd imApp
```## Modify:
```
> edit src/app.cpp # modify DrawCallback and other code
```## Build:
```bash
> cmake -B build
> cmake --build build
```> [!NOTE]
> On Linux you'll also need to install the 'usual' dev-packages needed for X11+GL development.## Build and Run WASM/HTML version via Emscripten (Linux, macOS)
Setup the emscripten SDK as described [here](https://emscripten.org/docs/getting_started/downloads.html#installation-instructions).
Don't forget to run `source $HOME/emsdk/emsdk_env.sh` to set up the environment.
And then in the directory of your project:```
emcmake cmake -DCMAKE_BUILD_TYPE=MinSizeRel -B build-wasm
cmake --build build-wasm
```To run the compilation result in the system web browser:
```
> emrun demo.html
```## IDE Integration:
- You must configure the project using CMake (`cmake -B build`) to get the LSP to function, this may be done automatically by some editors. The reason for this is CMake is configured to export commands to tell the LSP where the files are.