This project introduces C API for Dear Imgui Zoomable Image Display(ImGuiImage) to use it with other languages and a simple demo program in C.
Link: Dear ImGui / CImGui
Click link for live demo: Click here
See Wasm example in Nim: glfw_opengl3_imgui_zoomable_image
-
Windows OS 11 or later
-
Install MSys2/MinGW (Windows OS)
-
Install packages
pacman -S mingw-w64-ucrt-x86_64-{gcc,glfw,pkg-config} make
-
-
Linux: Ubuntu / Debian families
-
Install packages
$ sudo apt install gcc lib{opengl-dev,gl1-mesa-dev,glfw3-dev} make pkg-config
-
-
Download this project.
git clone --recursive https://github.com/dinau/cimgui_zoomable_image
-
Go to demo folder
cd cimgui_zoomable_image/demo/c make run
