Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

dinau/nimgl_test

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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


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

About

Nimgl: Dear ImGui (CImGui) demo program test for Japanese fonts

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.