SkillAgentSearch skills...

NeluaImGui

ImGui / CImGui with NeLua language

Install / Use

/learn @dinau/NeluaImGui

README

<!-- START doctoc generated TOC please keep comment here to allow auto update --> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> <!-- END doctoc generated TOC please keep comment here to allow auto update -->

NeluaImGui

Dear ImGui / CImGui wrapper library and some examples with NeLua language

NeluaImGui: ImGui + CImGui 1.92.6 dock (2026/02)

(Another binding: NeluaImGui2: ImGui + Dear Bindings)

Prerequisites


  • Install MSys2/MinGW (Windows OS)

  • Install NeLua

  • Windows OS 11 or later

    1. Install libraries

      pacman -S mingw-w64-ucrt-x86_64-{gcc,clang,glfw,pkgconf,SDL2,SDL2_image} make
      
  • Linux: Ubuntu / Debian faimilies

    1. Install libraries

      $ sudo apt install gcc clang lib{opengl-dev,gl1-mesa-dev,glfw3-dev,sdl2-dev} make
      
  • C/C++ Compiler
    GCC / Clang

Build and run on Windows OS


  1. Download this project.

    git clone https://github.com/dinau/neluaImGui
    
  2. Open MSys2 console and go to one of the examples folder ,

    cd neluaImGui/examples/glfw_opengl3
    make run 
    

Examples


imGuiToggleDemo

imGuiToggleDemo.nelua

alt

imKnobsDemo

imKnobsDemo.nelua

alt

imSpinnerDemo

imSpinnerDemo.nelua

alt

Raylib + ImGui + rlImGui

rlimgui_basic.nelua

alt

  • Build and run
    1. Download Raylib binary for Windows: raylib-5.5_win64_mingw-w64.zip (for Linux: raylib-5.5_linux_amd64.tar.gz) then extracts it.

    2. Rename the folder name to raylib from raylib-5.5_win64_mingw-w64 (or raylib-5.5_linux_amd64).

    3. git clone https://github.com/AuzFox/Raylib.nelua
      (git SHA-1: a91ad75074e126679adbe91ab369f4d62d1563b4)

    4. Deploy them as follows,

      .
      |-- neluaImGui
      |-- raylib
      `-- Raylib.nelua
      
    5. cd neluaImGui/examples/rlimgui_basic
      make run
      
    6. If you are on Linux,

      LD_LIBRARY_PATH=../../../raylib/lib make run
      
imColorTextEditDemo

imColorTextEditDemo.nelua

alt

imGuizmoDemo

imGuizmoDemo.nelua

alt

imNodesDemo

imNodesDemo.nelua

alt

imFileDialogDemo

imFileDialogDemo.nelua

alt

iconFontViewer

iconFontViewer.nelua

  • [x] Magnifying glass

  • [x] Incremental search

  • [x] Static link [^dllWindows]

    iconFontViewer.png

[^dllWindows]: Only Windows executables (without .dll dependencies)

imPlotDemo

imPlotDemo.nelua

alt

imPlot3DDemo

Note: Use Clang compiler (see Makefile)

imPlot3DDemo.nelua

alt

glfw_opengl3, sdl2_opengl3

glfw_opengl3.nelua, sdl2_opengl3.nelua

  • [x] Icon fonts

  • [x] Image loader and saving jpg, bmp, png and tga format

  • [x] Magnifying glass

  • [x] glfw_opengl3: Static link [^dllWindows]

  • [x] sdl2_opengl3: Dynamic link

    glfw_opengl3.png

glfw_opengl3_jp

Showing multibyte fonts(UTF-8, CJK fonts) and IME(Input method)

glfw_opengl3_jp.nelua

glfw_opengl3_jp.png

Available libraries list at this moment


Library name / C lang. wrapper

Update NeluaImGui


make copylibs
make gen

See ./Makefile and libs/libs_hash/Makefile

SDL2 / GLFW / STB headers for Nelua


These header files libs/nelua/glfw, libs/nelua/sdl2, libs/nelua/stb have thankfully been copied form nelua-decl libraries project.

My tools version


  • Nelua-0.2.0-dev
  • Gcc.exe (Rev1, Built by MSYS2 project) 15.2.0)
  • Git version 2.46.0.windows.1
  • Make: GNU Make 4.4.1

History


  • Started project at 2024/11 from NeLua-0.2.0-dev : ImGui/CImGui 1.91.4

Other ImGui / CImGui project


| Language [^order] | | Project | | -------------------: | :---: | :----------------------------------------------------------------: | | Lua | Script | LuaJITImGui | | NeLua | Compiler | NeLuaImGui | | Nim | Compiler | ImGuin, Nimgl_test, Nim_implot | | Python | Script | DearPyGui for 32bit WindowsOS Binary | | Ruby | Script | igRuby_Examples | | Zig, C lang. | Compiler | Dear_Bindings_Build | | Zig | Compiler | ImGuinZ |

SDL game tutorial Platfromer


ald

| Language [^order] | | SDL | Project | | -------------------: |

Related Skills

View on GitHub
GitHub Stars5
CategoryDevelopment
Updated4d ago
Forks0

Security Score

90/100

Audited on Mar 24, 2026

No findings