raylib-bindings 0.7.8-aarch64-linux → 0.7.10-aarch64-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 +4 -4
- data/ChangeLog +539 -527
- data/LICENSE.txt +1 -1
- data/README.md +217 -209
- data/examples/template.rb +144 -144
- data/lib/config.rb +117 -111
- data/lib/libraylib.aarch64.so +0 -0
- data/lib/physac.aarch64.so +0 -0
- data/lib/physac.rb +331 -331
- data/lib/raygui.aarch64.so +0 -0
- data/lib/raygui_helper.rb +127 -127
- data/lib/raygui_main.rb +912 -912
- data/lib/raylib.rb +62 -62
- data/lib/raylib_helper.rb +431 -415
- data/lib/raylib_main.rb +5341 -5304
- data/lib/raymath.rb +1067 -1060
- data/lib/rcamera.rb +126 -126
- data/lib/rlgl.rb +1375 -1374
- metadata +3 -6
data/lib/raygui_helper.rb
CHANGED
@@ -1,127 +1,127 @@
|
|
1
|
-
# Yet another raylib wrapper for Ruby
|
2
|
-
#
|
3
|
-
# * https://github.com/vaiorabbit/raylib-bindings
|
4
|
-
|
5
|
-
require 'ffi'
|
6
|
-
|
7
|
-
module Raylib
|
8
|
-
|
9
|
-
def RGuiTabBar(bounds, text, count, active)
|
10
|
-
active_buf = FFI::MemoryPointer.new(:int, 1)
|
11
|
-
active_buf.put(:int, 0, active)
|
12
|
-
result = GuiTabBar(bounds, text, count, active_buf)
|
13
|
-
return active_buf.get(:int, 0), result
|
14
|
-
end
|
15
|
-
|
16
|
-
def RGuiToggle(bounds, text, active)
|
17
|
-
active_buf = FFI::MemoryPointer.new(:int, 1)
|
18
|
-
active_buf.put(:int, 0, active)
|
19
|
-
result = GuiToggle(bounds, text, active_buf)
|
20
|
-
return active_buf.get(:int, 0), result
|
21
|
-
end
|
22
|
-
|
23
|
-
def RGuiToggleGroup(bounds, text, active)
|
24
|
-
active_buf = FFI::MemoryPointer.new(:int, 1)
|
25
|
-
active_buf.put(:int, 0, active)
|
26
|
-
result = GuiToggleGroup(bounds, text, active_buf)
|
27
|
-
return active_buf.get(:int, 0), result
|
28
|
-
end
|
29
|
-
|
30
|
-
def RGuiToggleSlider(bounds, text, active)
|
31
|
-
active_buf = FFI::MemoryPointer.new(:int, 1)
|
32
|
-
active_buf.put(:int, 0, active)
|
33
|
-
result = GuiToggleSlider(bounds, text, active_buf)
|
34
|
-
return active_buf.get(:int, 0), result
|
35
|
-
end
|
36
|
-
|
37
|
-
def RGuiCheckBox(bounds, text, checked)
|
38
|
-
checked_buf = FFI::MemoryPointer.new(:bool, 1)
|
39
|
-
checked_buf.put(:bool, 0, checked)
|
40
|
-
result = GuiCheckBox(bounds, text, checked_buf)
|
41
|
-
return checked_buf.get(:bool, 0), result
|
42
|
-
end
|
43
|
-
|
44
|
-
def RGuiComboBox(bounds, text, active)
|
45
|
-
active_buf = FFI::MemoryPointer.new(:int, 1)
|
46
|
-
active_buf.put(:int, 0, active)
|
47
|
-
result = GuiComboBox(bounds, text, active_buf)
|
48
|
-
return active_buf.get(:int, 0), result
|
49
|
-
end
|
50
|
-
|
51
|
-
def RGuiDropdownBox(bounds, text, active, editMode)
|
52
|
-
active_buf = FFI::MemoryPointer.new(:int, 1)
|
53
|
-
active_buf.put(:int, 0, active)
|
54
|
-
result = GuiDropdownBox(bounds, text, active_buf, editMode)
|
55
|
-
return active_buf.get(:int, 0), result
|
56
|
-
end
|
57
|
-
|
58
|
-
def RGuiSpinner(bounds, text, value, minValue, maxValue, editMode)
|
59
|
-
value_buf = FFI::MemoryPointer.new(:int, 1)
|
60
|
-
value_buf.put(:int, 0, value)
|
61
|
-
result = GuiSpinner(bounds, text, value_buf, minValue, maxValue, editMode)
|
62
|
-
return value_buf.get(:int, 0), result
|
63
|
-
end
|
64
|
-
|
65
|
-
def RGuiValueBox(bounds, text, value, minValue, maxValue, editMode)
|
66
|
-
value_buf = FFI::MemoryPointer.new(:int, 1)
|
67
|
-
value_buf.put(:int, 0, value)
|
68
|
-
result = GuiValueBox(bounds, text, value_buf, minValue, maxValue, editMode)
|
69
|
-
return value_buf.get(:int, 0), result
|
70
|
-
end
|
71
|
-
|
72
|
-
def RGuiSlider(bounds, textLeft, textRight, value, minValue, maxValue)
|
73
|
-
value_buf = FFI::MemoryPointer.new(:float, 1)
|
74
|
-
value_buf.put_float(0, value)
|
75
|
-
result = GuiSlider(bounds, textLeft, textRight, value_buf, minValue, maxValue)
|
76
|
-
return value_buf.read_float, result
|
77
|
-
end
|
78
|
-
|
79
|
-
def RGuiSliderBar(bounds, textLeft, textRight, value, minValue, maxValue)
|
80
|
-
value_buf = FFI::MemoryPointer.new(:float, 1)
|
81
|
-
value_buf.put_float(0, value)
|
82
|
-
result = GuiSliderBar(bounds, textLeft, textRight, value_buf, minValue, maxValue)
|
83
|
-
return value_buf.read_float, result
|
84
|
-
end
|
85
|
-
|
86
|
-
def RGuiProgressBar(bounds, textLeft, textRight, value, minValue, maxValue)
|
87
|
-
value_buf = FFI::MemoryPointer.new(:float, 1)
|
88
|
-
value_buf.put_float(0, value)
|
89
|
-
result = GuiProgressBar(bounds, textLeft, textRight, value_buf, minValue, maxValue)
|
90
|
-
return value_buf.read_float, result
|
91
|
-
end
|
92
|
-
|
93
|
-
def RGuiListView(bounds, text, scrollIndex, active)
|
94
|
-
scrollIndex_buf = FFI::MemoryPointer.new(:int, 1)
|
95
|
-
scrollIndex_buf.put(:int, 0, scrollIndex)
|
96
|
-
active_buf = FFI::MemoryPointer.new(:int, 1)
|
97
|
-
active_buf.put(:int, 0, active)
|
98
|
-
result = GuiListView(bounds, text, scrollIndex_buf, active_buf)
|
99
|
-
return scrollIndex_buf.get(:int, 0), active_buf.get(:int, 0), result
|
100
|
-
end
|
101
|
-
|
102
|
-
def RGuiListViewEx(bounds, text, count, scrollIndex, active, focus)
|
103
|
-
scrollIndex_buf = FFI::MemoryPointer.new(:int, 1)
|
104
|
-
scrollIndex_buf.put(:int, 0, scrollIndex)
|
105
|
-
active_buf = FFI::MemoryPointer.new(:int, 1)
|
106
|
-
active_buf.put(:int, 0, active)
|
107
|
-
focus_buf = FFI::MemoryPointer.new(:int, 1)
|
108
|
-
focus_buf.put(:int, 0, focus)
|
109
|
-
result = GuiListViewEx(bounds, text, count, scrollIndex_buf, active_buf, focus_buf)
|
110
|
-
return scrollIndex_buf.get(:int, 0), active_buf.get(:int, 0), focus_buf.get(:int, 0), result
|
111
|
-
end
|
112
|
-
|
113
|
-
def RGuiColorBarAlpha(bounds, text, alpha)
|
114
|
-
alpha_buf = FFI::MemoryPointer.new(:float, 1)
|
115
|
-
alpha_buf.put_float(0, alpha)
|
116
|
-
result = GuiColorBarAlpha(bounds, text, alpha_buf)
|
117
|
-
return alpha_buf.read_float, result
|
118
|
-
end
|
119
|
-
|
120
|
-
def RGuiColorBarHue(bounds, text, value)
|
121
|
-
value_buf = FFI::MemoryPointer.new(:float, 1)
|
122
|
-
value_buf.put_float(0, value)
|
123
|
-
result = GuiColorBarHue(bounds, text, value_buf)
|
124
|
-
return value_buf.read_float, result
|
125
|
-
end
|
126
|
-
|
127
|
-
end
|
1
|
+
# Yet another raylib wrapper for Ruby
|
2
|
+
#
|
3
|
+
# * https://github.com/vaiorabbit/raylib-bindings
|
4
|
+
|
5
|
+
require 'ffi'
|
6
|
+
|
7
|
+
module Raylib
|
8
|
+
|
9
|
+
def RGuiTabBar(bounds, text, count, active)
|
10
|
+
active_buf = FFI::MemoryPointer.new(:int, 1)
|
11
|
+
active_buf.put(:int, 0, active)
|
12
|
+
result = GuiTabBar(bounds, text, count, active_buf)
|
13
|
+
return active_buf.get(:int, 0), result
|
14
|
+
end
|
15
|
+
|
16
|
+
def RGuiToggle(bounds, text, active)
|
17
|
+
active_buf = FFI::MemoryPointer.new(:int, 1)
|
18
|
+
active_buf.put(:int, 0, active)
|
19
|
+
result = GuiToggle(bounds, text, active_buf)
|
20
|
+
return active_buf.get(:int, 0), result
|
21
|
+
end
|
22
|
+
|
23
|
+
def RGuiToggleGroup(bounds, text, active)
|
24
|
+
active_buf = FFI::MemoryPointer.new(:int, 1)
|
25
|
+
active_buf.put(:int, 0, active)
|
26
|
+
result = GuiToggleGroup(bounds, text, active_buf)
|
27
|
+
return active_buf.get(:int, 0), result
|
28
|
+
end
|
29
|
+
|
30
|
+
def RGuiToggleSlider(bounds, text, active)
|
31
|
+
active_buf = FFI::MemoryPointer.new(:int, 1)
|
32
|
+
active_buf.put(:int, 0, active)
|
33
|
+
result = GuiToggleSlider(bounds, text, active_buf)
|
34
|
+
return active_buf.get(:int, 0), result
|
35
|
+
end
|
36
|
+
|
37
|
+
def RGuiCheckBox(bounds, text, checked)
|
38
|
+
checked_buf = FFI::MemoryPointer.new(:bool, 1)
|
39
|
+
checked_buf.put(:bool, 0, checked)
|
40
|
+
result = GuiCheckBox(bounds, text, checked_buf)
|
41
|
+
return checked_buf.get(:bool, 0), result
|
42
|
+
end
|
43
|
+
|
44
|
+
def RGuiComboBox(bounds, text, active)
|
45
|
+
active_buf = FFI::MemoryPointer.new(:int, 1)
|
46
|
+
active_buf.put(:int, 0, active)
|
47
|
+
result = GuiComboBox(bounds, text, active_buf)
|
48
|
+
return active_buf.get(:int, 0), result
|
49
|
+
end
|
50
|
+
|
51
|
+
def RGuiDropdownBox(bounds, text, active, editMode)
|
52
|
+
active_buf = FFI::MemoryPointer.new(:int, 1)
|
53
|
+
active_buf.put(:int, 0, active)
|
54
|
+
result = GuiDropdownBox(bounds, text, active_buf, editMode)
|
55
|
+
return active_buf.get(:int, 0), result
|
56
|
+
end
|
57
|
+
|
58
|
+
def RGuiSpinner(bounds, text, value, minValue, maxValue, editMode)
|
59
|
+
value_buf = FFI::MemoryPointer.new(:int, 1)
|
60
|
+
value_buf.put(:int, 0, value)
|
61
|
+
result = GuiSpinner(bounds, text, value_buf, minValue, maxValue, editMode)
|
62
|
+
return value_buf.get(:int, 0), result
|
63
|
+
end
|
64
|
+
|
65
|
+
def RGuiValueBox(bounds, text, value, minValue, maxValue, editMode)
|
66
|
+
value_buf = FFI::MemoryPointer.new(:int, 1)
|
67
|
+
value_buf.put(:int, 0, value)
|
68
|
+
result = GuiValueBox(bounds, text, value_buf, minValue, maxValue, editMode)
|
69
|
+
return value_buf.get(:int, 0), result
|
70
|
+
end
|
71
|
+
|
72
|
+
def RGuiSlider(bounds, textLeft, textRight, value, minValue, maxValue)
|
73
|
+
value_buf = FFI::MemoryPointer.new(:float, 1)
|
74
|
+
value_buf.put_float(0, value)
|
75
|
+
result = GuiSlider(bounds, textLeft, textRight, value_buf, minValue, maxValue)
|
76
|
+
return value_buf.read_float, result
|
77
|
+
end
|
78
|
+
|
79
|
+
def RGuiSliderBar(bounds, textLeft, textRight, value, minValue, maxValue)
|
80
|
+
value_buf = FFI::MemoryPointer.new(:float, 1)
|
81
|
+
value_buf.put_float(0, value)
|
82
|
+
result = GuiSliderBar(bounds, textLeft, textRight, value_buf, minValue, maxValue)
|
83
|
+
return value_buf.read_float, result
|
84
|
+
end
|
85
|
+
|
86
|
+
def RGuiProgressBar(bounds, textLeft, textRight, value, minValue, maxValue)
|
87
|
+
value_buf = FFI::MemoryPointer.new(:float, 1)
|
88
|
+
value_buf.put_float(0, value)
|
89
|
+
result = GuiProgressBar(bounds, textLeft, textRight, value_buf, minValue, maxValue)
|
90
|
+
return value_buf.read_float, result
|
91
|
+
end
|
92
|
+
|
93
|
+
def RGuiListView(bounds, text, scrollIndex, active)
|
94
|
+
scrollIndex_buf = FFI::MemoryPointer.new(:int, 1)
|
95
|
+
scrollIndex_buf.put(:int, 0, scrollIndex)
|
96
|
+
active_buf = FFI::MemoryPointer.new(:int, 1)
|
97
|
+
active_buf.put(:int, 0, active)
|
98
|
+
result = GuiListView(bounds, text, scrollIndex_buf, active_buf)
|
99
|
+
return scrollIndex_buf.get(:int, 0), active_buf.get(:int, 0), result
|
100
|
+
end
|
101
|
+
|
102
|
+
def RGuiListViewEx(bounds, text, count, scrollIndex, active, focus)
|
103
|
+
scrollIndex_buf = FFI::MemoryPointer.new(:int, 1)
|
104
|
+
scrollIndex_buf.put(:int, 0, scrollIndex)
|
105
|
+
active_buf = FFI::MemoryPointer.new(:int, 1)
|
106
|
+
active_buf.put(:int, 0, active)
|
107
|
+
focus_buf = FFI::MemoryPointer.new(:int, 1)
|
108
|
+
focus_buf.put(:int, 0, focus)
|
109
|
+
result = GuiListViewEx(bounds, text, count, scrollIndex_buf, active_buf, focus_buf)
|
110
|
+
return scrollIndex_buf.get(:int, 0), active_buf.get(:int, 0), focus_buf.get(:int, 0), result
|
111
|
+
end
|
112
|
+
|
113
|
+
def RGuiColorBarAlpha(bounds, text, alpha)
|
114
|
+
alpha_buf = FFI::MemoryPointer.new(:float, 1)
|
115
|
+
alpha_buf.put_float(0, alpha)
|
116
|
+
result = GuiColorBarAlpha(bounds, text, alpha_buf)
|
117
|
+
return alpha_buf.read_float, result
|
118
|
+
end
|
119
|
+
|
120
|
+
def RGuiColorBarHue(bounds, text, value)
|
121
|
+
value_buf = FFI::MemoryPointer.new(:float, 1)
|
122
|
+
value_buf.put_float(0, value)
|
123
|
+
result = GuiColorBarHue(bounds, text, value_buf)
|
124
|
+
return value_buf.read_float, result
|
125
|
+
end
|
126
|
+
|
127
|
+
end
|