Skip to content

dinau/neluaImGui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NeluaImGui

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

ImGui / CImGui 1.92.1 dock (2025/07)

Prerequisites


  • Install MSys2/MinGW (Windows OS)

  • Install NeLua

  • Windows OS 10 or later

    1. Install libraries

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

    1. Install libraries

      $ sudo apt install lib{opengl-dev,gl1-mesa-dev,glfw3,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

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 loader and saving jpg, bmp, png and tga format

  • Magnifying glass

  • glfw_opengl3: Static link 1

  • 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

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.1.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 2 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 2 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

Footnotes

  1. Only Windows executables (without .dll dependencies) 2

  2. Alphabectial order 2