{"id":25908294,"url":"https://github.com/dinau/igruby_examples","last_synced_at":"2025-03-03T07:17:44.388Z","repository":{"id":275380652,"uuid":"925615968","full_name":"dinau/igruby_examples","owner":"dinau","description":"Some examples for ruby-imgui","archived":false,"fork":false,"pushed_at":"2025-03-01T08:08:54.000Z","size":3973,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T09:19:43.578Z","etag":null,"topics":["aibika","cimgui","examples","executable","gui","imgui","ocra","ruby","standalone","stb"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dinau.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-01T10:02:01.000Z","updated_at":"2025-03-01T08:08:57.000Z","dependencies_parsed_at":"2025-03-01T09:29:19.474Z","dependency_job_id":null,"html_url":"https://github.com/dinau/igruby_examples","commit_stats":null,"previous_names":["dinau/igruby_examples"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinau%2Figruby_examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinau%2Figruby_examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinau%2Figruby_examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinau%2Figruby_examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dinau","download_url":"https://codeload.github.com/dinau/igruby_examples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241622581,"owners_count":19992505,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aibika","cimgui","examples","executable","gui","imgui","ocra","ruby","standalone","stb"],"created_at":"2025-03-03T07:17:43.923Z","updated_at":"2025-03-03T07:17:44.376Z","avatar_url":"https://github.com/dinau.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n- [IgRuby_Examples](#igruby_examples)\n  - [Prerequisites](#prerequisites)\n  - [Install Ruby gems](#install-ruby-gems)\n  - [Install dlls](#install-dlls)\n  - [Screen shots](#screen-shots)\n    - [glfw_opengl3, sdl2_opengl3(WIP), sdl2_renderer(WIP)](#glfw_opengl3-sdl2_opengl3wip-sdl2_rendererwip)\n    - [glfw_opengl3_jp](#glfw_opengl3_jp)\n    - [glfw_opengl3_iconfont_viewer](#glfw_opengl3_iconfont_viewer)\n  - [Generating single EXE file on Windows OS with Aibika](#generating-single-exe-file-on-windows-os-with-aibika)\n  - [My tools version](#my-tools-version)\n  - [Other projects](#other-projects)\n  - [Similar project ImGui / CImGui](#similar-project-imgui--cimgui)\n  - [SDL Game tutorial Platfromer](#sdl-game-tutorial-platfromer)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n## IgRuby_Examples\n\n---\n\n[Ruby-Imgui](https://github.com/vaiorabbit/ruby-imgui) is the wrapper library to use awesome GUI library [Dear ImGui](https://github.com/ocornut/imgui).\n\n\nThis project has some examples using [Ruby-Imgui](https://github.com/vaiorabbit/ruby-imgui) library.\n\nImGui / CImGui 1.91.8 (2025/02)\n\n### Prerequisites\n\n---\n\n- [x] WindowsOS 10 or later\n- [ ] LinuxOS : N/A (Im not familiar with Ruby on Linux OS)\n- Ruby 3.1.x or later installed:  https://rubyinstaller.org/downloads/  \nOK: with or without Devkit \n\n### Install Ruby gems\n\n---\n\nNote: Specify imgui-bindings version `0.1.17` at this moment.\n\n```sh\ngem install imgui-bindings:0.1.17 sdl2-bindings stbimage aibika \n```\n\n### Install dlls\n\n---\n\n```sh\ngit clone https://github.com/dinau/igruby_examples\ncd igruby_examples\ncopy dlls_extra\\*.dll c:\\Ruby34-x64\\bin\\       # Specify your Ruby bin folder \n```\n\n### Screen shots\n\n------\n\n#### [glfw_opengl3](https://github.com/dinau/igruby_examples/blob/main/glfw_opengl3/glfw_opengl3.rb), sdl2_opengl3(WIP), sdl2_renderer(WIP)\n\n---\n\nImage load and magnifying glass\n\nFor executing program for example,\n\n```sh\npwd \nigruby_examples\ncd glfw_opengl3\nruby glfw_opengl3.rb    # Or double click glfw_opengl3.rbw in file explorer\n```\n\n![alt](img/glfw_opengl3.png)\n\n\n#### [glfw_opengl3_jp](https://github.com/dinau/igruby_examples/blob/main/glfw_opengl3_jp/glfw_opengl3_jp.rb)\n---\n\nImage load and magnifying glass\n\nFor executing program for example,\n\n```sh\npwd \nigruby_examples\ncd glfw_opengl3_jp\nruby glfw_opengl3_jp.rb    # Or double click glfw_opengl3_jp.rbw in file explorer\n```\n\n![alt](img/glfw_opengl3_jp.png)\n\n#### [glfw_opengl3_iconfont_viewer](https://github.com/dinau/igruby_examples/blob/main/glfw_opengl3_iconfont_viewer/glfw_opengl3_iconfont_viewer.rb)\n---\n\nIcon fonts viewer\n\nFor executing program for example,\n\n```sh\npwd \nigruby_examples\ncd glfw_opengl3_iconfont_viewer\nruby glfw_opengl3_iconfont_viewer.rb    # Or double click glfw_opengl3_iconfont_viewer.rbw in file explorer\n```\n\n![alt](img/glfw_opengl3_iconfont_viewer.png)\n\n### Generating single EXE file on Windows OS with [Aibika](https://github.com/tamatebako/aibika)\n\n---\n\nFor instance,\n\n```sh\npwd \nigruby_examples\ncd glfw_opengl3\nmake \n```\n\nThat's all !  \n`glfw_opengl3.exe` will be generated in current folder.\n\n\n\n### My tools version\n\n---\n- Ruby 3.4.2 (2025-02-15 revision d2930f8e7a) +PRISM [x64-mingw-ucrt]\n- Cmake version 3.31.4\n- Gcc.exe (Rev2, Built by MSYS2 project) 14.2.0\n- Git version 2.46.0.windows.1\n- Make: GNU Make 4.4.1\n\n### Other projects \n\n---\n\n- Using Ruby-ImGui project\n   - https://github.com/vaiorabbit/blend2d-bindings\n\n### Similar project ImGui / CImGui\n\n---\n\n| Language             |          | Project                                                                                                                                         |\n| -------------------: | :---:    | :----------------------------------------------------------------:                                                                              |\n| **Nim**              | Compiler | [ImGuin](https://github.com/dinau/imguin), [Nimgl_test](https://github.com/dinau/nimgl_test), [Nim_implot](https://github.com/dinau/nim_implot) |\n| **Lua**              | Script   | [LuaJITImGui](https://github.com/dinau/luajitImGui)                                                                                             |\n| **Zig**, C lang.     | Compiler | [Dear_Bindings_Build](https://github.com/dinau/dear_bindings_build)                                                                             |\n| **Zig**              | Compiler | [ImGuinZ](https://github.com/dinau/imguinz)                                                                                                     |\n| **NeLua**            | Compiler | [NeLuaImGui](https://github.com/dinau/neluaImGui)                                                                                               |\n| **Python**           | Script   | [DearPyGui for 32bit WindowsOS Binary](https://github.com/dinau/DearPyGui32/tree/win32)                                                         |\n\n### SDL Game tutorial Platfromer\n\n---\n\n![ald](https://github.com/dinau/nelua-platformer/raw/main/img/platformer-nelua-sdl2.gif)\n\n| Language             |          | Project                                                                                                  |\n| -------------------: | :---:    | :----------------------------------------------------------------:                                       |\n| **Nim**              | Compiler | [Nim-Platformer](https://github.com/dinau/nim-platformer)/ [sdl3_nim](https://github.com/dinau/sdl3_nim) |\n| **LuaJIT**           | Script   | [LuaJIT-Platformer](https://github.com/dinau/luajit-platformer)                                          |\n| **Nelua**            | Compiler | [NeLua-Platformer](https://github.com/dinau/nelua-platformer)                                            |\n| **Zig**              | Compiler | [Zig-Platformer](https://github.com/dinau/zig-platformer)                                                |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinau%2Figruby_examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdinau%2Figruby_examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinau%2Figruby_examples/lists"}