Skip to content
/ imapp-template Public template

A CMake template project and example for standalone application using Dear ImGui and imapp.

License

Notifications You must be signed in to change notification settings

remyroez/imapp-template

Repository files navigation

imapp-template

A CMake template project and example for standalone application using Dear ImGui and imapp.

Building

Basic

mkdir build
cd build
cmake ..
make
./imapp_example

Select Platfrom/Renderer(+OpenGL Loader)

cmake .. -DIMAPP_PLATFORM=SDL2 -DIMAPP_RENDERER=OpenGL3 -DIMAPP_OPENGL_LOADER=GLEW

Several CMake options(case-insensitive) are provided:

  • IMAPP_PLATFORM
    • SDL2 (default)
    • glfw
  • IMAPP_RENDERER
    • OpenGL3 (default)
    • OpenGL2
    • Vulkan
  • IMAPP_OPENGL_LOADER
    • GLEW (default)
    • GL3W
    • GLAD (not tested)
    • glbinding2
    • glbinding3 (not tested)

Emscripten

mkdir build_emscripten
cd build_emscripten
emcmake cmake ..
emmake make
python3 -m http.server

The platform is fixed to SDL2 and the renderer is fixed to OpenGL3.

Third party

License

MIT License

About

A CMake template project and example for standalone application using Dear ImGui and imapp.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published