Skip to content
Yet another ImGui wrapper for Ruby
Ruby CMake Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
cimgui @ 3a7d0d4
LICENSE.txt (macOS) Catching up with ImGui 1.74 Nov 26, 2019

Yet another ImGui wrapper for Ruby

  • Created : 2019-01-05
  • Last modified : 2019-11-27

[Notice] This project is experimental.


  • Ruby interpreter
    • Tested on:
      • [Windows] Ruby+Devkit 2.6.0-1 (x64)
        • ruby 2.6.0p0 (2018-12-25 revision 66547) [x64-mingw32]
      • [macOS]
        • ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-darwin18]
  • Ruby Gems
    • opengl-bindings
      • gem install opengl-bindings
    • ffi
      • gem install ffi
  • Compiler
    • Tested on:
      • [Windows] gcc (Rev1, Built by MSYS2 project) 8.2.1 20181214
      • [macOS] clang (Apple LLVM version 10.0.0 (clang-1000.11.45.5), Target: x86_64-apple-darwin18.2.0)
  • CMake

Setting up and run sample

  1. Update cimgui submodule
    • For the first time:
      • git submodule update --init --recursive
    • Update:
      • cd cimgui
      • git pull origin master <- to get latest cimgui
      • git submodule update <- to get specific revision of imgui required by cimgui
  2. Get GLFW or SDL2
    • GLFW : Use glfw_build.bat (Windows) or (macOS)
  3. Build imgui library
    • Use (macOS)
    • Use imgui_dll_build.bat (Windows)
      • e.g.)
        • ridk enable <- Activates msys2 GCC

        • imgui_dll_build.bat "D:\Program Files\CMake\bin\cmake.exe" <- You can give absolute path to cmake.exe as the 1st argument

  4. Run test.rb
    • cd sample/
    • ruby test_glfw_opengl2.rb (GLFW)
    • ruby test_sld2_opengl2.rb (SDL2)


'imgui.dylib' and 'imgui.dll' are built on top of these products and are available under the terms of the MIT License.

All ruby codes here are available under the terms of the zlib/libpng License ( ).

Ruby-Imgui : Yet another ImGui wrapper for Ruby Copyright (c) 2019 vaiorabbit

This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.

2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.

3. This notice may not be removed or altered from any source
You can’t perform that action at this time.