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