imgui-bindings 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +298 -268
- data/LICENSE.txt +0 -0
- data/README.md +111 -91
- data/lib/imgui.dll +0 -0
- data/lib/imgui.dylib +0 -0
- data/lib/imgui.rb +5598 -5414
- data/lib/imgui_impl_glfw.rb +511 -240
- data/lib/imgui_impl_opengl2.rb +212 -212
- data/lib/imgui_impl_opengl3.rb +3 -3
- data/lib/imgui_impl_raylib.rb +460 -334
- data/lib/imgui_impl_sdl2.rb +409 -296
- data/lib/imgui_impl_sdlrenderer.rb +200 -201
- data/lib/imgui_internal.rb +49 -0
- data/lib/imnodes.dll +0 -0
- data/lib/imnodes.dylib +0 -0
- data/lib/imnodes.rb +161 -0
- metadata +7 -5
- data/lib/imgui_debug.dll +0 -0
- data/lib/imgui_debug.dylib +0 -0
data/README.md
CHANGED
@@ -1,91 +1,111 @@
|
|
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.
|
18
|
-
|
19
|
-
*
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
*
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
*
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
1.
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
*
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
*
|
66
|
-
|
67
|
-
*
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
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-08-14
|
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.1.2p20 (2022-04-12 revision 4491bb740a) [x64-mingw-ucrt]
|
18
|
+
* [macOS]
|
19
|
+
* ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [arm64-darwin21]
|
20
|
+
* Ruby Gems
|
21
|
+
* opengl-bindings
|
22
|
+
* gem install opengl-bindings
|
23
|
+
* ffi
|
24
|
+
* gem install ffi
|
25
|
+
* Compiler
|
26
|
+
* Tested on:
|
27
|
+
* [Windows] gcc (Rev1, Built by MSYS2 project) 8.2.1 20181214
|
28
|
+
* [macOS] clang (Apple clang version 13.1.6 (clang-1316.0.21.2.5), Target: arm64-apple-darwin21.5.0)
|
29
|
+
* CMake https://cmake.org/download/
|
30
|
+
|
31
|
+
<details>
|
32
|
+
<summary>Older versions</summary>
|
33
|
+
|
34
|
+
* Ruby interpreter
|
35
|
+
* Tested on:
|
36
|
+
* [Windows] https://rubyinstaller.org/downloads/ Ruby+Devkit
|
37
|
+
* ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x64-mingw32]
|
38
|
+
* ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x64-mingw32]
|
39
|
+
* ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x64-mingw32]
|
40
|
+
* [macOS]
|
41
|
+
* ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [arm64-darwin21]
|
42
|
+
* ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [arm64-darwin20]
|
43
|
+
* ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [arm64-darwin20]
|
44
|
+
* ruby 3.0.1p64 (2021-04-05 revision 0fb782ee38) [arm64-darwin20]
|
45
|
+
* ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [arm64-darwin20]
|
46
|
+
* ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-darwin19]
|
47
|
+
* ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-darwin18]
|
48
|
+
|
49
|
+
* Compiler
|
50
|
+
* Tested on:
|
51
|
+
* [Windows] gcc (Rev1, Built by MSYS2 project) 8.2.1 20181214
|
52
|
+
* [macOS] clang (Apple clang version 12.0.5 (clang-1205.0.22.11), Target: arm64-apple-darwin20.6.0)
|
53
|
+
</details>
|
54
|
+
|
55
|
+
## Setting up and run sample ##
|
56
|
+
|
57
|
+
1. Update cimgui submodule
|
58
|
+
* For the first time:
|
59
|
+
* git submodule update --init --recursive
|
60
|
+
* Update:
|
61
|
+
* cd imgui_dll/cimgui
|
62
|
+
* git pull origin master <- to get latest cimgui
|
63
|
+
* git submodule update <- to get specific revision of imgui required by cimgui
|
64
|
+
2. Get GLFW or SDL2
|
65
|
+
* GLFW : Use glfw_build.bat (Windows) or glfw_build.sh (macOS)
|
66
|
+
3. Build imgui library
|
67
|
+
* Use imgui_dll_build.sh (macOS)
|
68
|
+
* Use imgui_dll_build.bat (Windows)
|
69
|
+
* e.g.)
|
70
|
+
* > ridk enable <- Activates msys2 GCC
|
71
|
+
* > imgui_dll_build.bat "D:\Program Files\CMake\bin\cmake.exe" <- You can give absolute path to cmake.exe as the 1st argument
|
72
|
+
4. Run test.rb
|
73
|
+
* cd sample/
|
74
|
+
* ruby test_glfw_opengl2.rb (GLFW)
|
75
|
+
* ruby test_sld2_opengl2.rb (SDL2)
|
76
|
+
|
77
|
+
## License ##
|
78
|
+
|
79
|
+
All shared libraries found in `lib` directory are built on top of these products and are available under the terms of the MIT License.
|
80
|
+
* cimgui ( https://github.com/cimgui/cimgui )
|
81
|
+
* https://github.com/cimgui/cimgui/blob/master/LICENSE
|
82
|
+
* Dear ImGui ( https://github.com/ocornut/imgui )
|
83
|
+
* https://github.com/ocornut/imgui/blob/master/LICENSE.txt
|
84
|
+
* ImNodes ( https://github.com/rokups/ImNodes )
|
85
|
+
* https://github.com/rokups/ImNodes/blob/master/LICENSE
|
86
|
+
|
87
|
+
All ruby codes here are available under the terms of the zlib/libpng License ( http://opensource.org/licenses/Zlib ).
|
88
|
+
|
89
|
+
```
|
90
|
+
Ruby-Imgui : Yet another ImGui wrapper for Ruby
|
91
|
+
Copyright (c) 2019-2022 vaiorabbit <http://twitter.com/vaiorabbit>
|
92
|
+
|
93
|
+
This software is provided 'as-is', without any express or implied
|
94
|
+
warranty. In no event will the authors be held liable for any damages
|
95
|
+
arising from the use of this software.
|
96
|
+
|
97
|
+
Permission is granted to anyone to use this software for any purpose,
|
98
|
+
including commercial applications, and to alter it and redistribute it
|
99
|
+
freely, subject to the following restrictions:
|
100
|
+
|
101
|
+
1. The origin of this software must not be misrepresented; you must not
|
102
|
+
claim that you wrote the original software. If you use this software
|
103
|
+
in a product, an acknowledgment in the product documentation would be
|
104
|
+
appreciated but is not required.
|
105
|
+
|
106
|
+
2. Altered source versions must be plainly marked as such, and must not be
|
107
|
+
misrepresented as being the original software.
|
108
|
+
|
109
|
+
3. This notice may not be removed or altered from any source
|
110
|
+
distribution.
|
111
|
+
```
|
data/lib/imgui.dll
CHANGED
Binary file
|
data/lib/imgui.dylib
CHANGED
Binary file
|