Skip to content

dinau/cimgui_zoomable_image

Repository files navigation

CImGui Zoomable Image


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

Try Wasm live demo in your browser


Click link for live demo: Click here

alt

See Wasm example in Nim: glfw_opengl3_imgui_zoomable_image

Prerequisites


  • Windows OS 11 or later

    1. Install MSys2/MinGW (Windows OS)

    2. Install packages

      pacman -S mingw-w64-ucrt-x86_64-{gcc,glfw,pkg-config} make
  • Linux: Ubuntu / Debian families

    1. Install packages

      $ sudo apt install gcc lib{opengl-dev,gl1-mesa-dev,glfw3-dev} make pkg-config

Build and run


  1. Download this project.

    git clone --recursive https://github.com/dinau/cimgui_zoomable_image
  2. Go to demo folder

    cd cimgui_zoomable_image/demo/c
    make run 

Demo program


main.c

Packages

 
 
 

Contributors