Skip to content

antono2/imgui

Repository files navigation

V binding generator for Dear ImGui

This is an automated process to generate imgui.v and implot.v

  • generate C for imgui using cimgui
  • generate C for implot using cimplot
  • v translate C to V
  • cleanup_imgui.perl and cleanup_implot.perl to fix some errors

Dependencies

v install https://github.com/antono2/vulkan
v install https://github.com/antono2/glfw

Install

v install https://github.com/antono2/imgui
# Build vimgui lib
cd ~/.vmodules/imgui
cmake .
make

Examples

Using GLFW and Dear ImGui antono2/v_imgui_examples

Generate

On Ubuntu

sudo apt install -y luajit
~/.vmodules/imgui/generate_v.sh

Or

# Install luajit for your OS
# Go to vmodules/imgui
v generate.vsh

Thanks

Thank you @ryoskzypu - from #regex on libera.chat - for loving perl and helping people out.

About

Dear ImGui binding generator for V. https://github.com/ocornut/imgui

Topics

Resources

License

Stars

Watchers

Forks