An open API service indexing awesome lists of open source software.

https://github.com/dinau/cimgui_toggle

The wrapper library for C language to use imgui_toggle library written by C++.
https://github.com/dinau/cimgui_toggle

cimgui demo example imgui sw togglw

Last synced: 2 months ago
JSON representation

The wrapper library for C language to use imgui_toggle library written by C++.

Awesome Lists containing this project

README

        

- [cimgui_toggle](#cimgui_toggle)
- [Prerequisites](#prerequisites)
- [Build and run](#build-and-run)
- [Custom window](#custom-window)

![alt](https://github.com/dinau/cimgui_toggle/actions/workflows/windows.yml/badge.svg)
![alt](https://github.com/dinau/cimgui_toggle/actions/workflows/linux.yml/badge.svg)

### cimgui_toggle

---

`cimgui_toggle` is C language wrapper for `imgui_toggle` library

Based on https://github.com/cmdwtf/imgui_toggle

![alt](img/simple.png)

### Prerequisites

---

1. Windows OS
- MSys2/MinGW tools installed.
Install at least,

```sh
pacman -S make mingw-w64-ucrt-x86_64-{gcc,glfw,pkgconf}
```

1. Linux OS (Ubuntu / Debian families)
Install at least,

```sh
$ sudo apt install make pkgconf xorg-dev lib{opengl-dev,gl1-mesa-dev,glfw3,glfw3-dev}
```

1. Git installed

### Build and run

---

1. Getting sources

```sh
git clone --recurse-submodules https://github.com/dinau/cimgui_toggle
```

1. Build and run C language demo

````
cd cimgui_toggle/demo/c
make run
````

1. Build and run C++ language demo

````
cd cimgui_toggle/demo/cpp
make run
````

### Custom window

---

![alt](img/custom.png)