Skip to content

dinau/cimgui-knobs

Repository files navigation

CImGui Knobs

alt alt

This is a port/adaptation of ImGui-Knobs, for C language (contributed to ImGuin project) by system64MC at 2024/12.
I've just isolated the sources from ImGuin project for maintenance and convenience and added a simple demo program in C language.

alt

Usage


Add

cimgui-knobs.cpp
cimgui-knobs.h
imgui-knobs.cpp
imgui-knobs.h

to your project and include cimgui-knobs.h in some source file.

Building and runiing demo in C language


Prerequisites


  • Windows10 OS or later

    • Msys2/MinGW tools installed. (gcc, make, etc)

      pacman -S mingw-w64-ucrt-x86_64-{gcc,glfw,SDL2,pkgconf} make
      
  • Linux OS (Debian/ Ubuntu families)

    $ sudo apt install xorg-dev libopengl-dev libgl1-mesa-dev
    $ sudo apt install libglfw3 libglfw3-dev libsdl2-dev

Building and running demo


git clone --recursive https://github.com/dinau/cimgui-knobs 
cd cimgui-knobs/demo/c
make run