imgui-bindings 0.1.15 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +385 -381
- data/LICENSE.txt +1 -1
- data/README.md +121 -121
- data/lib/imgui.aarch64.so +0 -0
- data/lib/imgui.arm64.dylib +0 -0
- data/lib/imgui.dll +0 -0
- data/lib/imgui.rb +420 -145
- data/lib/imgui.x86_64.dylib +0 -0
- data/lib/imgui.x86_64.so +0 -0
- data/lib/imgui_impl_glfw.rb +511 -511
- data/lib/imgui_impl_opengl2.rb +212 -212
- data/lib/imgui_impl_opengl3.rb +1 -1
- data/lib/imgui_impl_raylib.rb +2 -1
- data/lib/imgui_impl_sdl2.rb +409 -409
- data/lib/imgui_impl_sdlrenderer.rb +200 -200
- data/lib/imgui_internal.rb +49 -49
- data/lib/imnodes.aarch64.so +0 -0
- data/lib/imnodes.arm64.dylib +0 -0
- data/lib/imnodes.dll +0 -0
- data/lib/imnodes.rb +161 -161
- data/lib/imnodes.x86_64.dylib +0 -0
- data/lib/imnodes.x86_64.so +0 -0
- metadata +3 -6
data/LICENSE.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
Ruby-ImGui : Yet another ImGui wrapper for Ruby
|
2
|
-
Copyright (c) 2019-
|
2
|
+
Copyright (c) 2019-2025 vaiorabbit <http://twitter.com/vaiorabbit>
|
3
3
|
|
4
4
|
This software is provided 'as-is', without any express or implied
|
5
5
|
warranty. In no event will the authors be held liable for any damages
|
data/README.md
CHANGED
@@ -1,121 +1,121 @@
|
|
1
|
-
<!-- -*- mode:markdown; coding:utf-8; -*- -->
|
2
|
-
|
3
|
-
# Yet another ImGui wrapper for Ruby #
|
4
|
-
|
5
|
-
* Created : 2019-01-05
|
6
|
-
* Last modified :
|
7
|
-
|
8
|
-
<img src="https://raw.githubusercontent.com/vaiorabbit/ruby-imgui/master/doc/jpfont_test.png" width="250">
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
* Ruby
|
15
|
-
|
16
|
-
* [
|
17
|
-
* ruby 3.
|
18
|
-
* [
|
19
|
-
* ruby 3.
|
20
|
-
|
21
|
-
|
22
|
-
*
|
23
|
-
*
|
24
|
-
* gem install
|
25
|
-
|
26
|
-
|
27
|
-
*
|
28
|
-
|
29
|
-
* [
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
* Ruby
|
38
|
-
|
39
|
-
|
40
|
-
* ruby 3.
|
41
|
-
* ruby 3.0.
|
42
|
-
* ruby
|
43
|
-
|
44
|
-
|
45
|
-
* ruby 3.
|
46
|
-
* ruby 3.2.
|
47
|
-
* ruby 3.
|
48
|
-
* ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [arm64-darwin21]
|
49
|
-
* ruby 3.1.
|
50
|
-
* ruby 3.
|
51
|
-
* ruby 3.0.
|
52
|
-
* ruby 3.0.
|
53
|
-
* ruby
|
54
|
-
* ruby 2.
|
55
|
-
|
56
|
-
|
57
|
-
*
|
58
|
-
|
59
|
-
* [Windows] gcc (Rev10, Built by MSYS2 project) 11.2.0
|
60
|
-
* [Windows] gcc (Rev1, Built by MSYS2 project) 8.2.1 20181214
|
61
|
-
* [macOS] Apple clang version 14.0.0 (clang-1400.0.29.202), Target: arm64-apple-darwin22.2.0
|
62
|
-
* [macOS] clang (Apple clang version 13.1.6 (clang-1316.0.21.2.5), Target: arm64-apple-darwin21.5.0)
|
63
|
-
* [macOS] clang (Apple clang version 12.0.5 (clang-1205.0.22.11), Target: arm64-apple-darwin20.6.0)
|
64
|
-
</details>
|
65
|
-
|
66
|
-
## Setting up and run sample ##
|
67
|
-
|
68
|
-
1. Install pre-built binaries
|
69
|
-
* $ gem install imgui-bindings
|
70
|
-
2. Get GLFW or SDL2
|
71
|
-
* put dylib/dll/so into sample/
|
72
|
-
4. Run test.rb
|
73
|
-
* cd sample/
|
74
|
-
* ruby test_glfw_opengl2.rb (GLFW)
|
75
|
-
* ruby test_sld2_opengl2.rb (SDL2)
|
76
|
-
|
77
|
-
## Building binaries ##
|
78
|
-
|
79
|
-
1. Update submodules
|
80
|
-
* git submodule update --recursive --remote
|
81
|
-
2. Update cimgui.c and cimgui.h
|
82
|
-
* $ cd imgui_dll/cimgui/generator
|
83
|
-
* $ luajit ./generator.lua clang ""
|
84
|
-
3. Build library
|
85
|
-
* Use build_imgui_macos.sh, etc.
|
86
|
-
|
87
|
-
## License ##
|
88
|
-
|
89
|
-
All shared libraries found in `lib` directory are built on top of these products and are available under the terms of the MIT License.
|
90
|
-
* cimgui ( https://github.com/cimgui/cimgui )
|
91
|
-
* https://github.com/cimgui/cimgui/blob/master/LICENSE
|
92
|
-
* Dear ImGui ( https://github.com/ocornut/imgui )
|
93
|
-
* https://github.com/ocornut/imgui/blob/master/LICENSE.txt
|
94
|
-
* ImNodes ( https://github.com/rokups/ImNodes )
|
95
|
-
* https://github.com/rokups/ImNodes/blob/master/LICENSE
|
96
|
-
|
97
|
-
All ruby codes here are available under the terms of the zlib/libpng License ( http://opensource.org/licenses/Zlib ).
|
98
|
-
|
99
|
-
```
|
100
|
-
Ruby-Imgui : Yet another ImGui wrapper for Ruby
|
101
|
-
Copyright (c) 2019-
|
102
|
-
|
103
|
-
This software is provided 'as-is', without any express or implied
|
104
|
-
warranty. In no event will the authors be held liable for any damages
|
105
|
-
arising from the use of this software.
|
106
|
-
|
107
|
-
Permission is granted to anyone to use this software for any purpose,
|
108
|
-
including commercial applications, and to alter it and redistribute it
|
109
|
-
freely, subject to the following restrictions:
|
110
|
-
|
111
|
-
1. The origin of this software must not be misrepresented; you must not
|
112
|
-
claim that you wrote the original software. If you use this software
|
113
|
-
in a product, an acknowledgment in the product documentation would be
|
114
|
-
appreciated but is not required.
|
115
|
-
|
116
|
-
2. Altered source versions must be plainly marked as such, and must not be
|
117
|
-
misrepresented as being the original software.
|
118
|
-
|
119
|
-
3. This notice may not be removed or altered from any source
|
120
|
-
distribution.
|
121
|
-
```
|
1
|
+
<!-- -*- mode:markdown; coding:utf-8; -*- -->
|
2
|
+
|
3
|
+
# Yet another ImGui wrapper for Ruby #
|
4
|
+
|
5
|
+
* Created : 2019-01-05
|
6
|
+
* Last modified : 2025-01-01
|
7
|
+
|
8
|
+
<img src="https://raw.githubusercontent.com/vaiorabbit/ruby-imgui/master/doc/jpfont_test.png" width="250">
|
9
|
+
|
10
|
+
## Prerequisites ##
|
11
|
+
|
12
|
+
* Ruby interpreter
|
13
|
+
* Tested on:
|
14
|
+
* [Windows] https://rubyinstaller.org/downloads/ Ruby+Devkit
|
15
|
+
* ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [x64-mingw-ucrt]
|
16
|
+
* [macOS]
|
17
|
+
* ruby 3.3.3 (2024-06-12 revision f1c7b6f435) [arm64-darwin23]
|
18
|
+
* [Linux]
|
19
|
+
* ruby 3.2.0 (2022-12-25 revision a528908271) [aarch64-linux]
|
20
|
+
* Ruby Gems
|
21
|
+
* opengl-bindings2
|
22
|
+
* gem install opengl-bindings2
|
23
|
+
* ffi
|
24
|
+
* gem install ffi
|
25
|
+
* Compiler
|
26
|
+
* Tested on:
|
27
|
+
* [Windows] gcc (Rev2, Built by MSYS2 project) 14.2.0
|
28
|
+
* [macOS] Apple clang version 15.0.0 (clang-1500.3.9.4)
|
29
|
+
* [Linux] gcc (Debian 10.2.1-6) 10.2.1 20210110
|
30
|
+
* CMake https://cmake.org/download/
|
31
|
+
|
32
|
+
<details>
|
33
|
+
<summary>Older versions</summary>
|
34
|
+
|
35
|
+
* Ruby interpreter
|
36
|
+
* Tested on:
|
37
|
+
* [Windows] https://rubyinstaller.org/downloads/ Ruby+Devkit
|
38
|
+
* ruby 3.2.0 (2022-12-25 revision a528908271) [x64-mingw-ucrt]
|
39
|
+
* ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x64-mingw-ucrt]
|
40
|
+
* ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x64-mingw32]
|
41
|
+
* ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x64-mingw32]
|
42
|
+
* ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x64-mingw32]
|
43
|
+
* [macOS]
|
44
|
+
* ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin23]
|
45
|
+
* ruby 3.2.1 (2023-02-08 revision 31819e82c8) [arm64-darwin22]
|
46
|
+
* ruby 3.2.0 (2022-12-25 revision a528908271) [arm64-darwin21]
|
47
|
+
* ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [arm64-darwin21]
|
48
|
+
* ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [arm64-darwin21]
|
49
|
+
* ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [arm64-darwin20]
|
50
|
+
* ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [arm64-darwin20]
|
51
|
+
* ruby 3.0.1p64 (2021-04-05 revision 0fb782ee38) [arm64-darwin20]
|
52
|
+
* ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [arm64-darwin20]
|
53
|
+
* ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-darwin19]
|
54
|
+
* ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-darwin18]
|
55
|
+
|
56
|
+
* Compiler
|
57
|
+
* Tested on:
|
58
|
+
* [Windows] gcc (Rev7, Built by MSYS2 project) 12.2.0
|
59
|
+
* [Windows] gcc (Rev10, Built by MSYS2 project) 11.2.0
|
60
|
+
* [Windows] gcc (Rev1, Built by MSYS2 project) 8.2.1 20181214
|
61
|
+
* [macOS] Apple clang version 14.0.0 (clang-1400.0.29.202), Target: arm64-apple-darwin22.2.0
|
62
|
+
* [macOS] clang (Apple clang version 13.1.6 (clang-1316.0.21.2.5), Target: arm64-apple-darwin21.5.0)
|
63
|
+
* [macOS] clang (Apple clang version 12.0.5 (clang-1205.0.22.11), Target: arm64-apple-darwin20.6.0)
|
64
|
+
</details>
|
65
|
+
|
66
|
+
## Setting up and run sample ##
|
67
|
+
|
68
|
+
1. Install pre-built binaries
|
69
|
+
* $ gem install imgui-bindings
|
70
|
+
2. Get GLFW or SDL2
|
71
|
+
* put dylib/dll/so into sample/
|
72
|
+
4. Run test.rb
|
73
|
+
* cd sample/
|
74
|
+
* ruby test_glfw_opengl2.rb (GLFW)
|
75
|
+
* ruby test_sld2_opengl2.rb (SDL2)
|
76
|
+
|
77
|
+
## Building binaries ##
|
78
|
+
|
79
|
+
1. Update submodules
|
80
|
+
* git submodule update --recursive --remote
|
81
|
+
2. Update cimgui.c and cimgui.h
|
82
|
+
* $ cd imgui_dll/cimgui/generator
|
83
|
+
* $ luajit ./generator.lua clang ""
|
84
|
+
3. Build library
|
85
|
+
* Use build_imgui_macos.sh, etc.
|
86
|
+
|
87
|
+
## License ##
|
88
|
+
|
89
|
+
All shared libraries found in `lib` directory are built on top of these products and are available under the terms of the MIT License.
|
90
|
+
* cimgui ( https://github.com/cimgui/cimgui )
|
91
|
+
* https://github.com/cimgui/cimgui/blob/master/LICENSE
|
92
|
+
* Dear ImGui ( https://github.com/ocornut/imgui )
|
93
|
+
* https://github.com/ocornut/imgui/blob/master/LICENSE.txt
|
94
|
+
* ImNodes ( https://github.com/rokups/ImNodes )
|
95
|
+
* https://github.com/rokups/ImNodes/blob/master/LICENSE
|
96
|
+
|
97
|
+
All ruby codes here are available under the terms of the zlib/libpng License ( http://opensource.org/licenses/Zlib ).
|
98
|
+
|
99
|
+
```
|
100
|
+
Ruby-Imgui : Yet another ImGui wrapper for Ruby
|
101
|
+
Copyright (c) 2019-2025 vaiorabbit <http://twitter.com/vaiorabbit>
|
102
|
+
|
103
|
+
This software is provided 'as-is', without any express or implied
|
104
|
+
warranty. In no event will the authors be held liable for any damages
|
105
|
+
arising from the use of this software.
|
106
|
+
|
107
|
+
Permission is granted to anyone to use this software for any purpose,
|
108
|
+
including commercial applications, and to alter it and redistribute it
|
109
|
+
freely, subject to the following restrictions:
|
110
|
+
|
111
|
+
1. The origin of this software must not be misrepresented; you must not
|
112
|
+
claim that you wrote the original software. If you use this software
|
113
|
+
in a product, an acknowledgment in the product documentation would be
|
114
|
+
appreciated but is not required.
|
115
|
+
|
116
|
+
2. Altered source versions must be plainly marked as such, and must not be
|
117
|
+
misrepresented as being the original software.
|
118
|
+
|
119
|
+
3. This notice may not be removed or altered from any source
|
120
|
+
distribution.
|
121
|
+
```
|
data/lib/imgui.aarch64.so
CHANGED
Binary file
|
data/lib/imgui.arm64.dylib
CHANGED
Binary file
|
data/lib/imgui.dll
CHANGED
Binary file
|