Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NeluaImGui2

alt alt

This project aims to simply and easily build Dear ImGui examples with Nelua language using Dear_Bindings as first step.
(Dear ImGui + CImGui version is NeluaImGui.)

Versions


DearBindings: dear_bindings_v0.17_ImGui_v1.92.6-docking
ImGui: 1.92.6 docking (2026/02)

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 24.04 / Debian families

    1. Install libraries

      $ sudo apt install gcc clang lib{opengl-dev,gl1-mesa-dev,glfw3-dev,xcursor-dev,xinerama-dev,xi-dev,sdl2-dev} 

Build and run


  1. Download this project.

    git clone https://github.com/dinau/neluaImGui2
  2. Go to one of the examples folder for instance,

    cd neluaImGui2/examples/glfw_opengl3
    make run 

Available libraries list at this moment


Library name / C lang. wrapper

Examples


imGuiToggleDemo

imGuiToggleDemo.nelua

alt

imKnobsDemo

imKnobsDemo.nelua

alt

imSpinnerDemo

imSpinnerDemo.nelua

alt

imColorTextEditDemo

imColorTextEditDemo.nelua

alt

imGuizmoDemo

imGuizmoDemo.nelua

alt

imNodesDemo

imNodesDemo.nelua

alt

imFileDialogDemo

imFileDialogDemo.nelua

alt

iconFontViewer

iconFontViewer.nelua

  • Magnifying glass

  • Incremental search

  • Static link 1

    iconFontViewer.png

imPlotDemo

imPlotDemo.nelua

alt

imPlot3DDemo

Note: Use Clang compiler (see Makefile)

imPlot3DDemo.nelua

alt

glfw_opengl3, sdl2_opengl3

glfw_opengl3.nelua, sdl2_opengl3.nelua

  • Icon fonts

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

  • Magnifying glass

    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

Update NeluaImGui2


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)
  • Clang version 21.1.8
  • Git version 2.46.0.windows.1
  • Make: GNU Make 4.4.1

History


  • Started project at 2025/09 with NeLua-0.2.0-dev and ImGui/CImGui 1.92.2b inherited from NeLuaImGui project.

Other ImGui / CImGui project


Language Project
Lua Script LuaJITImGui
NeLua Compiler NeLuaImGui, NeLuaImGui2
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 SDL Project
LuaJIT Script SDL2 LuaJIT-Platformer
Nelua Compiler SDL2 NeLua-Platformer
Nim Compiler SDL3 / SDL2 Nim-Platformer-sdl2/ Nim-Platformer-sdl3
Ruby Script SDL3 Ruby-Platformer
Zig Compiler SDL3 / SDL2 Zig-Platformer

Notes:

  • Using ImPlot3D / ImPlot with Nelua
  • Nelua + ImGui + ImPlot3D / ImPlot demo
  • Build with ImPlot3D / ImPlot
  • ImPlot3D integration example
  • This project builds and runs Dear ImGui + ImPlot3D / ImPlotusing Nelua.
  • ImPlot3D is compiled from source (implot3d.h / implot3d.cpp)
  • ImPlot is compiled from source (implot.h / implot.cpp)

Footnotes

  1. Only Windows executables (without .dll dependencies)

Releases

Packages

Contributors

Languages