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