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.
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-01-08
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-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