Skip to content

dinau/nimgl_test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nimgl / ImGui demo program

alt alt

Note: Using ImGui v1.89.9 (2023/09) https://github.com/dinau/nimgl-imgui
forked from https://github.com/daniel-j/nimgl-imgui .

Prerequisite


  • nim-2.2.4 or later

  • OS: Windows10 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



$ pwd 
nimgl_test
$ cd examples/glfw_opengl3
$ make run

alt


$ pwd 
nimgl_test
$ cd examples/glfw_opengl3_image_load
$ make run

alt


$ pwd 
nimgl_test
$ cd examples/glfw_opengl3_implot
$ make run

alt


$ 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 demo with Japanese fonts

$ pwd 
nimgl_test
$ cd examples/implot_jp
$ make run

alt


$ 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

License

Stars

Watchers

Forks

Packages

No packages published