Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dinau/luajitimgui

Luajit + ImGui: Windows binary project using anima project
https://github.com/dinau/luajitimgui

anima demo examples gcc glfw gui image imgui imnode implot jpeg lua luajit sdl2 stb ui windows

Last synced: about 1 month ago
JSON representation

Luajit + ImGui: Windows binary project using anima project

Awesome Lists containing this project

README

        

- [LuaJITImGui](#luajitimgui)
- [ImGui / CImGui Version](#imgui--cimgui-version)
- [Examples](#examples)
- [glfw_opengl3_simple](#glfw_opengl3_simple)
- [glfw_opengl3](#glfw_opengl3)
- [glfw_opengl3_implot](#glfw_opengl3_implot)
- [glfw_opengl3_jp](#glfw_opengl3_jp)
- [sdl2_opengl3](#sdl2_opengl3)
- [ImGuizmo_sample.lua](#imguizmo_samplelua)
- [imnodes_graph_sample.lua](#imnodes_graph_samplelua)
- [delaunay_particles.lua](#delaunay_particleslua)
- [Download Zip binary](#download-zip-binary)
- [Running examples](#running-examples)
- [Other examples](#other-examples)
- [Build binaries from source](#build-binaries-from-source)
- [My tools version](#my-tools-version)
- [History](#history)
- [Similar project](#similar-project)

### LuaJITImGui

---

- [LuaJIT](https://luajit.org/) + [ImGui](https://github.com/ocornut/imgui) : The binaries project on WindowsOS using [anima](https://github.com/sonoro1234/anima) project
Differencies from [anima](https://github.com/sonoro1234/anima) project are as follows,
1. Added compilation option for **IME (Imput method)**

```sh
-DIMGUI_ENABLE_WIN32_DEFAULT_IME_FUNCTIONS
```

1. Added compilation option for **ImPlot**

```sh
-DImDrawIdx="unsigned int"
```

1. Included newer [Font Awesome](https://fontawesome.com/search?m=free&o=r) Icon fonts.
1. Added `*.bat` files to easily execute [example programs](bin/examples/LuaJIT-ImGui/examples).
1. Added `luajitw.exe` to hide console window on background.
1. Added [simple examples](examples/) like [ImGuin](https://github.com/dinau/imguin) / [ImGuinZ](https://github.com/dinau/imguinz) project.
- Support OS: Windows10 or later

#### ImGui / CImGui Version

---

- v1.91.4dock (2024/10)

#### Examples

---

##### [glfw_opengl3_simple](examples/glfw_opengl3_simple/glfw_opengl3_simple.lua)

![glfw_opengl3_simple](examples/img/glfw_opengl3_simple.png)

##### [glfw_opengl3](examples/glfw_opengl3/glfw_opengl3.lua)

This can load and save image file.

![glfw_opengl3](examples/img/glfw_opengl3.png)

##### [glfw_opengl3_implot](examples/glfw_opengl3_implot/glfw_opengl3_implot.lua)

![glfw_opengl3_implot](examples/img/glfw_opengl3_implot.png)
See more example: [implot_sample.lua](bin/examples/LuaJIT-ImGui/examples/implot_sample.lua)

##### [glfw_opengl3_jp](examples/glfw_opengl3_jp/glfw_opengl3_jp.lua)

Showing font of local language.

![glfw_opengl3_jp](examples/img/glfw_opengl3_jp.png)

##### [sdl2_opengl3](examples/sdl2_opengl3/sdl2_opengl3.lua)

![sdl2_opengl3](examples/img/sdl2_opengl3.png)

##### [ImGuizmo_sample.lua](bin/examples/LuaJIT-ImGui/examples/ImGuizmo_sample.lua)

This sample is attached by [anima](https://github.com/sonoro1234/anima) project. You can execute this sample using
[ImGuizmo_sample.bat](bin/examples/LuaJIT-ImGui/examples/ImGuizmo_sample.bat)
in [bin/examples/LuaJIT-ImGui/examples](bin/examples/LuaJIT-ImGui/examples) folder.

![ImGuizmo_sample](examples/img/ImGuizmo_sample.png)

##### [imnodes_graph_sample.lua](bin/examples/LuaJIT-ImGui/examples/imnodes_graph_sample.lua)

This sample is attached by [anima](https://github.com/sonoro1234/anima) project. You can execute this sample using
[imnodes_graph_sample.bat](bin/examples/LuaJIT-ImGui/examples/imnodes_graph_sample.bat)
in [bin/examples/LuaJIT-ImGui/examples](bin/examples/LuaJIT-ImGui/examples) folder.

![imnodes_graph_sample](examples/img/imnodes_graph_sample.png)

##### [delaunay_particles.lua](bin/examples/delaunay_particles.lua)

This sample is attached by [anima](https://github.com/sonoro1234/anima) project. You can execute this sample,

```sh
pwd
luajitImGui-1.91.0.0
cd bin/examples
../luajit.exe delaunay_particles.lua
```

![delaunay_particles](examples/img/delaunay_particles.png)

#### Download Zip binary

- WindowsOS 64bit
- Latest
[luajitImGui-1.91.4.0.zip](https://bitbucket.org/dinau/storage/downloads/luajitImGui-1.91.4.0.zip) 2024/10

- Old
[luajitImGui-1.91.2.0.zip](https://github.com/dinau/luajitImGui/archive/refs/tags/1.91.2.0.zip) 2024/10
[luajitImGui-1.91.1.0.zip](https://github.com/dinau/luajitImGui/archive/refs/tags/1.91.1.0.zip) 2024/09
[luajitImGui-1.91.0.3.zip](https://bitbucket.org/dinau/storage/downloads/luajitImGui-1.91.0.3.zip)
- WindowsOS 32bit
[luajitImGui-1.91.0.2.zip](https://bitbucket.org/dinau/storage/downloads/luajitImGui-1.91.0.2.zip)

#### Running examples

---

First on WindowsOS extract zip file downloaded then
for instance,

```sh
cd luajitImGui-1.91.0.0
cd examples/glfw_opengl3
glfw_opengl3.exe # or double click on Windows file explore
```

#### Other examples

---

Refer to nice exmaples: [bin/examples](bin/examples)

#### Build binaries from source

---

- Prerequisites
Install at least on MSys2/MinGW console,

```sh
pacman -S mingw-w64-ucrt-x86_64-{cmake,gcc,clang,llvm-openmp,patch} make
```

- Build **on MSys2 console**,

```sh
git clone --recurse-submodules https://github.com/dinau/luajitImGui
cd luajitImGui
make clean
make
```

That's all :-)

#### My tools version

---

- Clang 18.1.8 (Current compiler)
- Libraries: OpenMP
- Gcc.exe (Rev1, Built by MSYS2 project) 14.2.0)
- (Microsoft Visual Studio 2022 C/C++)
- CMake version 3.30.3
- Git version 2.46.0.windows.1
- Make: GNU Make 4.4.1

#### History

---

- WindowsOS 64bit versions
| Date | ImGui / CImGui | LuaJITImGui | Commemt |
| --- | ----------- | --- | --- |
| 2024/10 | v1.91.4 | v1.91.4.0 | |
| 2024/10 | v1.91.2 | v1.91.2.0 | |
| 2024/09 | v1.91.1 | v1.91.1.0 | |
| 2024/09 | v1.91.0 | v1.91.0.3 | |

- WindowsOS 32bit versions
| Date | ImGui / CImGui | LuaJITImGui | Commemt |
| --- | ----------- | --- | --- |
| 2024/08 | v1.91.0 | v1.91.0.2 | |
| 2024/07 | v1.90.9 | v1.90.9.0 | |
| 2024/06 | v1.90.8 | v1.90.8.0 | |
| 2024/05 | v1.90.7 | v1.90.7.0 | |
| 2024/05 | v1.90.6 | v1.90.6.2 | |
| 2024/03 | v1.90.4 | v1.90.4.0 | |
| 2024/02 | v1.90.1 | v1.90.1.3 | Added: Button "Save window image" and combo box, it can be saved as JPEG, PNG, TIFF, BMP file format |
| 2024/01 | v1.90.1 | v1.90.1.0 | Added: Icon font demo |

#### Similar project

---

| Language | Project |
| -------------------: | :----------------------------------------------------------------: |
| **Nim** | [ImGuin](https://github.com/dinau/imguin), [Nimgl_test](https://github.com/dinau/nimgl_test), [Nim_implot](https://github.com/dinau/nim_implot) |
| **Lua** | [LuaJITImGui](https://github.com/dinau/luajitImGui) |
| **Python** | [DearPyGui for 32bit WindowsOS Binary](https://github.com/dinau/DearPyGui32/tree/win32) |
| **Zig**, C lang. | [Dear_Bindings_Build](https://github.com/dinau/dear_bindings_build) |
| **Zig** | [ImGuinZ](https://github.com/dinau/imguinz) |