sonoro1234 / LuaJIT-ImGui

LuaJIT ffi binding for imgui, backends and extension widgets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LuaJIT-ImGui

sample

This is a LuaJIT binding for the excellent C++ immediate gui imgui. Uses cimgui to be the most "up to date" as possible.

Notes:

  • currently this wrapper is based on version [1.90.7 docking of imgui]

cloning

Remember to do a recursive cloning of the repo to pull submodules also.

git clone --recurse-submodules https://github.com/sonoro1234/LuaJIT-ImGui.git

If already cloned and updating do from this repo folder:

git submodule update --init --recursive

compiling

  • linux cimgui_sdl (for love2d for example) needs: sudo apt install libsdl2-dev
  • run one of the scripts in the build directory from a sibling folder to the repo. If you want to install, (recomended) add this -DLUAJIT_BIN="folder where LuaJIT is" to the cmake command.
  • make (or make install).
  • If you didnt install in LuaJIT directory, set basedir variable in imgui.lua to the directory libimgui is found.
  • Alternatively you can build https://github.com/sonoro1234/anima which includes LuaJIT-ImGui and dependencies.

trying

binding generation

  • if cimgui is updated the binding can be remade with ./lua/build.bat

used in

About

LuaJIT ffi binding for imgui, backends and extension widgets

License:MIT License


Languages

Language:Lua 95.2%Language:C++ 4.0%Language:CMake 0.4%Language:C 0.3%Language:Batchfile 0.1%Language:Shell 0.0%