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

glfw_opengl3
glfw_opengl3.nim
$ pwd
nimgl_test
$ cd examples/glfw_opengl3
$ make run

glfw_opengl3_image_load
glfw_opengl3_image_load.nim
$ pwd
nimgl_test
$ cd examples/glfw_opengl3_image_load
$ make run

glfw_opengl3_implot
glfw_opengl3_implot.nim
$ pwd
nimgl_test
$ cd examples/glfw_opengl3_implot
$ make run

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

and Real-time visualization of the interweb blogosphere.

implot_jp
implot_jp.nim
ImPlot demo with Japanese fonts
$ pwd
nimgl_test
$ cd examples/implot_jp
$ make run

jpFont
jpFont.nim
$ pwd
nimgl_test
$ cd examples/jpfont
$ make run

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 で日本語と記号♥と絵文字😺の表示
- 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
SDL game tutorial Platfromer

评论