imgui-bindings 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ChangeLog +281 -268
- data/LICENSE.txt +0 -0
- data/README.md +91 -91
- data/lib/imgui.dll +0 -0
- data/lib/imgui.dylib +0 -0
- data/lib/imgui.rb +5600 -5414
- data/lib/imgui_debug.dll +0 -0
- data/lib/imgui_debug.dylib +0 -0
- data/lib/imgui_impl_glfw.rb +511 -240
- data/lib/imgui_impl_opengl2.rb +212 -212
- data/lib/imgui_impl_raylib.rb +460 -334
- data/lib/imgui_impl_sdl2.rb +409 -296
- data/lib/imgui_impl_sdlrenderer.rb +201 -201
- metadata +2 -2
data/README.md
CHANGED
@@ -1,91 +1,91 @@
|
|
1
|
-
<!-- -*- mode:markdown; coding:utf-8; -*- -->
|
2
|
-
|
3
|
-
# Yet another ImGui wrapper for Ruby #
|
4
|
-
|
5
|
-
* Created : 2019-01-05
|
6
|
-
* Last modified : 2022-
|
7
|
-
|
8
|
-
<img src="https://raw.githubusercontent.com/vaiorabbit/ruby-imgui/master/doc/jpfont_test.png" width="250">
|
9
|
-
|
10
|
-
[Notice] This project is experimental.
|
11
|
-
|
12
|
-
## Prerequisites ##
|
13
|
-
|
14
|
-
* Ruby interpreter
|
15
|
-
* Tested on:
|
16
|
-
* [Windows] https://rubyinstaller.org/downloads/ Ruby+Devkit
|
17
|
-
* ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x64-mingw32]
|
18
|
-
* ~~ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x64-mingw32]~~
|
19
|
-
* ~~ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x64-mingw32]~~
|
20
|
-
* [macOS]
|
21
|
-
* ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [arm64-darwin20]
|
22
|
-
* ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [arm64-darwin20]
|
23
|
-
* ~~ruby 3.0.1p64 (2021-04-05 revision 0fb782ee38) [arm64-darwin20]~~
|
24
|
-
* ~~ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [arm64-darwin20]~~
|
25
|
-
* ~~ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-darwin19]~~
|
26
|
-
* ~~ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-darwin18]~~
|
27
|
-
* Ruby Gems
|
28
|
-
* opengl-bindings
|
29
|
-
* gem install opengl-bindings
|
30
|
-
* ffi
|
31
|
-
* gem install ffi
|
32
|
-
* Compiler
|
33
|
-
* Tested on:
|
34
|
-
* [Windows] gcc (Rev1, Built by MSYS2 project) 8.2.1 20181214
|
35
|
-
* [macOS] clang (Apple clang version 12.0.5 (clang-1205.0.22.11), Target: arm64-apple-darwin20.6.0)
|
36
|
-
* CMake https://cmake.org/download/
|
37
|
-
|
38
|
-
|
39
|
-
## Setting up and run sample ##
|
40
|
-
|
41
|
-
1. Update cimgui submodule
|
42
|
-
* For the first time:
|
43
|
-
* git submodule update --init --recursive
|
44
|
-
* Update:
|
45
|
-
* cd cimgui
|
46
|
-
* git pull origin master <- to get latest cimgui
|
47
|
-
* git submodule update <- to get specific revision of imgui required by cimgui
|
48
|
-
2. Get GLFW or SDL2
|
49
|
-
* GLFW : Use glfw_build.bat (Windows) or glfw_build.sh (macOS)
|
50
|
-
3. Build imgui library
|
51
|
-
* Use imgui_dll_build.sh (macOS)
|
52
|
-
* Use imgui_dll_build.bat (Windows)
|
53
|
-
* e.g.)
|
54
|
-
* > ridk enable <- Activates msys2 GCC
|
55
|
-
* > imgui_dll_build.bat "D:\Program Files\CMake\bin\cmake.exe" <- You can give absolute path to cmake.exe as the 1st argument
|
56
|
-
4. Run test.rb
|
57
|
-
* cd sample/
|
58
|
-
* ruby test_glfw_opengl2.rb (GLFW)
|
59
|
-
* ruby test_sld2_opengl2.rb (SDL2)
|
60
|
-
|
61
|
-
## License ##
|
62
|
-
|
63
|
-
'imgui.dylib', 'imgui.dll' and 'imgui_debug.dll' are built on top of these products and are available under the terms of the MIT License.
|
64
|
-
* cimgui ( https://github.com/cimgui/cimgui )
|
65
|
-
* https://github.com/cimgui/cimgui/blob/master/LICENSE
|
66
|
-
* Dear ImGui ( https://github.com/ocornut/imgui )
|
67
|
-
* https://github.com/ocornut/imgui/blob/master/LICENSE.txt
|
68
|
-
|
69
|
-
All ruby codes here are available under the terms of the zlib/libpng License ( http://opensource.org/licenses/Zlib ).
|
70
|
-
|
71
|
-
Ruby-Imgui : Yet another ImGui wrapper for Ruby
|
72
|
-
Copyright (c) 2019-2022 vaiorabbit <http://twitter.com/vaiorabbit>
|
73
|
-
|
74
|
-
This software is provided 'as-is', without any express or implied
|
75
|
-
warranty. In no event will the authors be held liable for any damages
|
76
|
-
arising from the use of this software.
|
77
|
-
|
78
|
-
Permission is granted to anyone to use this software for any purpose,
|
79
|
-
including commercial applications, and to alter it and redistribute it
|
80
|
-
freely, subject to the following restrictions:
|
81
|
-
|
82
|
-
1. The origin of this software must not be misrepresented; you must not
|
83
|
-
claim that you wrote the original software. If you use this software
|
84
|
-
in a product, an acknowledgment in the product documentation would be
|
85
|
-
appreciated but is not required.
|
86
|
-
|
87
|
-
2. Altered source versions must be plainly marked as such, and must not be
|
88
|
-
misrepresented as being the original software.
|
89
|
-
|
90
|
-
3. This notice may not be removed or altered from any source
|
91
|
-
distribution.
|
1
|
+
<!-- -*- mode:markdown; coding:utf-8; -*- -->
|
2
|
+
|
3
|
+
# Yet another ImGui wrapper for Ruby #
|
4
|
+
|
5
|
+
* Created : 2019-01-05
|
6
|
+
* Last modified : 2022-02-12
|
7
|
+
|
8
|
+
<img src="https://raw.githubusercontent.com/vaiorabbit/ruby-imgui/master/doc/jpfont_test.png" width="250">
|
9
|
+
|
10
|
+
[Notice] This project is experimental.
|
11
|
+
|
12
|
+
## Prerequisites ##
|
13
|
+
|
14
|
+
* Ruby interpreter
|
15
|
+
* Tested on:
|
16
|
+
* [Windows] https://rubyinstaller.org/downloads/ Ruby+Devkit
|
17
|
+
* ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x64-mingw32]
|
18
|
+
* ~~ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x64-mingw32]~~
|
19
|
+
* ~~ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x64-mingw32]~~
|
20
|
+
* [macOS]
|
21
|
+
* ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [arm64-darwin20]
|
22
|
+
* ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [arm64-darwin20]
|
23
|
+
* ~~ruby 3.0.1p64 (2021-04-05 revision 0fb782ee38) [arm64-darwin20]~~
|
24
|
+
* ~~ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [arm64-darwin20]~~
|
25
|
+
* ~~ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-darwin19]~~
|
26
|
+
* ~~ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-darwin18]~~
|
27
|
+
* Ruby Gems
|
28
|
+
* opengl-bindings
|
29
|
+
* gem install opengl-bindings
|
30
|
+
* ffi
|
31
|
+
* gem install ffi
|
32
|
+
* Compiler
|
33
|
+
* Tested on:
|
34
|
+
* [Windows] gcc (Rev1, Built by MSYS2 project) 8.2.1 20181214
|
35
|
+
* [macOS] clang (Apple clang version 12.0.5 (clang-1205.0.22.11), Target: arm64-apple-darwin20.6.0)
|
36
|
+
* CMake https://cmake.org/download/
|
37
|
+
|
38
|
+
|
39
|
+
## Setting up and run sample ##
|
40
|
+
|
41
|
+
1. Update cimgui submodule
|
42
|
+
* For the first time:
|
43
|
+
* git submodule update --init --recursive
|
44
|
+
* Update:
|
45
|
+
* cd cimgui
|
46
|
+
* git pull origin master <- to get latest cimgui
|
47
|
+
* git submodule update <- to get specific revision of imgui required by cimgui
|
48
|
+
2. Get GLFW or SDL2
|
49
|
+
* GLFW : Use glfw_build.bat (Windows) or glfw_build.sh (macOS)
|
50
|
+
3. Build imgui library
|
51
|
+
* Use imgui_dll_build.sh (macOS)
|
52
|
+
* Use imgui_dll_build.bat (Windows)
|
53
|
+
* e.g.)
|
54
|
+
* > ridk enable <- Activates msys2 GCC
|
55
|
+
* > imgui_dll_build.bat "D:\Program Files\CMake\bin\cmake.exe" <- You can give absolute path to cmake.exe as the 1st argument
|
56
|
+
4. Run test.rb
|
57
|
+
* cd sample/
|
58
|
+
* ruby test_glfw_opengl2.rb (GLFW)
|
59
|
+
* ruby test_sld2_opengl2.rb (SDL2)
|
60
|
+
|
61
|
+
## License ##
|
62
|
+
|
63
|
+
'imgui.dylib', 'imgui.dll' and 'imgui_debug.dll' are built on top of these products and are available under the terms of the MIT License.
|
64
|
+
* cimgui ( https://github.com/cimgui/cimgui )
|
65
|
+
* https://github.com/cimgui/cimgui/blob/master/LICENSE
|
66
|
+
* Dear ImGui ( https://github.com/ocornut/imgui )
|
67
|
+
* https://github.com/ocornut/imgui/blob/master/LICENSE.txt
|
68
|
+
|
69
|
+
All ruby codes here are available under the terms of the zlib/libpng License ( http://opensource.org/licenses/Zlib ).
|
70
|
+
|
71
|
+
Ruby-Imgui : Yet another ImGui wrapper for Ruby
|
72
|
+
Copyright (c) 2019-2022 vaiorabbit <http://twitter.com/vaiorabbit>
|
73
|
+
|
74
|
+
This software is provided 'as-is', without any express or implied
|
75
|
+
warranty. In no event will the authors be held liable for any damages
|
76
|
+
arising from the use of this software.
|
77
|
+
|
78
|
+
Permission is granted to anyone to use this software for any purpose,
|
79
|
+
including commercial applications, and to alter it and redistribute it
|
80
|
+
freely, subject to the following restrictions:
|
81
|
+
|
82
|
+
1. The origin of this software must not be misrepresented; you must not
|
83
|
+
claim that you wrote the original software. If you use this software
|
84
|
+
in a product, an acknowledgment in the product documentation would be
|
85
|
+
appreciated but is not required.
|
86
|
+
|
87
|
+
2. Altered source versions must be plainly marked as such, and must not be
|
88
|
+
misrepresented as being the original software.
|
89
|
+
|
90
|
+
3. This notice may not be removed or altered from any source
|
91
|
+
distribution.
|
data/lib/imgui.dll
CHANGED
Binary file
|
data/lib/imgui.dylib
CHANGED
Binary file
|