cirquit / imgui-template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

C++/ImGUI Template

This template project consists of a single library, an executable that uses the library and tests for the library with the catch framework. CMake is used for the build system.

The ImGUI library is acan create a simple GUI to debug and test things which is lightweight and portable. It uses SFML and OpenGL for that. We also provide installation steps only for SFML, because OpenGL is mostly provided by any distro.

Demo Screenshot

demo-screenshot

Other examples.

How to use
> git clone https://github.com/cirquit/imgui-template
> cd imgui-template
> rm .git
> cd ..
> mv imgui-template <your-project-name>
> cd <your-project-name>
> vim CMakeLists.txt 
(modify the project names)
Install SFML

The safest way would be to build it by yourself. Download SFML here.

I had these dependencies, but this may differ from your system. Just google the other libraries.

> sudo apt-get install libopenal-dev libflac++-dev

To install, extract the SFML archive anywhere and run these commands.

> cd SFML-2.4.2
> mkdir build && cd build
> make all
> sudo make install all
Steps to build the project
> sudo apt-get install libudev-de
> sudo cp FindSFML.cmake /usr/share/cmake-3.5.0/Modules/    (change path for your cmake version)
> sudo cp FindUDev.cmake /usr/share/cmake-3.5.0/Modules/    (change path for your cmake version)
> cd imgui-template
> mkdir build && cd build && cmake ..

About


Languages

Language:C++ 58.9%Language:Objective-C 25.9%Language:C 13.8%Language:CMake 1.3%