Skip to content

dinau/igruby_examples

Repository files navigation

IgRuby_Examples


Ruby-Imgui is the wrapper library to use awesome GUI library Dear ImGui.

This project has some examples using Ruby-Imgui library.

ImGui / CImGui 1.91.8 (2025/02)

Prerequisites


Install Ruby gems


Note: Specify imgui-bindings version 0.1.17 at this moment.

gem install imgui-bindings:0.1.17 sdl2-bindings stbimage aibika 

Install dlls


git clone https://github.com/dinau/igruby_examples
cd igruby_examples
copy dlls_extra\*.dll c:\Ruby34-x64\bin\       # Specify your Ruby bin folder 

Screen shots


glfw_opengl3, sdl2_opengl3(WIP), sdl2_renderer(WIP)


Image load and magnifying glass

For executing program for example,

pwd 
igruby_examples
cd glfw_opengl3
ruby glfw_opengl3.rb    # Or double click glfw_opengl3.rbw in file explorer

alt


Image load and magnifying glass

For executing program for example,

pwd 
igruby_examples
cd glfw_opengl3_jp
ruby glfw_opengl3_jp.rb    # Or double click glfw_opengl3_jp.rbw in file explorer

alt


Icon fonts viewer

For executing program for example,

pwd 
igruby_examples
cd glfw_opengl3_iconfont_viewer
ruby glfw_opengl3_iconfont_viewer.rb    # Or double click glfw_opengl3_iconfont_viewer.rbw in file explorer

alt

Generating single EXE file on Windows OS with Aibika


For instance,

pwd 
igruby_examples
cd glfw_opengl3
make 

That's all !
glfw_opengl3.exe will be generated in current folder.

My tools version


  • Ruby 3.4.2 (2025-02-15 revision d2930f8e7a) +PRISM [x64-mingw-ucrt]
  • Cmake version 3.31.4
  • Gcc.exe (Rev2, Built by MSYS2 project) 14.2.0
  • Git version 2.46.0.windows.1
  • Make: GNU Make 4.4.1

Other projects


Similar project ImGui / CImGui


Language Project
Nim Compiler ImGuin, Nimgl_test, Nim_implot
Lua Script LuaJITImGui
Zig, C lang. Compiler Dear_Bindings_Build
Zig Compiler ImGuinZ
NeLua Compiler NeLuaImGui
Python Script DearPyGui for 32bit WindowsOS Binary

SDL Game tutorial Platfromer


ald

Language Project
Nim Compiler Nim-Platformer/ sdl3_nim
LuaJIT Script LuaJIT-Platformer
Nelua Compiler NeLua-Platformer
Zig Compiler Zig-Platformer