Skip to content
Starter dear-imgui GLFW/OpenGL 3 based CMake C++ project
C C++ Other
Branch: master
Clone or download
Latest commit 04409fa Jul 4, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
fonts Added theme and fonts and CPP_SRC_DIR Jul 4, 2018
modules
src
.gitignore Initial commit Jul 3, 2018
.gitmodules Initial commit Jul 3, 2018
CMakeLists.txt Added theme and fonts and CPP_SRC_DIR Jul 4, 2018
LICENSE.txt Initial commit Jul 3, 2018
README.md Update README Jul 4, 2018
b Default generator is Ninja Jul 3, 2018

README.md

imgui-glfw

https://github.com/urddru/imgui-glfw

This is a simple template project that can build a standalone dear imgui application quickly.

    $ git clone --recurse-submodules https://github.com/urddru/imgui-glfw.git


    # This will create the build dir and run CMake
    $ b

    # or if you don't have '.' in your PATH,  "./b"


    # Then build. Ninja is the default.

    $ cd build; ninja

Features

  • GLFW and Dear Imgui only - (no boost, etc.)
    • They are imported as git submodules
  • Based on Dear Imgui glfw-opengl3 sample
  • Minimal CMake for build generation - builds Ninja, Xcode, Makefiles, etc.
  • OpenGL 3
  • Tested on Mac and Linux (even Wayland)
    • Might work with minor mods on Windows

Options

Edit the 'b' file to switch CMake generators or change other options.

Todos

  1. Simple spinning cube
  2. Add more themes, break them out into a class
  3. When docking lands in Dear Imgui, make sure to pull that in

Credits

This project was inspired by a nicely done project (with more batteries included): asap by @abdes

You can’t perform that action at this time.