https://github.com/sonoro1234/luajit-imgui
LuaJIT ffi binding for imgui, backends and extension widgets
https://github.com/sonoro1234/luajit-imgui
imgui luajit luajit-ffi
Last synced: about 2 months ago
JSON representation
LuaJIT ffi binding for imgui, backends and extension widgets
- Host: GitHub
- URL: https://github.com/sonoro1234/luajit-imgui
- Owner: sonoro1234
- License: mit
- Created: 2018-02-26T17:53:29.000Z (over 7 years ago)
- Default Branch: docking_inter
- Last Pushed: 2025-03-31T14:56:50.000Z (2 months ago)
- Last Synced: 2025-04-04T00:09:50.756Z (2 months ago)
- Topics: imgui, luajit, luajit-ffi
- Language: Lua
- Homepage:
- Size: 1.57 MB
- Stars: 253
- Watchers: 9
- Forks: 32
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# LuaJIT-ImGui


This is a LuaJIT binding for the excellent C++ immediate gui [imgui](https://github.com/ocornut/imgui).
Uses cimgui to be the most "up to date" as possible.There are backends for glfw, SDL2 and SDL3.
Notes:
* currently this wrapper is based on version [1.91.9 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
* Remember you also need GLFW https://github.com/sonoro1234/LuaJIT-GLFW or SDL2 https://github.com/sonoro1234/LuaJIT-SDL2 .
* You have some scripts on the examples folder.
* New module imgui.window for simplified use. (see window_drag_drop.lua)
* In case you are in a hurry, you can get all done in the releases (GLFW version only).
* Releases are now done in https://github.com/sonoro1234/anima# binding generation
* if cimgui is updated the binding can be remade with ./lua/build.bat
# used in
* https://github.com/sonoro1234/anima
* can be used for LOVE2D as explained in https://github.com/sonoro1234/LuaJIT-ImGui/issues/20