33
44- [ IgRuby Examples] ( #igruby-examples )
55 - [ Prerequisites] ( #prerequisites )
6- - [ Donwload and running examples] ( #donwload-and-running-examples )
6+ - [ Donwload and running examples on Windows OS ] ( #donwload-and-running-examples-on-windows-os )
77 - [ Snapshots] ( #snapshots )
88 - [ ImGui-Toggle / CImGui-Toggle] ( #imgui-toggle--cimgui-toggle )
99 - [ ImDrawList party] ( #imdrawlist-party )
1616 - [ Iconfonts viewer] ( #iconfonts-viewer )
1717 - [ Image loading] ( #image-loading )
1818 - [ Showing CJK fonts] ( #showing-cjk-fonts )
19+ - [ For Linux x86_64] ( #for-linux-x86_64 )
1920
2021<!-- END doctoc generated TOC please keep comment here to allow auto update -->
2122
22-
2323### IgRuby Examples
2424
2525---
2626
27- Ruby language + Dear ImGui + Additional libraries project
27+ Ruby language + [ Dear ImGui] ( https://github.com/ocornut/imgui ) + Additional libraries and examples project
2828
2929See [ ruby-imgui-dev] ( https://github.com/dinau/ruby-imgui-dev )
3030
3131#### Prerequisites
3232
3333---
3434
35- ✅ Windows10 or later
36- - Install [ RubyInstaller + ** Devkit** ] ( https://rubyinstaller.org/downloads/ ) 3.4.6 or later
37- (Install Devkit (MSys2/MinGW) )
35+ ✅ Windows11 or later
36+ - Install [ RubyInstaller + ** Devkit** ] ( https://rubyinstaller.org/downloads/ ) 3.4.7 or later
37+ (You must install Devkit )
3838
39- 🟥 ~~ Linux OS~~
39+ ✅ Linux OS x86_64
40+ - Debian13 Trixie, Ubuntu families and Windows WSL2
4041
4142
42- #### Donwload and running examples
43+ #### Donwload and running examples on Windows OS
4344---
4445
45- 1 . Download ` igruby_examples-1.9x.y.w. zip ` from [ Release page] ( https://github.com/dinau/igruby_examples/releases ) and extract zip file.
46+ 1 . Download ` igruby_examples-1.9x.y-bdn. zip ` from [ Release page] ( https://github.com/dinau/igruby_examples/releases ) then extract zip file.
46471 . Execute bundler command,
4748
4849 ``` sh
49- $ cd igruby_examples-1.9x.y.w /igruby_examples
50+ $ cd igruby_examples-1.91.8-bd2 /igruby_examples
5051 $ bundle install
5152
5253 Fetching gem metadata from https://rubygems.org/..
@@ -62,7 +63,7 @@ See [ruby-imgui-dev](https://github.com/dinau/ruby-imgui-dev)
6263 ``` sh
6364 cd glfw_opengl3
6465 r.bat # Or double click glfw_opengl3.rbw in Windows explorer
65- # Ignore many warnings emmited in console
66+ # Ignore many warnings emmited in console window
6667 ```
6768
6869
@@ -114,6 +115,7 @@ Amazing !
114115
115116![ alt] ( img/imspinner.gif )
116117
118+
117119##### ImGuizmo / CImGuizmo
118120
119121---
@@ -177,3 +179,90 @@ Amazing !
177179[ glfw_opengl3_jp.rb] ( https://github.com/dinau/igruby_examples/blob/main/glfw_opengl3_jp/glfw_opengl3_jp.rb )
178180
179181![ alt] ( https://github.com/dinau/igruby_examples/raw/main/img/glfw_opengl3_jp.png )
182+
183+
184+
185+ #### For Linux x86_64
186+
187+ ---
188+ 1 . Install tools
189+
190+ ``` sh
191+ $ sudo apt install clang git make ninja-build
192+ $ sudo apt install lib{opengl-dev,gl1-mesa-dev,glfw3,glfw3-dev,xcursor-dev,xinerama-dev,xi-dev}
193+ $ sudo apt install libsdl2-dev libsdl3-dev
194+ ```
195+
196+ 1 . Download files,
197+
198+ ``` sh
199+ $ pwd
200+ my_dev_folder
201+ $ git clone --recursive https://github.com/dinau/ruby-imgui-dev
202+ $ git clone https://github.com/dinau/igruby_examples
203+ ```
204+
205+ Folder structure,
206+
207+ ``` txt
208+ my_dev_folder
209+ |--- igruby_examples
210+ `--- ruby-imgui-dev
211+ ```
212+
213+ 1. Generate imgui.so
214+
215+ ```sh
216+ $ cd ruby-imgui-dev/imgui_dll
217+ $ make
218+ ```
219+
220+ ` imgui.so ` file is generated in ` ruby-imgui-dev/lib `
221+
222+ 1 . Install bundler
223+
224+ ``` sh
225+ $ sudo apt install ruby-dev gcc
226+ $ gem install --user-install bundler
227+ ```
228+
229+ 1 . Set environment variable,
230+
231+ ``` sh
232+ export GEM_HOME =~ /.local/share/gem/ruby/3.3.0/bin
233+ ```
234+
235+ Part of the ` 3.3.0 ` depends on your system.
236+
237+ 1 . Execute ` bundle install `
238+
239+ ``` sh
240+ $ pwd
241+ igruby_examples
242+
243+ $ bundle install
244+
245+ Fetching gem metadata from https://rubygems.org/..
246+ Resolving dependencies...
247+ Installing fiddle 1.1.8 with native extensions
248+ Fetching opengl-bindings2 2.0.4
249+ Installing opengl-bindings2 2.0.4
250+ Bundle complete! 6 Gemfile dependencies, 9 gems now installed.
251+ Use ` bundle info [gemname]` to see where a bundled gem is installed.
252+ ```
253+
254+ 1 . Execute a example
255+
256+ ``` sh
257+ $ cd glfw_opengl3
258+ $ sh r.sh
259+ ```
260+
261+ or
262+
263+ ` $ chmod +x glfw_opengl3.rbw `
264+ then double click ` glfw_opengl3.rbw ` in your file explorer
265+
266+ or
267+
268+ ` $ bundle exec ruby glfw_opengl3.rb ` on your console
0 commit comments