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.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
backup
cimgui @ 3a7d0d4
doc
generator
imgui_dll
sample
third_party
.gitignore
.gitmodules
ChangeLog
LICENSE.txt
README.md (macOS) Catching up with ImGui 1.74 Nov 26, 2019
imgui.dll
imgui.dylib
imgui.rb
imgui_impl_glfw.rb
imgui_impl_opengl2.rb
imgui_impl_sdl2.rb

README.md

Yet another ImGui wrapper for Ruby

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

[Notice] This project is experimental.

Prerequisites

  • Ruby interpreter
    • Tested on:
      • [Windows] https://rubyinstaller.org/downloads/ 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 https://cmake.org/download/

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 glfw_build.sh (macOS)
  3. Build imgui library
    • Use imgui_dll_build.sh (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)

License

'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 ( http://opensource.org/licenses/Zlib ).

Ruby-Imgui : Yet another ImGui wrapper for Ruby Copyright (c) 2019 vaiorabbit http://twitter.com/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
distribution.
You can’t perform that action at this time.