imgui-bindings 0.1.10-x86_64-linux
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.
- checksums.yaml +7 -0
- data/ChangeLog +361 -0
- data/LICENSE.txt +21 -0
- data/README.md +119 -0
- data/lib/imgui.rb +5817 -0
- data/lib/imgui.x86_64.so +0 -0
- data/lib/imgui_impl_glfw.rb +511 -0
- data/lib/imgui_impl_opengl2.rb +212 -0
- data/lib/imgui_impl_opengl3.rb +509 -0
- data/lib/imgui_impl_raylib.rb +454 -0
- data/lib/imgui_impl_sdl2.rb +409 -0
- data/lib/imgui_impl_sdlrenderer.rb +200 -0
- data/lib/imgui_internal.rb +49 -0
- data/lib/imnodes.rb +161 -0
- data/lib/imnodes.x86_64.so +0 -0
- metadata +87 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5934e0a9a314a12d613d62a52aec46d1fdb66043c6c19c8175f847ffc0a9db38
|
4
|
+
data.tar.gz: eabcf2127bafc2bd1e677523a47d6147c48b57091db63baa44e37993b69e4a87
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6e49c2bf67a49c6568674c62f0cdd313c021f99cd64a6722be0cedbf00b68f35105b9b53f9a7ad128a262e50770d869261e1c51d31cf7c83e61b78e5a14856b0
|
7
|
+
data.tar.gz: 1468a59472f65b7bcce295da5fc467cbcec14d1a736ef1024cb6344dbed018681da9493b47a2170d331cb11b26b7731d184d25d56ff20f52bd8a0bc65f025c91
|
data/ChangeLog
ADDED
@@ -0,0 +1,361 @@
|
|
1
|
+
2024-01-12 vaiorabbit <http://twitter.com/vaiorabbit>
|
2
|
+
|
3
|
+
* ImGui v1.90.1
|
4
|
+
|
5
|
+
2023-12-10 vaiorabbit <http://twitter.com/vaiorabbit>
|
6
|
+
|
7
|
+
* macOS : Generate libraries for each platform
|
8
|
+
|
9
|
+
2023-11-19 vaiorabbit <http://twitter.com/vaiorabbit>
|
10
|
+
|
11
|
+
* ImGui v1.90.0
|
12
|
+
|
13
|
+
2023-09-09 vaiorabbit <http://twitter.com/vaiorabbit>
|
14
|
+
|
15
|
+
* ImGui v1.89.9
|
16
|
+
* Added several structs
|
17
|
+
|
18
|
+
2023-08-10 vaiorabbit <http://twitter.com/vaiorabbit>
|
19
|
+
|
20
|
+
* ImGui v1.89.8
|
21
|
+
|
22
|
+
2023-07-29 vaiorabbit <http://twitter.com/vaiorabbit>
|
23
|
+
|
24
|
+
* ImGui v1.89.7
|
25
|
+
|
26
|
+
2023-07-02 vaiorabbit <http://twitter.com/vaiorabbit>
|
27
|
+
|
28
|
+
* ImGui v1.89.6
|
29
|
+
|
30
|
+
2023-04-15 vaiorabbit <http://twitter.com/vaiorabbit>
|
31
|
+
|
32
|
+
* ImGui v1.89.5
|
33
|
+
|
34
|
+
2023-03-19 vaiorabbit <http://twitter.com/vaiorabbit>
|
35
|
+
|
36
|
+
* ImGui v1.89.4
|
37
|
+
|
38
|
+
2023-02-23 vaiorabbit <http://twitter.com/vaiorabbit>
|
39
|
+
|
40
|
+
* ImGui v1.89.3
|
41
|
+
* sample/basic_usage.rb: Added ImGui::SeparatorText demo
|
42
|
+
|
43
|
+
2023-01-09 vaiorabbit <http://twitter.com/vaiorabbit>
|
44
|
+
|
45
|
+
* Added Linux binaries (Only tested on aarch64 Chromebook Linux)
|
46
|
+
|
47
|
+
2023-01-08 vaiorabbit <http://twitter.com/vaiorabbit>
|
48
|
+
|
49
|
+
* Generate function comments in bindings codes
|
50
|
+
|
51
|
+
2023-01-07 vaiorabbit <http://twitter.com/vaiorabbit>
|
52
|
+
|
53
|
+
* ImGui v1.89.2
|
54
|
+
|
55
|
+
2023-01-04 vaiorabbit <http://twitter.com/vaiorabbit>
|
56
|
+
|
57
|
+
* lib/imgui_impl_raylib.rb: Removed codes manipulating blend function. Now it seems there's no need to do so.
|
58
|
+
* imgui_dll/cimgui_internal.cpp: Internal functions I need are now imported manually
|
59
|
+
|
60
|
+
2022-12-25 vaiorabbit <http://twitter.com/vaiorabbit>
|
61
|
+
|
62
|
+
* ImGui v1.89.1
|
63
|
+
|
64
|
+
2022-08-14 vaiorabbit <http://twitter.com/vaiorabbit>
|
65
|
+
|
66
|
+
* Added ImNodes ( https://github.com/rokups/ImNodes ) support
|
67
|
+
* Moved cimgui location
|
68
|
+
* Removed unmaintained debug version of shared libraries
|
69
|
+
* Added hand-written binding code for imgui_internal.h
|
70
|
+
|
71
|
+
2022-08-06 vaiorabbit <http://twitter.com/vaiorabbit>
|
72
|
+
|
73
|
+
* Fixed several warnings
|
74
|
+
|
75
|
+
2022-07-02 vaiorabbit <http://twitter.com/vaiorabbit>
|
76
|
+
|
77
|
+
* (macOS) ImGui 1.88
|
78
|
+
* (Windows) ImGui 1.88
|
79
|
+
* Updated tested Ruby version
|
80
|
+
|
81
|
+
2022-02-12 vaiorabbit <http://twitter.com/vaiorabbit>
|
82
|
+
|
83
|
+
* imgui_impl_sdl2.rb: Updated to use event API
|
84
|
+
* imgui_impl_sdlrenderer.rb: Updated to use new API / Applied https://github.com/ocornut/imgui/commit/c39192ba6403d963d5983fa3e5973f5170cb0e31
|
85
|
+
* imgui_impl_raylib.rb: Updated to use event API
|
86
|
+
* basic_usage_sdl2_opengl2.rb: Updated to use new API
|
87
|
+
* (Windows) ImGui 1.87
|
88
|
+
|
89
|
+
2022-02-11 vaiorabbit <http://twitter.com/vaiorabbit>
|
90
|
+
|
91
|
+
* (macOS) ImGui 1.87
|
92
|
+
* imgui_impl_glfw.rb: Updated to use event API
|
93
|
+
|
94
|
+
2022-01-08 vaiorabbit <http://twitter.com/vaiorabbit>
|
95
|
+
|
96
|
+
* imgui_impl_raylib.rb: Added. Use this with Ruby raylib-bindings ( https://github.com/vaiorabbit/raylib-bindings )
|
97
|
+
|
98
|
+
2022-01-07 vaiorabbit <http://twitter.com/vaiorabbit>
|
99
|
+
|
100
|
+
* Use opengl-bindings2
|
101
|
+
|
102
|
+
2022-01-01 vaiorabbit <http://twitter.com/vaiorabbit>
|
103
|
+
|
104
|
+
* imgui-bindings.gemspec: Added
|
105
|
+
|
106
|
+
2021-12-31 vaiorabbit <http://twitter.com/vaiorabbit>
|
107
|
+
|
108
|
+
* Added setup_dll.rb etc. for automatic library loading
|
109
|
+
* Changed generator output paths
|
110
|
+
* (Windows) Build binary with the latest ImGui
|
111
|
+
|
112
|
+
2021-12-26 vaiorabbit <http://twitter.com/vaiorabbit>
|
113
|
+
|
114
|
+
* (macOS) ImGui 1.86
|
115
|
+
* imgui_impl_sdlrenderer.rb, sample/test_sdl2_sdlrenderer.rb: Temporary fix to render correctly
|
116
|
+
|
117
|
+
2021-12-15 vaiorabbit <http://twitter.com/vaiorabbit>
|
118
|
+
|
119
|
+
* imgui_impl_sdlrenderer.rb, sample/test_sdl2_sdlrenderer.rb: Added
|
120
|
+
|
121
|
+
2021-12-09 vaiorabbit <http://twitter.com/vaiorabbit>
|
122
|
+
|
123
|
+
* (macOS) ImGui 1.86 WIP
|
124
|
+
|
125
|
+
2021-10-16 vaiorabbit <http://twitter.com/vaiorabbit>
|
126
|
+
|
127
|
+
* (macOS) ImGui 1.85
|
128
|
+
* basic_usage.rb: Added ImGuiDemo::StackToolWindow
|
129
|
+
|
130
|
+
2021-09-05 vaiorabbit <http://twitter.com/vaiorabbit>
|
131
|
+
|
132
|
+
* (macOS) ImGui 1.84.2
|
133
|
+
|
134
|
+
2021-08-22 vaiorabbit <http://twitter.com/vaiorabbit>
|
135
|
+
|
136
|
+
* (macOS) ImGui 1.84.1
|
137
|
+
|
138
|
+
2021-08-07 vaiorabbit <http://twitter.com/vaiorabbit>
|
139
|
+
|
140
|
+
* imgui_impl_sdl2.rb: Applied https://github.com/ocornut/imgui/commit/1cdd110eb41830ed3c852eade976a066946b7071 (See https://github.com/ocornut/imgui/pull/2696#issuecomment-889336981 )
|
141
|
+
* imgui_impl_glfw.rb: Applied https://github.com/ocornut/imgui/commit/044fd0cd2d976b31962689afa73c9824a6a08146 (See https://github.com/ocornut/imgui/pull/2696#issuecomment-889336981 )
|
142
|
+
|
143
|
+
2021-07-05 vaiorabbit <http://twitter.com/vaiorabbit>
|
144
|
+
|
145
|
+
* imgui_impl_sdl2.rb: Partially applied changes in https://github.com/ocornut/imgui/commit/6792e1a3e08c30c6e9015cf51658d14f7872b10b https://github.com/ocornut/imgui/blob/6792e1a3e08c30c6e9015cf51658d14f7872b10b/backends/imgui_impl_sdl.cpp
|
146
|
+
|
147
|
+
2021-06-21 vaiorabbit <http://twitter.com/vaiorabbit>
|
148
|
+
|
149
|
+
* imgui_impl_opengl3.rb: Applied changes in https://github.com/ocornut/imgui/pull/4244
|
150
|
+
|
151
|
+
2021-06-20 vaiorabbit <http://twitter.com/vaiorabbit>
|
152
|
+
|
153
|
+
* (Windows) ImGui 1.83
|
154
|
+
* (macOS) ImGui 1.83
|
155
|
+
* (macOS) Build script now generates ARM64 binary
|
156
|
+
* Added reference comments of arguments and return value
|
157
|
+
* Several APIs now contain underscore in its name due to cimgui change (e.g. GetColorU32Col -> GetColorU32_Col)
|
158
|
+
* (Experimental) Added overload functions (e.g.: ImGui::Combo, ImGui::MenuItem)
|
159
|
+
|
160
|
+
2021-03-27 vaiorabbit <http://twitter.com/vaiorabbit>
|
161
|
+
|
162
|
+
* (Windows) ImGui 1.82
|
163
|
+
|
164
|
+
2021-03-21 vaiorabbit <http://twitter.com/vaiorabbit>
|
165
|
+
|
166
|
+
* (macOS) ImGui 1.82
|
167
|
+
|
168
|
+
2021-02-20 vaiorabbit <http://twitter.com/vaiorabbit>
|
169
|
+
|
170
|
+
* Applied https://github.com/ocornut/imgui/commit/bda12e5fdd829e44e01a25aac015e156f3dad761
|
171
|
+
|
172
|
+
2021-02-12 vaiorabbit <http://twitter.com/vaiorabbit>
|
173
|
+
|
174
|
+
* (Windows) ImGui 1.81
|
175
|
+
|
176
|
+
2021-02-11 vaiorabbit <http://twitter.com/vaiorabbit>
|
177
|
+
|
178
|
+
* (macOS) ImGui 1.81
|
179
|
+
* sample: Cleaned up Japanese font initialization
|
180
|
+
|
181
|
+
2021-02-07 vaiorabbit <http://twitter.com/vaiorabbit>
|
182
|
+
|
183
|
+
* (Windows) ImGui 1.80
|
184
|
+
* (Windows) Built imgui.dll and imgui_debug.dll with:
|
185
|
+
* ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x64-mingw32]
|
186
|
+
* gcc (Rev6, Built by MSYS2 project) 10.2.0
|
187
|
+
* (macOS) ImGui 1.80
|
188
|
+
* (macOS) Built imgui.dylib with:
|
189
|
+
* ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [arm64-darwin20]
|
190
|
+
* Apple clang version 12.0.0 (clang-1200.0.32.29) / Target: arm64-apple-darwin20.2.0
|
191
|
+
* imgui_impl_opengl2.rb, imgui_impl_opengl3.rb: Applied same changes made at https://github.com/ocornut/imgui/commit/7d5d5711c20d2448fb379de245ddc3b950289873
|
192
|
+
* generator/generate_imgui.rb: Modified to handle exceptions
|
193
|
+
|
194
|
+
2020-12-20 vaiorabbit <http://twitter.com/vaiorabbit>
|
195
|
+
|
196
|
+
* third_party/glfw_build.sh, third_party/sdl2_build_dylib.sh: Modified/added to support x86_64|arm64 Universal Binary
|
197
|
+
|
198
|
+
2020-11-15 vaiorabbit <http://twitter.com/vaiorabbit>
|
199
|
+
|
200
|
+
* (Windows) ImGui 1.79
|
201
|
+
* (macOS) ImGui 1.79
|
202
|
+
|
203
|
+
2020-08-24 vaiorabbit <http://twitter.com/vaiorabbit>
|
204
|
+
|
205
|
+
* (macOS) ImGui 1.78
|
206
|
+
|
207
|
+
2020-08-22 vaiorabbit <http://twitter.com/vaiorabbit>
|
208
|
+
|
209
|
+
* (Windows) ImGui 1.78
|
210
|
+
* (Windows) Added imgui_debug.dll (Built with 'CMAKE_BUILD_TYPE=Debug')
|
211
|
+
|
212
|
+
2020-07-04 vaiorabbit <http://twitter.com/vaiorabbit>
|
213
|
+
|
214
|
+
* (Windows) ImGui 1.77
|
215
|
+
|
216
|
+
2020-06-14 vaiorabbit <http://twitter.com/vaiorabbit>
|
217
|
+
|
218
|
+
* imgui_impl_sdl2.rb: Fixed forcing 'include SDL2'
|
219
|
+
|
220
|
+
2020-06-12 vaiorabbit <http://twitter.com/vaiorabbit>
|
221
|
+
|
222
|
+
* basic_usage.rb: Fixed ImGui::End() mismatch
|
223
|
+
|
224
|
+
2020-06-11 vaiorabbit <http://twitter.com/vaiorabbit>
|
225
|
+
|
226
|
+
* imgui_impl_sdl2.rb: Renamed ImplSDL2_InitForOpenGL to ImplSDL2_Init
|
227
|
+
|
228
|
+
2020-05-13 vaiorabbit <http://twitter.com/vaiorabbit>
|
229
|
+
|
230
|
+
* 'Added support for pointer to struct. Now you can call like 'io[:Fonts].AddFontDefault()'.
|
231
|
+
* Constructors now return FFI::Struct, not :pointer
|
232
|
+
|
233
|
+
2020-05-12 vaiorabbit <http://twitter.com/vaiorabbit>
|
234
|
+
|
235
|
+
* Added instance methods (e.g.: ImGui::FontAtlas_AddFontDefault(io[:Fonts]) -> ImFontAtlas.new(io[:Fonts]).AddFontDefault())
|
236
|
+
|
237
|
+
2020-05-10 vaiorabbit <http://twitter.com/vaiorabbit>
|
238
|
+
|
239
|
+
* imgui_impl_opengl3.rb: Changed default GLSL version string from 130 to 150 (Ref.: https://github.com/ocornut/imgui/pull/3199 )
|
240
|
+
* generator: Read "stname", "constructor" and "destructor" from "definitions.json"
|
241
|
+
|
242
|
+
2020-05-05 vaiorabbit <http://twitter.com/vaiorabbit>
|
243
|
+
|
244
|
+
* Added ImDrawList support / Added ImColor.col32
|
245
|
+
* Added support for ImFontConfig / Added icon font sample
|
246
|
+
* Added support for FontGlyphRangesBuilder, ImWchar vector / Now constructors return :pointer
|
247
|
+
* Added support for ImGuiTextFilter, etc. / public interfaces are changed a bit ("ImGuixxx" prefixes are omitted)
|
248
|
+
* Fixed ImColor.create argument conversion
|
249
|
+
* Fixed wrong default argument (sizeof(float))
|
250
|
+
* Added provisional callback signature analyzer / Added callback typedef generation
|
251
|
+
* Added some CallbackData / Added ImGuiTypedefMapEntry for later use
|
252
|
+
* Returns ImVec2/4/Color correctly / Added default augument values to ImVec2.create, etc.
|
253
|
+
|
254
|
+
2020-05-03 vaiorabbit <http://twitter.com/vaiorabbit>
|
255
|
+
|
256
|
+
* Added provisional ImGuiStyle_ methods
|
257
|
+
* Added provisional ImGuiIO_ methods
|
258
|
+
* Added sample/basic_usage_sdl2_opengl2.rb
|
259
|
+
* (Windows) Catching up with ImGui 1.76
|
260
|
+
|
261
|
+
2020-04-19 vaiorabbit <http://twitter.com/vaiorabbit>
|
262
|
+
|
263
|
+
* Supported default value of public API arguments
|
264
|
+
|
265
|
+
2020-04-18 vaiorabbit <http://twitter.com/vaiorabbit>
|
266
|
+
|
267
|
+
* (macOS) Catching up with ImGui 1.76
|
268
|
+
* Generate APIs as wrapper methods (to support default arguments/method overloading in the future)
|
269
|
+
|
270
|
+
2020-02-11 vaiorabbit <http://twitter.com/vaiorabbit>
|
271
|
+
|
272
|
+
* (macOS) Catching up with ImGui 1.75
|
273
|
+
* Fixed wrong array argument generation (e.g. arguments like 'float[3]' are now converted into :pointer.)
|
274
|
+
* Added OpenGL3 render backend (Note that this feature is only tested only on macOS)
|
275
|
+
|
276
|
+
2020-01-26 vaiorabbit <http://twitter.com/vaiorabbit>
|
277
|
+
|
278
|
+
* Applied changes made in https://github.com/ocornut/imgui/commit/f6da5000bfaf3a035e8d8a7db9b5150644f4630b
|
279
|
+
"Backends: OpenGL2: Explicitly backup, setup and restore GL_TEXTURE_ENV to increase compatibility with legacy OpenGL applications."
|
280
|
+
|
281
|
+
2019-11-27 vaiorabbit <http://twitter.com/vaiorabbit>
|
282
|
+
|
283
|
+
* (macOS) Catching up with ImGui 1.74
|
284
|
+
|
285
|
+
2019-11-02 vaiorabbit <http://twitter.com/vaiorabbit>
|
286
|
+
|
287
|
+
* (Windows) Catching up with ImGui 1.73
|
288
|
+
|
289
|
+
2019-10-25 vaiorabbit <http://twitter.com/vaiorabbit>
|
290
|
+
|
291
|
+
* (macOS) Catching up with ImGui 1.73
|
292
|
+
|
293
|
+
2019-09-11 vaiorabbit <http://twitter.com/vaiorabbit>
|
294
|
+
|
295
|
+
* Revised folder structures
|
296
|
+
* Moved some older codes into backup/
|
297
|
+
|
298
|
+
2019-09-01 vaiorabbit <http://twitter.com/vaiorabbit>
|
299
|
+
|
300
|
+
* Design change: Libraries are separated into imgui.rb, imgui_impl_glfw.rb and imgui_impl_opengl2.rb
|
301
|
+
* See sample/test_glfw_opengl2.rb for new usage
|
302
|
+
* imgui_impl_sdl2.rb, sample/test_sdl2_opengl2.rb, sample/imgui_and_testgl2.rb: Added.
|
303
|
+
* Note that imgui_glfw_opengl2.rb will not be supported any more.
|
304
|
+
|
305
|
+
2019-08-25 vaiorabbit <http://twitter.com/vaiorabbit>
|
306
|
+
|
307
|
+
* Revised folder names
|
308
|
+
|
309
|
+
2019-08-20 vaiorabbit <http://twitter.com/vaiorabbit>
|
310
|
+
|
311
|
+
* linux build tweak https://github.com/vaiorabbit/ruby-imgui/pull/1 (Thanks: Jake Vandereay https://github.com/lunarfyre7)
|
312
|
+
|
313
|
+
2019-08-03 vaiorabbit <http://twitter.com/vaiorabbit>
|
314
|
+
|
315
|
+
* (Windows) Catching up with ImGui 1.72
|
316
|
+
* `imgui_glfw_opengl2.dll` was built against ruby 2.6.0p0 (2018-12-25 revision 66547) [x64-mingw32].
|
317
|
+
|
318
|
+
2019-07-29 vaiorabbit <http://twitter.com/vaiorabbit>
|
319
|
+
|
320
|
+
* (macOS) Catching up with ImGui 1.72
|
321
|
+
|
322
|
+
2019-07-28 vaiorabbit <http://twitter.com/vaiorabbit>
|
323
|
+
|
324
|
+
* (macOS) Catching up with ImGui 1.71
|
325
|
+
|
326
|
+
2019-06-09 vaiorabbit <http://twitter.com/vaiorabbit>
|
327
|
+
|
328
|
+
* (macOS) Catching up with ImGui 1.70
|
329
|
+
|
330
|
+
2019-03-24 vaiorabbit <http://twitter.com/vaiorabbit>
|
331
|
+
|
332
|
+
* (macOS) Catching up with ImGui 1.69
|
333
|
+
|
334
|
+
2019-02-22 vaiorabbit <http://twitter.com/vaiorabbit>
|
335
|
+
|
336
|
+
* (macOS) Catching up with ImGui 1.68
|
337
|
+
|
338
|
+
2019-01-15 vaiorabbit <http://twitter.com/vaiorabbit>
|
339
|
+
|
340
|
+
* Catching up with ImGui 1.67
|
341
|
+
|
342
|
+
2019-01-14 vaiorabbit <http://twitter.com/vaiorabbit>
|
343
|
+
|
344
|
+
* ImFont, ImFontAtlas (imgui_glfw_opengl2.rb): Added
|
345
|
+
|
346
|
+
2019-01-13 vaiorabbit <http://twitter.com/vaiorabbit>
|
347
|
+
|
348
|
+
* Tested on Windows.
|
349
|
+
* cimgui_build.sh, cimgui_build.bat: Added.
|
350
|
+
|
351
|
+
2019-01-06 vaiorabbit <http://twitter.com/vaiorabbit>
|
352
|
+
|
353
|
+
* ImGuiBindings.build_ffi_typedef_map(common.rb): Changed usage
|
354
|
+
* imgui_glfw_opengl2.dylib: Specified the terms of use.
|
355
|
+
|
356
|
+
2019-01-05 vaiorabbit <http://twitter.com/vaiorabbit>
|
357
|
+
|
358
|
+
* initial commmit
|
359
|
+
* Fixed API names (ex. igShowDemoWindow -> ImGui::ShowDemoWindow)
|
360
|
+
* [Fixed] Failed to generate array type member of struct.
|
361
|
+
* Added Japanese font loading & rendering example (test.rb)
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
Ruby-ImGui : Yet another ImGui wrapper for Ruby
|
2
|
+
Copyright (c) 2019-2024 vaiorabbit <http://twitter.com/vaiorabbit>
|
3
|
+
|
4
|
+
This software is provided 'as-is', without any express or implied
|
5
|
+
warranty. In no event will the authors be held liable for any damages
|
6
|
+
arising from the use of this software.
|
7
|
+
|
8
|
+
Permission is granted to anyone to use this software for any purpose,
|
9
|
+
including commercial applications, and to alter it and redistribute it
|
10
|
+
freely, subject to the following restrictions:
|
11
|
+
|
12
|
+
1. The origin of this software must not be misrepresented; you must not
|
13
|
+
claim that you wrote the original software. If you use this software
|
14
|
+
in a product, an acknowledgment in the product documentation would be
|
15
|
+
appreciated but is not required.
|
16
|
+
|
17
|
+
2. Altered source versions must be plainly marked as such, and must not be
|
18
|
+
misrepresented as being the original software.
|
19
|
+
|
20
|
+
3. This notice may not be removed or altered from any source
|
21
|
+
distribution.
|
data/README.md
ADDED
@@ -0,0 +1,119 @@
|
|
1
|
+
<!-- -*- mode:markdown; coding:utf-8; -*- -->
|
2
|
+
|
3
|
+
# Yet another ImGui wrapper for Ruby #
|
4
|
+
|
5
|
+
* Created : 2019-01-05
|
6
|
+
* Last modified : 2024-01-12
|
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.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin23]
|
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.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 (Rev10, Built by MSYS2 project) 11.2.0
|
59
|
+
* [Windows] gcc (Rev1, Built by MSYS2 project) 8.2.1 20181214
|
60
|
+
* [macOS] clang (Apple clang version 13.1.6 (clang-1316.0.21.2.5), Target: arm64-apple-darwin21.5.0)
|
61
|
+
* [macOS] clang (Apple clang version 12.0.5 (clang-1205.0.22.11), Target: arm64-apple-darwin20.6.0)
|
62
|
+
</details>
|
63
|
+
|
64
|
+
## Setting up and run sample ##
|
65
|
+
|
66
|
+
1. Install pre-built binaries
|
67
|
+
* $ gem install imgui-bindings
|
68
|
+
2. Get GLFW or SDL2
|
69
|
+
* put dylib/dll/so into sample/
|
70
|
+
4. Run test.rb
|
71
|
+
* cd sample/
|
72
|
+
* ruby test_glfw_opengl2.rb (GLFW)
|
73
|
+
* ruby test_sld2_opengl2.rb (SDL2)
|
74
|
+
|
75
|
+
## Building binaries ##
|
76
|
+
|
77
|
+
1. Update submodules
|
78
|
+
* git submodule update --recursive --remote
|
79
|
+
2. Update cimgui.c and cimgui.h
|
80
|
+
* $ cd imgui_dll/cimgui/generator
|
81
|
+
* $ luajit ./generator.lua clang ""
|
82
|
+
3. Build library
|
83
|
+
* Use build_imgui_macos.sh, etc.
|
84
|
+
|
85
|
+
## License ##
|
86
|
+
|
87
|
+
All shared libraries found in `lib` directory are built on top of these products and are available under the terms of the MIT License.
|
88
|
+
* cimgui ( https://github.com/cimgui/cimgui )
|
89
|
+
* https://github.com/cimgui/cimgui/blob/master/LICENSE
|
90
|
+
* Dear ImGui ( https://github.com/ocornut/imgui )
|
91
|
+
* https://github.com/ocornut/imgui/blob/master/LICENSE.txt
|
92
|
+
* ImNodes ( https://github.com/rokups/ImNodes )
|
93
|
+
* https://github.com/rokups/ImNodes/blob/master/LICENSE
|
94
|
+
|
95
|
+
All ruby codes here are available under the terms of the zlib/libpng License ( http://opensource.org/licenses/Zlib ).
|
96
|
+
|
97
|
+
```
|
98
|
+
Ruby-Imgui : Yet another ImGui wrapper for Ruby
|
99
|
+
Copyright (c) 2019-2024 vaiorabbit <http://twitter.com/vaiorabbit>
|
100
|
+
|
101
|
+
This software is provided 'as-is', without any express or implied
|
102
|
+
warranty. In no event will the authors be held liable for any damages
|
103
|
+
arising from the use of this software.
|
104
|
+
|
105
|
+
Permission is granted to anyone to use this software for any purpose,
|
106
|
+
including commercial applications, and to alter it and redistribute it
|
107
|
+
freely, subject to the following restrictions:
|
108
|
+
|
109
|
+
1. The origin of this software must not be misrepresented; you must not
|
110
|
+
claim that you wrote the original software. If you use this software
|
111
|
+
in a product, an acknowledgment in the product documentation would be
|
112
|
+
appreciated but is not required.
|
113
|
+
|
114
|
+
2. Altered source versions must be plainly marked as such, and must not be
|
115
|
+
misrepresented as being the original software.
|
116
|
+
|
117
|
+
3. This notice may not be removed or altered from any source
|
118
|
+
distribution.
|
119
|
+
```
|