README.md

October 27, 2025 · View on GitHub

Nimgl / ImGui demo program

Note: Using Dear ImGui v1.91.9bdock (2025/10) with nimgl/imgui

Prerequisite


  • nim-2.2.4 or later

  • OS: Windows11 or later

  • Download

    $ git clone https://github.com/dinau/nimgl_test
    $ cd nimgl_test
    
  • For Linux Debian13 or later

    $ sudo apt install libopengl-dev  libgl1-mesa-dev libglfw3-dev
    $ sudo apt install libxcursor-dev libx11-dev libxext-dev libxinerama-dev libxi-dev
    

Install dependencies


$ pwd
nimgl_test
$ nimble build

Examples


rlimgui_basic (Naylib(Raylib) + rlImGui)

rlimgui_basic.nim

$ pwd 
nimgl_test
$ cd examples/rlimgui_basic
$ make run

alt

glfw_opengl3

glfw_opengl3.nim

$ pwd 
nimgl_test
$ cd examples/glfw_opengl3
$ make run

alt

glfw_opengl3_image_load

glfw_opengl3_image_load.nim

$ pwd 
nimgl_test
$ cd examples/glfw_opengl3_image_load
$ make run

alt

glfw_opengl3_implot

glfw_opengl3_implot.nim

$ pwd 
nimgl_test
$ cd examples/glfw_opengl3_implot
$ make run

alt

imDrawListParty

imDrawListParty.nim

$ pwd 
nimgl_test
cd examples/imDrawListParty
$ make run

ImDrawList coding party - deadline Nov 30, 2020! #3606
This demo has been converted to Nim lang from two programs,
Curve
alt
and Real-time visualization of the interweb blogosphere.

alt alt

implot_jp

implot_jp.nim

ImPlot demo with Japanese fonts

$ pwd 
nimgl_test
$ cd examples/implot_jp
$ make run

alt

jpFont

jpFont.nim

$ pwd 
nimgl_test
$ cd examples/jpfont
$ make run

alt

IME for Japanese / 日本語入力(IME)について


以下のNim言語コンパイル / リンク時オプションを加えることで日本語入力を可能としている
オプションはバックエンドのC/C++コンパイラにのみ渡される

--passc:"-DIMGUI_ENABLE_WIN32_DEFAULT_IME_FUNCTIONS"
--passL:"-limm32"

同じことをconfig.nims内に記述する場合は以下となる

switch "passC","-DIMGUI_ENABLE_WIN32_DEFAULT_IME_FUNCTIONS"
switch "passL","-limm32"

Referrence


Dear ImGuiで日本語入力時のIMEの位置をいい感じにする
Viewport, Platform: Fixed IME positioning for multi-viewport. Moved API from...
ImGui で日本語と記号♥と絵文字😺の表示

My tools version


  • Windows
    • Nim Compiler Version 2.2.4
    • gcc.exe 15.2.0
    • git version 2.46.0.windows.1
    • make: GNU Make 4.4.1

Other ImGui / CImGui project


LanguageProject
LuaScriptLuaJITImGui
NeLuaCompilerNeLuaImGui, NeLuaImGui2
NimCompilerImGuin, Nimgl_test, Nim_implot
PythonScriptDearPyGui for 32bit WindowsOS Binary
RubyScriptigRuby_Examples
Zig, C lang.CompilerDear_Bindings_Build
ZigCompilerImGuinZ

SDL game tutorial Platfromer


ald

LanguageSDLProject
LuaJITScriptSDL2LuaJIT-Platformer
NeluaCompilerSDL2NeLua-Platformer
NimCompilerSDL3 / SDL2Nim-Platformer-sdl2/ Nim-Platformer-sdl3
RubyScriptSDL3Ruby-Platformer
ZigCompilerSDL3 / SDL2Zig-Platformer