https://github.com/dinau/cimgui-knobs
Knobs library wrapper in C lang. for Dear ImGui
https://github.com/dinau/cimgui-knobs
cimgui cimknobs golang imgui knobs luajit nim ruby rust warpper zig
Last synced: 3 months ago
JSON representation
Knobs library wrapper in C lang. for Dear ImGui
- Host: GitHub
- URL: https://github.com/dinau/cimgui-knobs
- Owner: dinau
- License: mit
- Created: 2025-02-18T14:27:42.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-02-18T14:52:37.000Z (3 months ago)
- Last Synced: 2025-02-18T15:32:16.215Z (3 months ago)
- Topics: cimgui, cimknobs, golang, imgui, knobs, luajit, nim, ruby, rust, warpper, zig
- Language: C++
- Homepage:
- Size: 693 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## CImGui Knobs

This is a port/adaptation of [ImGui-Knobs](https://github.com/altschuler/imgui-knobs), for C language (contributed to [ImGuin](http://github.com/dinau/imguin) project) by [system64MC](https://github.com/system64MC) at [2024/12](https://github.com/dinau/imguin/issues/16#issuecomment-2538066999).
I've just isolated the sources from ImGuin project for maintenance and convenience and added [a simple demo program in C language](demo/c/main.c).
### Usage
---
Add
```txt
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](https://www.msys2.org/) tools installed. (gcc, make, etc)```sh
pacman -S mingw-w64-ucrt-x86_64-{gcc,glfw,SDL2,pkgconf} make```
- Linux OS (Debian/ Ubuntu families)
```sh
$ sudo apt install xorg-dev libopengl-dev libgl1-mesa-dev
$ sudo apt install libglfw3 libglfw3-dev libsdl2-dev
```#### Building and running demo
---
```sh
git clone --recursive https://github.com/dinau/cimgui-knobs
cd cimgui-knobs/demo/c
make run
```