raylib-bindings 0.8.1 → 0.8.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.
- checksums.yaml +4 -4
- data/ChangeLog +8 -0
- data/README.md +5 -5
- data/lib/config.rb +1 -0
- data/lib/libraylib.aarch64.so +0 -0
- data/lib/libraylib.arm64.dylib +0 -0
- data/lib/libraylib.dll +0 -0
- data/lib/libraylib.x86_64.dylib +0 -0
- data/lib/libraylib.x86_64.so +0 -0
- data/lib/physac.arm64.dylib +0 -0
- data/lib/physac.dll +0 -0
- data/lib/physac.x86_64.dylib +0 -0
- data/lib/raygui.aarch64.so +0 -0
- data/lib/raygui.arm64.dylib +0 -0
- data/lib/raygui.dll +0 -0
- data/lib/raygui.x86_64.dylib +0 -0
- data/lib/raygui.x86_64.so +0 -0
- data/lib/raygui_main.rb +72 -33
- data/lib/raylib_main.rb +351 -243
- data/lib/rlgl.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8c98198643a70a6ba69993ba4c0b3b5d9b7fb6f09020e2c55dec925cf4133f94
|
|
4
|
+
data.tar.gz: 5ab61b80b87ea74752f84d1ef72eddfd39dfff3c21bd34c72ce8224e0c3a7890
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b3d9734d08f2881d1c3b8f927169e0fe2ad478588d6436c5b47e94013cc771abf4cddcd5b28336fdc28a7d93c604de922f8410f0e264f8850169238ada657170
|
|
7
|
+
data.tar.gz: dd3ea694a660dcb97eca9d501e25e15f6176cc98ef0eb3c7358e5d62b5462a5aab388b02ccab404c4a45f5cbd7ac9b93b6dcdb9864fe773120b19b7fc7876ae0
|
data/ChangeLog
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
2026-08-02 vaiorabbit <http://twitter.com/vaiorabbit>
|
|
2
|
+
|
|
3
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/c5a6d94110d713fafd9d3191c28875d99ae704d4 ) and raygui ( https://github.com/raysan5/raygui/commit/9fed992452425d49159ca556fed169c77944adf0 )
|
|
4
|
+
|
|
5
|
+
2026-07-05 vaiorabbit <http://twitter.com/vaiorabbit>
|
|
6
|
+
|
|
7
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/65abee1cbade6bf7edf55da6eb1eed6980aa754b ) and raygui ( https://github.com/raysan5/raygui/commit/5cc802fd9edb9f2dc0bb02aff222791f14a1ab6f )
|
|
8
|
+
|
|
1
9
|
2026-06-06 vaiorabbit <http://twitter.com/vaiorabbit>
|
|
2
10
|
|
|
3
11
|
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/ca46387b64d7c1d7505828b2c67d234d1ed0b81d ) and raygui ( https://github.com/raysan5/raygui/commit/d2d1feed5ce8bf89d7e8ff0e7868a063867b486a )
|
data/README.md
CHANGED
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
# Yet another raylib wrapper for Ruby #
|
|
4
4
|
|
|
5
5
|
* Created : 2021-10-17
|
|
6
|
-
* Last modified : 2026-
|
|
6
|
+
* Last modified : 2026-08-02
|
|
7
7
|
|
|
8
8
|
Provides Ruby bindings for raylib-related libraries including:
|
|
9
9
|
|
|
10
|
-
* [raylib](https://github.com/raysan5/raylib) version [6.1-dev]( https://github.com/raysan5/raylib/commit/
|
|
10
|
+
* [raylib](https://github.com/raysan5/raylib) version [6.1-dev]( https://github.com/raysan5/raylib/commit/c5a6d94110d713fafd9d3191c28875d99ae704d4 )
|
|
11
11
|
* raylib
|
|
12
12
|
* raymath
|
|
13
13
|
* rlgl
|
|
14
|
-
* [raygui](https://github.com/raysan5/raygui) version [5.0-dev]( https://github.com/raysan5/raygui/commit/
|
|
14
|
+
* [raygui](https://github.com/raysan5/raygui) version [5.0-dev]( https://github.com/raysan5/raygui/commit/9fed992452425d49159ca556fed169c77944adf0 )
|
|
15
15
|
* [Physac](https://github.com/raysan5/physac) version [1.1]( https://github.com/raysan5/physac/commit/4a8e17f263fb8e1150b3fbafc96f880c7d7a4833 )
|
|
16
16
|
|
|
17
17
|
<img src="https://raw.githubusercontent.com/vaiorabbit/raylib-bindings/main/doc/bitmap_font_rb.png" width="125"> <img src="https://raw.githubusercontent.com/vaiorabbit/raylib-bindings/main/doc/game_of_life_simple_rb.png" width="125"> <img src="https://raw.githubusercontent.com/vaiorabbit/raylib-bindings/main/doc/lissajous_curve_rb.png" width="125"> <img src="https://raw.githubusercontent.com/vaiorabbit/raylib-bindings/main/doc/procedural_texture_rb.png" width="125"> <img src="https://raw.githubusercontent.com/vaiorabbit/raylib-bindings/main/doc/reversi_board_rb.png" width="125"> <img src="https://raw.githubusercontent.com/vaiorabbit/raylib-bindings/main/doc/utf8_font_rb.png" width="125">
|
|
@@ -72,7 +72,7 @@ Exit code policy:
|
|
|
72
72
|
* Ruby interpreter
|
|
73
73
|
* Tested on:
|
|
74
74
|
* [Windows] https://rubyinstaller.org/downloads/ Ruby+Devkit
|
|
75
|
-
* ruby 4.0.
|
|
75
|
+
* ruby 4.0.5 (2026-05-20 revision 64336ffd0e) +PRISM [x64-mingw-ucrt]
|
|
76
76
|
|
|
77
77
|
* If you need to build DLLs/shared libralies for your own runtime envrioenment (Linux, etc.):
|
|
78
78
|
* CMake https://cmake.org/download/
|
|
@@ -80,7 +80,7 @@ Exit code policy:
|
|
|
80
80
|
* Tested compilers:
|
|
81
81
|
* [Windows] gcc
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
gcc (Rev5, Built by MSYS2 project) 16.1.0
|
|
84
84
|
|
|
85
85
|
<details>
|
|
86
86
|
<summary>Older versions</summary>
|
data/lib/config.rb
CHANGED
|
@@ -39,6 +39,7 @@ module Raylib
|
|
|
39
39
|
SUPPORT_FILEFORMAT_JPG = 0 # Disabled by default
|
|
40
40
|
SUPPORT_FILEFORMAT_GIF = 1
|
|
41
41
|
SUPPORT_FILEFORMAT_QOI = 1
|
|
42
|
+
SUPPORT_FILEFORMAT_PEP = 0
|
|
42
43
|
SUPPORT_FILEFORMAT_PSD = 0 # Disabled by default
|
|
43
44
|
SUPPORT_FILEFORMAT_DDS = 1
|
|
44
45
|
SUPPORT_FILEFORMAT_HDR = 0 # Disabled by default
|
data/lib/libraylib.aarch64.so
CHANGED
|
Binary file
|
data/lib/libraylib.arm64.dylib
CHANGED
|
Binary file
|
data/lib/libraylib.dll
CHANGED
|
Binary file
|
data/lib/libraylib.x86_64.dylib
CHANGED
|
Binary file
|
data/lib/libraylib.x86_64.so
CHANGED
|
Binary file
|
data/lib/physac.arm64.dylib
CHANGED
|
Binary file
|
data/lib/physac.dll
CHANGED
|
Binary file
|
data/lib/physac.x86_64.dylib
CHANGED
|
Binary file
|
data/lib/raygui.aarch64.so
CHANGED
|
Binary file
|
data/lib/raygui.arm64.dylib
CHANGED
|
Binary file
|
data/lib/raygui.dll
CHANGED
|
Binary file
|
data/lib/raygui.x86_64.dylib
CHANGED
|
Binary file
|
data/lib/raygui.x86_64.so
CHANGED
|
Binary file
|
data/lib/raygui_main.rb
CHANGED
|
@@ -14,12 +14,19 @@ module Raylib
|
|
|
14
14
|
RAYGUI_VERSION_MAJOR = 5
|
|
15
15
|
RAYGUI_VERSION_MINOR = 0
|
|
16
16
|
RAYGUI_VERSION_PATCH = 0
|
|
17
|
-
RAYGUI_VERSION = "5.0
|
|
17
|
+
RAYGUI_VERSION = "5.0"
|
|
18
18
|
SCROLLBAR_LEFT_SIDE = 0
|
|
19
19
|
SCROLLBAR_RIGHT_SIDE = 1
|
|
20
20
|
|
|
21
21
|
# Enum
|
|
22
22
|
|
|
23
|
+
# enum GuiResult
|
|
24
|
+
# Gui control result
|
|
25
|
+
RESULT_NONE = 0
|
|
26
|
+
RESULT_PRESSED = 1
|
|
27
|
+
RESULT_CHANGED = 2
|
|
28
|
+
RESULT_TAB_CLOSE = 4 # GuiTabBar(), tab close request
|
|
29
|
+
|
|
23
30
|
# enum GuiState
|
|
24
31
|
# Gui control state
|
|
25
32
|
STATE_NORMAL = 0
|
|
@@ -58,14 +65,14 @@ module Raylib
|
|
|
58
65
|
DROPDOWNBOX = 8
|
|
59
66
|
TEXTBOX = 9 # Used also for: TEXTBOXMULTI
|
|
60
67
|
VALUEBOX = 10
|
|
61
|
-
|
|
68
|
+
TABBAR = 11
|
|
62
69
|
LISTVIEW = 12
|
|
63
70
|
COLORPICKER = 13
|
|
64
71
|
SCROLLBAR = 14
|
|
65
72
|
STATUSBAR = 15
|
|
66
73
|
|
|
67
74
|
# enum GuiControlProperty
|
|
68
|
-
#
|
|
75
|
+
# Controls BASE properties for every control (RAYGUI_MAX_PROPS_BASE = 16)
|
|
69
76
|
BORDER_COLOR_NORMAL = 0 # Control border color in STATE_NORMAL
|
|
70
77
|
BASE_COLOR_NORMAL = 1 # Control base color in STATE_NORMAL
|
|
71
78
|
TEXT_COLOR_NORMAL = 2 # Control text color in STATE_NORMAL
|
|
@@ -80,21 +87,24 @@ module Raylib
|
|
|
80
87
|
TEXT_COLOR_DISABLED = 11 # Control text color in STATE_DISABLED
|
|
81
88
|
BORDER_WIDTH = 12 # Control border size, 0 for no border
|
|
82
89
|
TEXT_PADDING = 13 # Control text padding, not considering border
|
|
83
|
-
TEXT_ALIGNMENT = 14 # Control text horizontal alignment inside control text bound (after border and padding)
|
|
90
|
+
TEXT_ALIGNMENT = 14 # Control text horizontal alignment inside control text bound (after border and padding): 0-Left, 1-Center, 2-Right
|
|
91
|
+
BASEPROP16 = 15 # Not used yet...
|
|
84
92
|
|
|
85
93
|
# enum GuiDefaultProperty
|
|
86
|
-
# DEFAULT extended properties
|
|
94
|
+
# DEFAULT control, extended properties
|
|
87
95
|
TEXT_SIZE = 16 # Text size (glyphs max height)
|
|
88
96
|
TEXT_SPACING = 17 # Text spacing between glyphs
|
|
89
97
|
LINE_COLOR = 18 # Line control color
|
|
90
98
|
BACKGROUND_COLOR = 19 # Background color
|
|
91
99
|
TEXT_LINE_SPACING = 20 # Text spacing between lines
|
|
92
|
-
TEXT_ALIGNMENT_VERTICAL = 21 # Text vertical alignment inside text bounds (after border and padding)
|
|
100
|
+
TEXT_ALIGNMENT_VERTICAL = 21 # Text vertical alignment inside text bounds (after border and padding): 0-Top, 1-Middle, 2-Bottom
|
|
93
101
|
TEXT_WRAP_MODE = 22 # Text wrap-mode inside text bounds
|
|
102
|
+
EXTPROP08 = 23 # Not used yet...
|
|
94
103
|
|
|
95
104
|
# enum GuiToggleProperty
|
|
96
105
|
# Toggle/ToggleGroup
|
|
97
|
-
GROUP_PADDING = 16
|
|
106
|
+
GROUP_PADDING = 16 # ToggleGroup separation between toggles
|
|
107
|
+
GROUP_WIDTH_FULL = 17 # ToggleGroup bounds width considers all items: 0-Width per item, 1-Full width
|
|
98
108
|
|
|
99
109
|
# enum GuiSliderProperty
|
|
100
110
|
# Slider/SliderBar
|
|
@@ -104,7 +114,7 @@ module Raylib
|
|
|
104
114
|
# enum GuiProgressBarProperty
|
|
105
115
|
# ProgressBar
|
|
106
116
|
PROGRESS_PADDING = 16 # ProgressBar internal padding
|
|
107
|
-
PROGRESS_SIDE = 17 # ProgressBar increment side: 0-
|
|
117
|
+
PROGRESS_SIDE = 17 # ProgressBar increment side: 0-Left->Right, 1-Right->Left
|
|
108
118
|
|
|
109
119
|
# enum GuiScrollBarProperty
|
|
110
120
|
# ScrollBar
|
|
@@ -129,29 +139,35 @@ module Raylib
|
|
|
129
139
|
ARROW_PADDING = 16 # DropdownBox arrow separation from border and items
|
|
130
140
|
DROPDOWN_ITEMS_SPACING = 17 # DropdownBox items separation
|
|
131
141
|
DROPDOWN_ARROW_HIDDEN = 18 # DropdownBox arrow hidden
|
|
132
|
-
DROPDOWN_ROLL_UP = 19 # DropdownBox roll up flag
|
|
142
|
+
DROPDOWN_ROLL_UP = 19 # DropdownBox roll up flag: 0-Roll down, 1-Roll up
|
|
133
143
|
|
|
134
144
|
# enum GuiTextBoxProperty
|
|
135
145
|
# TextBox/TextBoxMulti/ValueBox/Spinner
|
|
136
|
-
TEXT_READONLY = 16 # TextBox in read-only mode: 0-
|
|
146
|
+
TEXT_READONLY = 16 # TextBox in read-only mode: 0-Text editable, 1-Text read-only
|
|
137
147
|
|
|
138
148
|
# enum GuiValueBoxProperty
|
|
139
149
|
# ValueBox/Spinner
|
|
140
150
|
SPINNER_BUTTON_WIDTH = 16 # Spinner left/right buttons width
|
|
141
151
|
SPINNER_BUTTON_SPACING = 17 # Spinner buttons separation
|
|
142
152
|
|
|
153
|
+
# enum GuiTabBarProperty
|
|
154
|
+
# TabBar
|
|
155
|
+
TAB_ITEMS_WIDTH = 16 # TabBar tab items width
|
|
156
|
+
TAB_CLOSE_BUTTON = 17 # TabBar tab close button: 0-Not shown, 1-Shown
|
|
157
|
+
TAB_LINE_SIDE = 18 # TabBar tabs side: 0-Bottom, 1-Top
|
|
158
|
+
|
|
143
159
|
# enum GuiListViewProperty
|
|
144
|
-
#
|
|
160
|
+
#
|
|
145
161
|
LIST_ITEMS_HEIGHT = 16 # ListView items height
|
|
146
162
|
LIST_ITEMS_SPACING = 17 # ListView items separation
|
|
147
163
|
SCROLLBAR_WIDTH = 18 # ListView scrollbar size (usually width)
|
|
148
|
-
SCROLLBAR_SIDE = 19 # ListView scrollbar side
|
|
164
|
+
SCROLLBAR_SIDE = 19 # ListView scrollbar side: 0-Left side, 1-Right Side
|
|
149
165
|
LIST_ITEMS_BORDER_NORMAL = 20 # ListView items border enabled in normal state
|
|
150
166
|
LIST_ITEMS_BORDER_WIDTH = 21 # ListView items border width
|
|
151
167
|
|
|
152
168
|
# enum GuiColorPickerProperty
|
|
153
169
|
# ColorPicker
|
|
154
|
-
COLOR_SELECTOR_SIZE = 16
|
|
170
|
+
COLOR_SELECTOR_SIZE = 16 # ColorPicker selector square size
|
|
155
171
|
HUEBAR_WIDTH = 17 # ColorPicker right hue bar width
|
|
156
172
|
HUEBAR_PADDING = 18 # ColorPicker right hue bar separation from panel
|
|
157
173
|
HUEBAR_SELECTOR_HEIGHT = 19 # ColorPicker right hue bar selector height
|
|
@@ -420,6 +436,7 @@ module Raylib
|
|
|
420
436
|
|
|
421
437
|
# Typedef
|
|
422
438
|
|
|
439
|
+
typedef :int, :GuiResult
|
|
423
440
|
typedef :int, :GuiState
|
|
424
441
|
typedef :int, :GuiTextAlignment
|
|
425
442
|
typedef :int, :GuiTextAlignmentVertical
|
|
@@ -436,6 +453,7 @@ module Raylib
|
|
|
436
453
|
typedef :int, :GuiDropdownBoxProperty
|
|
437
454
|
typedef :int, :GuiTextBoxProperty
|
|
438
455
|
typedef :int, :GuiValueBoxProperty
|
|
456
|
+
typedef :int, :GuiTabBarProperty
|
|
439
457
|
typedef :int, :GuiListViewProperty
|
|
440
458
|
typedef :int, :GuiColorPickerProperty
|
|
441
459
|
typedef :int, :GuiIconName
|
|
@@ -590,6 +608,14 @@ module Raylib
|
|
|
590
608
|
# @return [char **]
|
|
591
609
|
[:GuiLoadIcons, :GuiLoadIcons, [:pointer, :bool], :pointer],
|
|
592
610
|
|
|
611
|
+
# @!method GuiLoadIconsFromMemory(fileData, dataSize, loadIconsName)
|
|
612
|
+
# GuiLoadIconsFromMemory : Load raygui icons file (.rgi) from memory into internal icons data
|
|
613
|
+
# @param fileData [const unsigned char *]
|
|
614
|
+
# @param dataSize [int]
|
|
615
|
+
# @param loadIconsName [bool]
|
|
616
|
+
# @return [char **]
|
|
617
|
+
[:GuiLoadIconsFromMemory, :GuiLoadIconsFromMemory, [:pointer, :int, :bool], :pointer],
|
|
618
|
+
|
|
593
619
|
# @!method GuiDrawIcon(iconId, posX, posY, pixelSize, color)
|
|
594
620
|
# GuiDrawIcon : Draw icon using pixel size at specified position
|
|
595
621
|
# @param iconId [int]
|
|
@@ -634,15 +660,6 @@ module Raylib
|
|
|
634
660
|
# @return [int]
|
|
635
661
|
[:GuiPanel, :GuiPanel, [Rectangle.by_value, :pointer], :int],
|
|
636
662
|
|
|
637
|
-
# @!method GuiTabBar(bounds, text, count, active)
|
|
638
|
-
# GuiTabBar : Tab Bar control, returns TAB to be closed or -1
|
|
639
|
-
# @param bounds [Rectangle]
|
|
640
|
-
# @param text [char **]
|
|
641
|
-
# @param count [int]
|
|
642
|
-
# @param active [int *]
|
|
643
|
-
# @return [int]
|
|
644
|
-
[:GuiTabBar, :GuiTabBar, [Rectangle.by_value, :pointer, :int, :pointer], :int],
|
|
645
|
-
|
|
646
663
|
# @!method GuiScrollPanel(bounds, text, content, scroll, view)
|
|
647
664
|
# GuiScrollPanel : Scroll Panel control
|
|
648
665
|
# @param bounds [Rectangle]
|
|
@@ -831,7 +848,7 @@ module Raylib
|
|
|
831
848
|
[:GuiListView, :GuiListView, [Rectangle.by_value, :pointer, :pointer, :pointer], :int],
|
|
832
849
|
|
|
833
850
|
# @!method GuiListViewEx(bounds, text, count, scrollIndex, active, focus)
|
|
834
|
-
# GuiListViewEx : List View using text entries list and returning focus entry
|
|
851
|
+
# GuiListViewEx : List View control, using text entries list and returning focus entry
|
|
835
852
|
# @param bounds [Rectangle]
|
|
836
853
|
# @param text [char **]
|
|
837
854
|
# @param count [int]
|
|
@@ -841,29 +858,51 @@ module Raylib
|
|
|
841
858
|
# @return [int]
|
|
842
859
|
[:GuiListViewEx, :GuiListViewEx, [Rectangle.by_value, :pointer, :int, :pointer, :pointer, :pointer], :int],
|
|
843
860
|
|
|
844
|
-
# @!method
|
|
861
|
+
# @!method GuiTabBar(bounds, text, hscroll, active)
|
|
862
|
+
# GuiTabBar : Tab Bar control
|
|
863
|
+
# @param bounds [Rectangle]
|
|
864
|
+
# @param text [const char *]
|
|
865
|
+
# @param hscroll [int *]
|
|
866
|
+
# @param active [int *]
|
|
867
|
+
# @return [int]
|
|
868
|
+
[:GuiTabBar, :GuiTabBar, [Rectangle.by_value, :pointer, :pointer, :pointer], :int],
|
|
869
|
+
|
|
870
|
+
# @!method GuiTabBarEx(bounds, text, count, hscroll, active, focus)
|
|
871
|
+
# GuiTabBarEx : Tab Bar control, using text entries list and returning focus entry
|
|
872
|
+
# @param bounds [Rectangle]
|
|
873
|
+
# @param text [char **]
|
|
874
|
+
# @param count [int]
|
|
875
|
+
# @param hscroll [int *]
|
|
876
|
+
# @param active [int *]
|
|
877
|
+
# @param focus [int *]
|
|
878
|
+
# @return [int]
|
|
879
|
+
[:GuiTabBarEx, :GuiTabBarEx, [Rectangle.by_value, :pointer, :int, :pointer, :pointer, :pointer], :int],
|
|
880
|
+
|
|
881
|
+
# @!method GuiMessageBox(bounds, title, message, btnText, btnActive)
|
|
845
882
|
# GuiMessageBox : Message Box control, displays a message
|
|
846
883
|
# @param bounds [Rectangle]
|
|
847
884
|
# @param title [const char *]
|
|
848
885
|
# @param message [const char *]
|
|
849
|
-
# @param
|
|
886
|
+
# @param btnText [const char *]
|
|
887
|
+
# @param btnActive [int *]
|
|
850
888
|
# @return [int]
|
|
851
|
-
[:GuiMessageBox, :GuiMessageBox, [Rectangle.by_value, :pointer, :pointer, :pointer], :int],
|
|
889
|
+
[:GuiMessageBox, :GuiMessageBox, [Rectangle.by_value, :pointer, :pointer, :pointer, :pointer], :int],
|
|
852
890
|
|
|
853
|
-
# @!method GuiTextInputBox(bounds, title, message,
|
|
891
|
+
# @!method GuiTextInputBox(bounds, title, message, text, textSize, btnText, btnActive, secretViewActive)
|
|
854
892
|
# GuiTextInputBox : Text Input Box control, ask for text, supports secret
|
|
855
893
|
# @param bounds [Rectangle]
|
|
856
894
|
# @param title [const char *]
|
|
857
895
|
# @param message [const char *]
|
|
858
|
-
# @param buttons [const char *]
|
|
859
896
|
# @param text [char *]
|
|
860
|
-
# @param
|
|
897
|
+
# @param textSize [int]
|
|
898
|
+
# @param btnText [const char *]
|
|
899
|
+
# @param btnActive [int *]
|
|
861
900
|
# @param secretViewActive [bool *]
|
|
862
901
|
# @return [int]
|
|
863
|
-
[:GuiTextInputBox, :GuiTextInputBox, [Rectangle.by_value, :pointer, :pointer, :pointer, :pointer, :
|
|
902
|
+
[:GuiTextInputBox, :GuiTextInputBox, [Rectangle.by_value, :pointer, :pointer, :pointer, :int, :pointer, :pointer, :pointer], :int],
|
|
864
903
|
|
|
865
904
|
# @!method GuiColorPicker(bounds, text, color)
|
|
866
|
-
# GuiColorPicker : Color Picker control
|
|
905
|
+
# GuiColorPicker : Color Picker control, includes Color bar controls
|
|
867
906
|
# @param bounds [Rectangle]
|
|
868
907
|
# @param text [const char *]
|
|
869
908
|
# @param color [Color *]
|
|
@@ -895,7 +934,7 @@ module Raylib
|
|
|
895
934
|
[:GuiColorBarHue, :GuiColorBarHue, [Rectangle.by_value, :pointer, :pointer], :int],
|
|
896
935
|
|
|
897
936
|
# @!method GuiColorPickerHSV(bounds, text, colorHsv)
|
|
898
|
-
# GuiColorPickerHSV : Color Picker control
|
|
937
|
+
# GuiColorPickerHSV : Color Picker control, using Hue-Saturation-Value color data, includes Color bar controls
|
|
899
938
|
# @param bounds [Rectangle]
|
|
900
939
|
# @param text [const char *]
|
|
901
940
|
# @param colorHsv [Vector3 *]
|
|
@@ -903,7 +942,7 @@ module Raylib
|
|
|
903
942
|
[:GuiColorPickerHSV, :GuiColorPickerHSV, [Rectangle.by_value, :pointer, :pointer], :int],
|
|
904
943
|
|
|
905
944
|
# @!method GuiColorPanelHSV(bounds, text, colorHsv)
|
|
906
|
-
# GuiColorPanelHSV : Color Panel control
|
|
945
|
+
# GuiColorPanelHSV : Color Panel control, using Hue-Saturation-Value color data
|
|
907
946
|
# @param bounds [Rectangle]
|
|
908
947
|
# @param text [const char *]
|
|
909
948
|
# @param colorHsv [Vector3 *]
|
data/lib/raylib_main.rb
CHANGED
|
@@ -855,7 +855,7 @@ module Raylib
|
|
|
855
855
|
# Skeleton, animation bones hierarchy
|
|
856
856
|
class ModelSkeleton < FFI::Struct
|
|
857
857
|
layout(
|
|
858
|
-
:boneCount, :
|
|
858
|
+
:boneCount, :uint, # Number of bones
|
|
859
859
|
:bones, :pointer, # Bones information (skeleton)
|
|
860
860
|
:bindPose, :pointer, # Bones base transformation (Transform[])
|
|
861
861
|
)
|
|
@@ -904,7 +904,7 @@ module Raylib
|
|
|
904
904
|
class ModelAnimation < FFI::Struct
|
|
905
905
|
layout(
|
|
906
906
|
:name, [:char, 32], # Animation name
|
|
907
|
-
:boneCount, :
|
|
907
|
+
:boneCount, :uint, # Number of bones (per pose)
|
|
908
908
|
:keyframeCount, :int, # Number of animation key frames
|
|
909
909
|
:keyframePoses, :pointer, # Animation sequence keyframe poses [keyframe][pose]
|
|
910
910
|
)
|
|
@@ -1975,13 +1975,13 @@ module Raylib
|
|
|
1975
1975
|
[:GetFileNameWithoutExt, :GetFileNameWithoutExt, [:pointer], :pointer],
|
|
1976
1976
|
|
|
1977
1977
|
# @!method GetDirectoryPath(filePath)
|
|
1978
|
-
# GetDirectoryPath : Get full path for a
|
|
1978
|
+
# GetDirectoryPath : Get full path for a provided fileName with path (uses static string)
|
|
1979
1979
|
# @param filePath [const char *]
|
|
1980
1980
|
# @return [const char *]
|
|
1981
1981
|
[:GetDirectoryPath, :GetDirectoryPath, [:pointer], :pointer],
|
|
1982
1982
|
|
|
1983
1983
|
# @!method GetPrevDirectoryPath(dirPath)
|
|
1984
|
-
# GetPrevDirectoryPath : Get previous directory path for a
|
|
1984
|
+
# GetPrevDirectoryPath : Get previous directory path for a provided path (uses static string)
|
|
1985
1985
|
# @param dirPath [const char *]
|
|
1986
1986
|
# @return [const char *]
|
|
1987
1987
|
[:GetPrevDirectoryPath, :GetPrevDirectoryPath, [:pointer], :pointer],
|
|
@@ -2009,11 +2009,23 @@ module Raylib
|
|
|
2009
2009
|
[:ChangeDirectory, :ChangeDirectory, [:pointer], :int],
|
|
2010
2010
|
|
|
2011
2011
|
# @!method IsPathFile(path)
|
|
2012
|
-
# IsPathFile : Check if
|
|
2012
|
+
# IsPathFile : Check if provided path points to a file
|
|
2013
2013
|
# @param path [const char *]
|
|
2014
2014
|
# @return [bool]
|
|
2015
2015
|
[:IsPathFile, :IsPathFile, [:pointer], :bool],
|
|
2016
2016
|
|
|
2017
|
+
# @!method IsPathDirectory(path)
|
|
2018
|
+
# IsPathDirectory : Check if provided path points to a directory
|
|
2019
|
+
# @param path [const char *]
|
|
2020
|
+
# @return [bool]
|
|
2021
|
+
[:IsPathDirectory, :IsPathDirectory, [:pointer], :bool],
|
|
2022
|
+
|
|
2023
|
+
# @!method IsPathAbsolute(path)
|
|
2024
|
+
# IsPathAbsolute : Check if provided path is an absolute path
|
|
2025
|
+
# @param path [const char *]
|
|
2026
|
+
# @return [bool]
|
|
2027
|
+
[:IsPathAbsolute, :IsPathAbsolute, [:pointer], :bool],
|
|
2028
|
+
|
|
2017
2029
|
# @!method IsFileNameValid(fileName)
|
|
2018
2030
|
# IsFileNameValid : Check if fileName is valid for the platform/OS
|
|
2019
2031
|
# @param fileName [const char *]
|
|
@@ -2399,7 +2411,7 @@ module Raylib
|
|
|
2399
2411
|
[:GetTouchPosition, :GetTouchPosition, [:int], Vector2.by_value],
|
|
2400
2412
|
|
|
2401
2413
|
# @!method GetTouchPointId(index)
|
|
2402
|
-
# GetTouchPointId : Get touch point identifier for
|
|
2414
|
+
# GetTouchPointId : Get touch point identifier for provided index
|
|
2403
2415
|
# @param index [int]
|
|
2404
2416
|
# @return [int]
|
|
2405
2417
|
[:GetTouchPointId, :GetTouchPointId, [:int], :int],
|
|
@@ -2553,132 +2565,50 @@ module Raylib
|
|
|
2553
2565
|
# @return [void]
|
|
2554
2566
|
[:DrawLineDashed, :DrawLineDashed, [Vector2.by_value, Vector2.by_value, :int, :int, Color.by_value], :void],
|
|
2555
2567
|
|
|
2556
|
-
# @!method
|
|
2557
|
-
#
|
|
2558
|
-
# @param
|
|
2559
|
-
# @param
|
|
2560
|
-
# @param
|
|
2561
|
-
# @param color [Color]
|
|
2562
|
-
# @return [void]
|
|
2563
|
-
[:DrawCircle, :DrawCircle, [:int, :int, :float, Color.by_value], :void],
|
|
2564
|
-
|
|
2565
|
-
# @!method DrawCircleV(center, radius, color)
|
|
2566
|
-
# DrawCircleV : Draw a color-filled circle (Vector version)
|
|
2567
|
-
# @param center [Vector2]
|
|
2568
|
-
# @param radius [float]
|
|
2569
|
-
# @param color [Color]
|
|
2570
|
-
# @return [void]
|
|
2571
|
-
[:DrawCircleV, :DrawCircleV, [Vector2.by_value, :float, Color.by_value], :void],
|
|
2572
|
-
|
|
2573
|
-
# @!method DrawCircleGradient(center, radius, inner, outer)
|
|
2574
|
-
# DrawCircleGradient : Draw a gradient-filled circle
|
|
2575
|
-
# @param center [Vector2]
|
|
2576
|
-
# @param radius [float]
|
|
2577
|
-
# @param inner [Color]
|
|
2578
|
-
# @param outer [Color]
|
|
2579
|
-
# @return [void]
|
|
2580
|
-
[:DrawCircleGradient, :DrawCircleGradient, [Vector2.by_value, :float, Color.by_value, Color.by_value], :void],
|
|
2581
|
-
|
|
2582
|
-
# @!method DrawCircleSector(center, radius, startAngle, endAngle, segments, color)
|
|
2583
|
-
# DrawCircleSector : Draw a piece of a circle
|
|
2584
|
-
# @param center [Vector2]
|
|
2585
|
-
# @param radius [float]
|
|
2586
|
-
# @param startAngle [float]
|
|
2587
|
-
# @param endAngle [float]
|
|
2588
|
-
# @param segments [int]
|
|
2589
|
-
# @param color [Color]
|
|
2590
|
-
# @return [void]
|
|
2591
|
-
[:DrawCircleSector, :DrawCircleSector, [Vector2.by_value, :float, :float, :float, :int, Color.by_value], :void],
|
|
2592
|
-
|
|
2593
|
-
# @!method DrawCircleSectorLines(center, radius, startAngle, endAngle, segments, color)
|
|
2594
|
-
# DrawCircleSectorLines : Draw circle sector outline
|
|
2595
|
-
# @param center [Vector2]
|
|
2596
|
-
# @param radius [float]
|
|
2597
|
-
# @param startAngle [float]
|
|
2598
|
-
# @param endAngle [float]
|
|
2599
|
-
# @param segments [int]
|
|
2600
|
-
# @param color [Color]
|
|
2601
|
-
# @return [void]
|
|
2602
|
-
[:DrawCircleSectorLines, :DrawCircleSectorLines, [Vector2.by_value, :float, :float, :float, :int, Color.by_value], :void],
|
|
2603
|
-
|
|
2604
|
-
# @!method DrawCircleLines(centerX, centerY, radius, color)
|
|
2605
|
-
# DrawCircleLines : Draw circle outline
|
|
2606
|
-
# @param centerX [int]
|
|
2607
|
-
# @param centerY [int]
|
|
2608
|
-
# @param radius [float]
|
|
2609
|
-
# @param color [Color]
|
|
2610
|
-
# @return [void]
|
|
2611
|
-
[:DrawCircleLines, :DrawCircleLines, [:int, :int, :float, Color.by_value], :void],
|
|
2612
|
-
|
|
2613
|
-
# @!method DrawCircleLinesV(center, radius, color)
|
|
2614
|
-
# DrawCircleLinesV : Draw circle outline (Vector version)
|
|
2615
|
-
# @param center [Vector2]
|
|
2616
|
-
# @param radius [float]
|
|
2617
|
-
# @param color [Color]
|
|
2618
|
-
# @return [void]
|
|
2619
|
-
[:DrawCircleLinesV, :DrawCircleLinesV, [Vector2.by_value, :float, Color.by_value], :void],
|
|
2620
|
-
|
|
2621
|
-
# @!method DrawEllipse(centerX, centerY, radiusH, radiusV, color)
|
|
2622
|
-
# DrawEllipse : Draw ellipse
|
|
2623
|
-
# @param centerX [int]
|
|
2624
|
-
# @param centerY [int]
|
|
2625
|
-
# @param radiusH [float]
|
|
2626
|
-
# @param radiusV [float]
|
|
2627
|
-
# @param color [Color]
|
|
2628
|
-
# @return [void]
|
|
2629
|
-
[:DrawEllipse, :DrawEllipse, [:int, :int, :float, :float, Color.by_value], :void],
|
|
2630
|
-
|
|
2631
|
-
# @!method DrawEllipseV(center, radiusH, radiusV, color)
|
|
2632
|
-
# DrawEllipseV : Draw ellipse (Vector version)
|
|
2633
|
-
# @param center [Vector2]
|
|
2634
|
-
# @param radiusH [float]
|
|
2635
|
-
# @param radiusV [float]
|
|
2568
|
+
# @!method DrawTriangle(v1, v2, v3, color)
|
|
2569
|
+
# DrawTriangle : Draw a color-filled triangle, counter-clockwise vertex order
|
|
2570
|
+
# @param v1 [Vector2]
|
|
2571
|
+
# @param v2 [Vector2]
|
|
2572
|
+
# @param v3 [Vector2]
|
|
2636
2573
|
# @param color [Color]
|
|
2637
2574
|
# @return [void]
|
|
2638
|
-
[:
|
|
2575
|
+
[:DrawTriangle, :DrawTriangle, [Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value], :void],
|
|
2639
2576
|
|
|
2640
|
-
# @!method
|
|
2641
|
-
#
|
|
2642
|
-
# @param
|
|
2643
|
-
# @param
|
|
2644
|
-
# @param
|
|
2645
|
-
# @param
|
|
2646
|
-
# @param
|
|
2577
|
+
# @!method DrawTriangleGradient(v1, v2, v3, c1, c2, c3)
|
|
2578
|
+
# DrawTriangleGradient : Draw triangle with interpolated colors, counter-clockwise vertex/color order
|
|
2579
|
+
# @param v1 [Vector2]
|
|
2580
|
+
# @param v2 [Vector2]
|
|
2581
|
+
# @param v3 [Vector2]
|
|
2582
|
+
# @param c1 [Color]
|
|
2583
|
+
# @param c2 [Color]
|
|
2584
|
+
# @param c3 [Color]
|
|
2647
2585
|
# @return [void]
|
|
2648
|
-
[:
|
|
2586
|
+
[:DrawTriangleGradient, :DrawTriangleGradient, [Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value, Color.by_value, Color.by_value], :void],
|
|
2649
2587
|
|
|
2650
|
-
# @!method
|
|
2651
|
-
#
|
|
2652
|
-
# @param
|
|
2653
|
-
# @param
|
|
2654
|
-
# @param
|
|
2588
|
+
# @!method DrawTriangleLines(v1, v2, v3, color)
|
|
2589
|
+
# DrawTriangleLines : Draw triangle outline, counter-clockwise vertex order
|
|
2590
|
+
# @param v1 [Vector2]
|
|
2591
|
+
# @param v2 [Vector2]
|
|
2592
|
+
# @param v3 [Vector2]
|
|
2655
2593
|
# @param color [Color]
|
|
2656
2594
|
# @return [void]
|
|
2657
|
-
[:
|
|
2595
|
+
[:DrawTriangleLines, :DrawTriangleLines, [Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value], :void],
|
|
2658
2596
|
|
|
2659
|
-
# @!method
|
|
2660
|
-
#
|
|
2661
|
-
# @param
|
|
2662
|
-
# @param
|
|
2663
|
-
# @param outerRadius [float]
|
|
2664
|
-
# @param startAngle [float]
|
|
2665
|
-
# @param endAngle [float]
|
|
2666
|
-
# @param segments [int]
|
|
2597
|
+
# @!method DrawTriangleFan(points, pointCount, color)
|
|
2598
|
+
# DrawTriangleFan : Draw a triangle fan defined by points (first vertex is the center)
|
|
2599
|
+
# @param points [const Vector2 *]
|
|
2600
|
+
# @param pointCount [int]
|
|
2667
2601
|
# @param color [Color]
|
|
2668
2602
|
# @return [void]
|
|
2669
|
-
[:
|
|
2603
|
+
[:DrawTriangleFan, :DrawTriangleFan, [:pointer, :int, Color.by_value], :void],
|
|
2670
2604
|
|
|
2671
|
-
# @!method
|
|
2672
|
-
#
|
|
2673
|
-
# @param
|
|
2674
|
-
# @param
|
|
2675
|
-
# @param outerRadius [float]
|
|
2676
|
-
# @param startAngle [float]
|
|
2677
|
-
# @param endAngle [float]
|
|
2678
|
-
# @param segments [int]
|
|
2605
|
+
# @!method DrawTriangleStrip(points, pointCount, color)
|
|
2606
|
+
# DrawTriangleStrip : Draw a triangle strip defined by points
|
|
2607
|
+
# @param points [const Vector2 *]
|
|
2608
|
+
# @param pointCount [int]
|
|
2679
2609
|
# @param color [Color]
|
|
2680
2610
|
# @return [void]
|
|
2681
|
-
[:
|
|
2611
|
+
[:DrawTriangleStrip, :DrawTriangleStrip, [:pointer, :int, Color.by_value], :void],
|
|
2682
2612
|
|
|
2683
2613
|
# @!method DrawRectangle(posX, posY, width, height, color)
|
|
2684
2614
|
# DrawRectangle : Draw a color-filled rectangle
|
|
@@ -2736,13 +2666,13 @@ module Raylib
|
|
|
2736
2666
|
# @return [void]
|
|
2737
2667
|
[:DrawRectangleGradientH, :DrawRectangleGradientH, [:int, :int, :int, :int, Color.by_value, Color.by_value], :void],
|
|
2738
2668
|
|
|
2739
|
-
# @!method DrawRectangleGradientEx(rec,
|
|
2740
|
-
# DrawRectangleGradientEx : Draw a gradient-filled rectangle with custom vertex colors
|
|
2669
|
+
# @!method DrawRectangleGradientEx(rec, col1, col2, col3, col4)
|
|
2670
|
+
# DrawRectangleGradientEx : Draw a gradient-filled rectangle with custom vertex colors, counter-clockwise color order
|
|
2741
2671
|
# @param rec [Rectangle]
|
|
2742
|
-
# @param
|
|
2743
|
-
# @param
|
|
2744
|
-
# @param
|
|
2745
|
-
# @param
|
|
2672
|
+
# @param col1 [Color]
|
|
2673
|
+
# @param col2 [Color]
|
|
2674
|
+
# @param col3 [Color]
|
|
2675
|
+
# @param col4 [Color]
|
|
2746
2676
|
# @return [void]
|
|
2747
2677
|
[:DrawRectangleGradientEx, :DrawRectangleGradientEx, [Rectangle.by_value, Color.by_value, Color.by_value, Color.by_value, Color.by_value], :void],
|
|
2748
2678
|
|
|
@@ -2756,10 +2686,10 @@ module Raylib
|
|
|
2756
2686
|
# @return [void]
|
|
2757
2687
|
[:DrawRectangleLines, :DrawRectangleLines, [:int, :int, :int, :int, Color.by_value], :void],
|
|
2758
2688
|
|
|
2759
|
-
# @!method DrawRectangleLinesEx(rec,
|
|
2760
|
-
# DrawRectangleLinesEx : Draw rectangle outline with
|
|
2689
|
+
# @!method DrawRectangleLinesEx(rec, thick, color)
|
|
2690
|
+
# DrawRectangleLinesEx : Draw rectangle outline with line thickness
|
|
2761
2691
|
# @param rec [Rectangle]
|
|
2762
|
-
# @param
|
|
2692
|
+
# @param thick [float]
|
|
2763
2693
|
# @param color [Color]
|
|
2764
2694
|
# @return [void]
|
|
2765
2695
|
[:DrawRectangleLinesEx, :DrawRectangleLinesEx, [Rectangle.by_value, :float, Color.by_value], :void],
|
|
@@ -2782,91 +2712,182 @@ module Raylib
|
|
|
2782
2712
|
# @return [void]
|
|
2783
2713
|
[:DrawRectangleRoundedLines, :DrawRectangleRoundedLines, [Rectangle.by_value, :float, :int, Color.by_value], :void],
|
|
2784
2714
|
|
|
2785
|
-
# @!method DrawRectangleRoundedLinesEx(rec, roundness, segments,
|
|
2786
|
-
# DrawRectangleRoundedLinesEx : Draw rectangle lines with rounded edges outline
|
|
2715
|
+
# @!method DrawRectangleRoundedLinesEx(rec, roundness, segments, thick, color)
|
|
2716
|
+
# DrawRectangleRoundedLinesEx : Draw rectangle lines with rounded edges outline and line thickness
|
|
2787
2717
|
# @param rec [Rectangle]
|
|
2788
2718
|
# @param roundness [float]
|
|
2789
2719
|
# @param segments [int]
|
|
2790
|
-
# @param
|
|
2720
|
+
# @param thick [float]
|
|
2791
2721
|
# @param color [Color]
|
|
2792
2722
|
# @return [void]
|
|
2793
2723
|
[:DrawRectangleRoundedLinesEx, :DrawRectangleRoundedLinesEx, [Rectangle.by_value, :float, :int, :float, Color.by_value], :void],
|
|
2794
2724
|
|
|
2795
|
-
# @!method
|
|
2796
|
-
#
|
|
2797
|
-
# @param
|
|
2798
|
-
# @param
|
|
2799
|
-
# @param
|
|
2725
|
+
# @!method DrawPoly(center, sides, radius, rotation, color)
|
|
2726
|
+
# DrawPoly : Draw a polygon of n sides
|
|
2727
|
+
# @param center [Vector2]
|
|
2728
|
+
# @param sides [int]
|
|
2729
|
+
# @param radius [float]
|
|
2730
|
+
# @param rotation [float]
|
|
2800
2731
|
# @param color [Color]
|
|
2801
2732
|
# @return [void]
|
|
2802
|
-
[:
|
|
2733
|
+
[:DrawPoly, :DrawPoly, [Vector2.by_value, :int, :float, :float, Color.by_value], :void],
|
|
2803
2734
|
|
|
2804
|
-
# @!method
|
|
2805
|
-
#
|
|
2806
|
-
# @param
|
|
2807
|
-
# @param
|
|
2808
|
-
# @param
|
|
2809
|
-
# @param
|
|
2810
|
-
# @param
|
|
2811
|
-
# @param c3 [Color]
|
|
2735
|
+
# @!method DrawPolyLines(center, sides, radius, rotation, color)
|
|
2736
|
+
# DrawPolyLines : Draw a polygon outline of n sides
|
|
2737
|
+
# @param center [Vector2]
|
|
2738
|
+
# @param sides [int]
|
|
2739
|
+
# @param radius [float]
|
|
2740
|
+
# @param rotation [float]
|
|
2741
|
+
# @param color [Color]
|
|
2812
2742
|
# @return [void]
|
|
2813
|
-
[:
|
|
2743
|
+
[:DrawPolyLines, :DrawPolyLines, [Vector2.by_value, :int, :float, :float, Color.by_value], :void],
|
|
2814
2744
|
|
|
2815
|
-
# @!method
|
|
2816
|
-
#
|
|
2817
|
-
# @param
|
|
2818
|
-
# @param
|
|
2819
|
-
# @param
|
|
2745
|
+
# @!method DrawPolyLinesEx(center, sides, radius, rotation, thick, color)
|
|
2746
|
+
# DrawPolyLinesEx : Draw a polygon outline of n sides with line thickness
|
|
2747
|
+
# @param center [Vector2]
|
|
2748
|
+
# @param sides [int]
|
|
2749
|
+
# @param radius [float]
|
|
2750
|
+
# @param rotation [float]
|
|
2751
|
+
# @param thick [float]
|
|
2820
2752
|
# @param color [Color]
|
|
2821
2753
|
# @return [void]
|
|
2822
|
-
[:
|
|
2754
|
+
[:DrawPolyLinesEx, :DrawPolyLinesEx, [Vector2.by_value, :int, :float, :float, :float, Color.by_value], :void],
|
|
2823
2755
|
|
|
2824
|
-
# @!method
|
|
2825
|
-
#
|
|
2826
|
-
# @param
|
|
2827
|
-
# @param
|
|
2756
|
+
# @!method DrawCircle(centerX, centerY, radius, color)
|
|
2757
|
+
# DrawCircle : Draw a color-filled circle
|
|
2758
|
+
# @param centerX [int]
|
|
2759
|
+
# @param centerY [int]
|
|
2760
|
+
# @param radius [float]
|
|
2828
2761
|
# @param color [Color]
|
|
2829
2762
|
# @return [void]
|
|
2830
|
-
[:
|
|
2763
|
+
[:DrawCircle, :DrawCircle, [:int, :int, :float, Color.by_value], :void],
|
|
2831
2764
|
|
|
2832
|
-
# @!method
|
|
2833
|
-
#
|
|
2834
|
-
# @param
|
|
2835
|
-
# @param
|
|
2765
|
+
# @!method DrawCircleV(center, radius, color)
|
|
2766
|
+
# DrawCircleV : Draw a color-filled circle (Vector version)
|
|
2767
|
+
# @param center [Vector2]
|
|
2768
|
+
# @param radius [float]
|
|
2836
2769
|
# @param color [Color]
|
|
2837
2770
|
# @return [void]
|
|
2838
|
-
[:
|
|
2771
|
+
[:DrawCircleV, :DrawCircleV, [Vector2.by_value, :float, Color.by_value], :void],
|
|
2839
2772
|
|
|
2840
|
-
# @!method
|
|
2841
|
-
#
|
|
2773
|
+
# @!method DrawCircleGradient(center, radius, inner, outer)
|
|
2774
|
+
# DrawCircleGradient : Draw a gradient-filled circle
|
|
2842
2775
|
# @param center [Vector2]
|
|
2843
|
-
# @param sides [int]
|
|
2844
2776
|
# @param radius [float]
|
|
2845
|
-
# @param
|
|
2777
|
+
# @param inner [Color]
|
|
2778
|
+
# @param outer [Color]
|
|
2779
|
+
# @return [void]
|
|
2780
|
+
[:DrawCircleGradient, :DrawCircleGradient, [Vector2.by_value, :float, Color.by_value, Color.by_value], :void],
|
|
2781
|
+
|
|
2782
|
+
# @!method DrawCircleSector(center, radius, startAngle, endAngle, segments, color)
|
|
2783
|
+
# DrawCircleSector : Draw a piece of a circle
|
|
2784
|
+
# @param center [Vector2]
|
|
2785
|
+
# @param radius [float]
|
|
2786
|
+
# @param startAngle [float]
|
|
2787
|
+
# @param endAngle [float]
|
|
2788
|
+
# @param segments [int]
|
|
2846
2789
|
# @param color [Color]
|
|
2847
2790
|
# @return [void]
|
|
2848
|
-
[:
|
|
2791
|
+
[:DrawCircleSector, :DrawCircleSector, [Vector2.by_value, :float, :float, :float, :int, Color.by_value], :void],
|
|
2849
2792
|
|
|
2850
|
-
# @!method
|
|
2851
|
-
#
|
|
2793
|
+
# @!method DrawCircleSectorLines(center, radius, startAngle, endAngle, segments, color)
|
|
2794
|
+
# DrawCircleSectorLines : Draw circle sector outline
|
|
2852
2795
|
# @param center [Vector2]
|
|
2853
|
-
# @param sides [int]
|
|
2854
2796
|
# @param radius [float]
|
|
2855
|
-
# @param
|
|
2797
|
+
# @param startAngle [float]
|
|
2798
|
+
# @param endAngle [float]
|
|
2799
|
+
# @param segments [int]
|
|
2856
2800
|
# @param color [Color]
|
|
2857
2801
|
# @return [void]
|
|
2858
|
-
[:
|
|
2802
|
+
[:DrawCircleSectorLines, :DrawCircleSectorLines, [Vector2.by_value, :float, :float, :float, :int, Color.by_value], :void],
|
|
2803
|
+
|
|
2804
|
+
# @!method DrawCircleLines(centerX, centerY, radius, color)
|
|
2805
|
+
# DrawCircleLines : Draw circle outline
|
|
2806
|
+
# @param centerX [int]
|
|
2807
|
+
# @param centerY [int]
|
|
2808
|
+
# @param radius [float]
|
|
2809
|
+
# @param color [Color]
|
|
2810
|
+
# @return [void]
|
|
2811
|
+
[:DrawCircleLines, :DrawCircleLines, [:int, :int, :float, Color.by_value], :void],
|
|
2859
2812
|
|
|
2860
|
-
# @!method
|
|
2861
|
-
#
|
|
2813
|
+
# @!method DrawCircleLinesV(center, radius, color)
|
|
2814
|
+
# DrawCircleLinesV : Draw circle outline (Vector version)
|
|
2862
2815
|
# @param center [Vector2]
|
|
2863
|
-
# @param sides [int]
|
|
2864
2816
|
# @param radius [float]
|
|
2865
|
-
# @param rotation [float]
|
|
2866
|
-
# @param lineThick [float]
|
|
2867
2817
|
# @param color [Color]
|
|
2868
2818
|
# @return [void]
|
|
2869
|
-
[:
|
|
2819
|
+
[:DrawCircleLinesV, :DrawCircleLinesV, [Vector2.by_value, :float, Color.by_value], :void],
|
|
2820
|
+
|
|
2821
|
+
# @!method DrawCircleLinesEx(center, radius, thick, color)
|
|
2822
|
+
# DrawCircleLinesEx : Draw circle outline with line thickness
|
|
2823
|
+
# @param center [Vector2]
|
|
2824
|
+
# @param radius [float]
|
|
2825
|
+
# @param thick [float]
|
|
2826
|
+
# @param color [Color]
|
|
2827
|
+
# @return [void]
|
|
2828
|
+
[:DrawCircleLinesEx, :DrawCircleLinesEx, [Vector2.by_value, :float, :float, Color.by_value], :void],
|
|
2829
|
+
|
|
2830
|
+
# @!method DrawEllipse(centerX, centerY, radiusH, radiusV, color)
|
|
2831
|
+
# DrawEllipse : Draw ellipse
|
|
2832
|
+
# @param centerX [int]
|
|
2833
|
+
# @param centerY [int]
|
|
2834
|
+
# @param radiusH [float]
|
|
2835
|
+
# @param radiusV [float]
|
|
2836
|
+
# @param color [Color]
|
|
2837
|
+
# @return [void]
|
|
2838
|
+
[:DrawEllipse, :DrawEllipse, [:int, :int, :float, :float, Color.by_value], :void],
|
|
2839
|
+
|
|
2840
|
+
# @!method DrawEllipseV(center, radiusH, radiusV, color)
|
|
2841
|
+
# DrawEllipseV : Draw ellipse (Vector version)
|
|
2842
|
+
# @param center [Vector2]
|
|
2843
|
+
# @param radiusH [float]
|
|
2844
|
+
# @param radiusV [float]
|
|
2845
|
+
# @param color [Color]
|
|
2846
|
+
# @return [void]
|
|
2847
|
+
[:DrawEllipseV, :DrawEllipseV, [Vector2.by_value, :float, :float, Color.by_value], :void],
|
|
2848
|
+
|
|
2849
|
+
# @!method DrawEllipseLines(centerX, centerY, radiusH, radiusV, color)
|
|
2850
|
+
# DrawEllipseLines : Draw ellipse outline
|
|
2851
|
+
# @param centerX [int]
|
|
2852
|
+
# @param centerY [int]
|
|
2853
|
+
# @param radiusH [float]
|
|
2854
|
+
# @param radiusV [float]
|
|
2855
|
+
# @param color [Color]
|
|
2856
|
+
# @return [void]
|
|
2857
|
+
[:DrawEllipseLines, :DrawEllipseLines, [:int, :int, :float, :float, Color.by_value], :void],
|
|
2858
|
+
|
|
2859
|
+
# @!method DrawEllipseLinesV(center, radiusH, radiusV, color)
|
|
2860
|
+
# DrawEllipseLinesV : Draw ellipse outline (Vector version)
|
|
2861
|
+
# @param center [Vector2]
|
|
2862
|
+
# @param radiusH [float]
|
|
2863
|
+
# @param radiusV [float]
|
|
2864
|
+
# @param color [Color]
|
|
2865
|
+
# @return [void]
|
|
2866
|
+
[:DrawEllipseLinesV, :DrawEllipseLinesV, [Vector2.by_value, :float, :float, Color.by_value], :void],
|
|
2867
|
+
|
|
2868
|
+
# @!method DrawRing(center, innerRadius, outerRadius, startAngle, endAngle, segments, color)
|
|
2869
|
+
# DrawRing : Draw ring
|
|
2870
|
+
# @param center [Vector2]
|
|
2871
|
+
# @param innerRadius [float]
|
|
2872
|
+
# @param outerRadius [float]
|
|
2873
|
+
# @param startAngle [float]
|
|
2874
|
+
# @param endAngle [float]
|
|
2875
|
+
# @param segments [int]
|
|
2876
|
+
# @param color [Color]
|
|
2877
|
+
# @return [void]
|
|
2878
|
+
[:DrawRing, :DrawRing, [Vector2.by_value, :float, :float, :float, :float, :int, Color.by_value], :void],
|
|
2879
|
+
|
|
2880
|
+
# @!method DrawRingLines(center, innerRadius, outerRadius, startAngle, endAngle, segments, color)
|
|
2881
|
+
# DrawRingLines : Draw ring outline
|
|
2882
|
+
# @param center [Vector2]
|
|
2883
|
+
# @param innerRadius [float]
|
|
2884
|
+
# @param outerRadius [float]
|
|
2885
|
+
# @param startAngle [float]
|
|
2886
|
+
# @param endAngle [float]
|
|
2887
|
+
# @param segments [int]
|
|
2888
|
+
# @param color [Color]
|
|
2889
|
+
# @return [void]
|
|
2890
|
+
[:DrawRingLines, :DrawRingLines, [Vector2.by_value, :float, :float, :float, :float, :int, Color.by_value], :void],
|
|
2870
2891
|
|
|
2871
2892
|
# @!method DrawSplineLinear(points, pointCount, thick, color)
|
|
2872
2893
|
# DrawSplineLinear : Draw spline: Linear, minimum 2 points
|
|
@@ -3530,7 +3551,7 @@ module Raylib
|
|
|
3530
3551
|
[:GetImageColor, :GetImageColor, [Image.by_value, :int, :int], Color.by_value],
|
|
3531
3552
|
|
|
3532
3553
|
# @!method ImageClearBackground(dst, color)
|
|
3533
|
-
# ImageClearBackground : Clear image background with
|
|
3554
|
+
# ImageClearBackground : Clear image background with provided color
|
|
3534
3555
|
# @param dst [Image *]
|
|
3535
3556
|
# @param color [Color]
|
|
3536
3557
|
# @return [void]
|
|
@@ -3583,43 +3604,64 @@ module Raylib
|
|
|
3583
3604
|
# @return [void]
|
|
3584
3605
|
[:ImageDrawLineEx, :ImageDrawLineEx, [:pointer, Vector2.by_value, Vector2.by_value, :int, Color.by_value], :void],
|
|
3585
3606
|
|
|
3586
|
-
# @!method
|
|
3587
|
-
#
|
|
3607
|
+
# @!method ImageDrawLineStrip(dst, points, pointCount, color)
|
|
3608
|
+
# ImageDrawLineStrip : Draw a lines sequence within an image
|
|
3588
3609
|
# @param dst [Image *]
|
|
3589
|
-
# @param
|
|
3590
|
-
# @param
|
|
3591
|
-
# @param radius [int]
|
|
3610
|
+
# @param points [const Vector2 *]
|
|
3611
|
+
# @param pointCount [int]
|
|
3592
3612
|
# @param color [Color]
|
|
3593
3613
|
# @return [void]
|
|
3594
|
-
[:
|
|
3614
|
+
[:ImageDrawLineStrip, :ImageDrawLineStrip, [:pointer, :pointer, :int, Color.by_value], :void],
|
|
3595
3615
|
|
|
3596
|
-
# @!method
|
|
3597
|
-
#
|
|
3616
|
+
# @!method ImageDrawTriangle(dst, v1, v2, v3, color)
|
|
3617
|
+
# ImageDrawTriangle : Draw triangle within an image
|
|
3598
3618
|
# @param dst [Image *]
|
|
3599
|
-
# @param
|
|
3600
|
-
# @param
|
|
3619
|
+
# @param v1 [Vector2]
|
|
3620
|
+
# @param v2 [Vector2]
|
|
3621
|
+
# @param v3 [Vector2]
|
|
3601
3622
|
# @param color [Color]
|
|
3602
3623
|
# @return [void]
|
|
3603
|
-
[:
|
|
3624
|
+
[:ImageDrawTriangle, :ImageDrawTriangle, [:pointer, Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value], :void],
|
|
3604
3625
|
|
|
3605
|
-
# @!method
|
|
3606
|
-
#
|
|
3626
|
+
# @!method ImageDrawTriangleGradient(dst, v1, v2, v3, c1, c2, c3)
|
|
3627
|
+
# ImageDrawTriangleGradient : Draw triangle with interpolated colors within an image
|
|
3607
3628
|
# @param dst [Image *]
|
|
3608
|
-
# @param
|
|
3609
|
-
# @param
|
|
3610
|
-
# @param
|
|
3629
|
+
# @param v1 [Vector2]
|
|
3630
|
+
# @param v2 [Vector2]
|
|
3631
|
+
# @param v3 [Vector2]
|
|
3632
|
+
# @param c1 [Color]
|
|
3633
|
+
# @param c2 [Color]
|
|
3634
|
+
# @param c3 [Color]
|
|
3635
|
+
# @return [void]
|
|
3636
|
+
[:ImageDrawTriangleGradient, :ImageDrawTriangleGradient, [:pointer, Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value, Color.by_value, Color.by_value], :void],
|
|
3637
|
+
|
|
3638
|
+
# @!method ImageDrawTriangleLines(dst, v1, v2, v3, color)
|
|
3639
|
+
# ImageDrawTriangleLines : Draw triangle outline within an image
|
|
3640
|
+
# @param dst [Image *]
|
|
3641
|
+
# @param v1 [Vector2]
|
|
3642
|
+
# @param v2 [Vector2]
|
|
3643
|
+
# @param v3 [Vector2]
|
|
3611
3644
|
# @param color [Color]
|
|
3612
3645
|
# @return [void]
|
|
3613
|
-
[:
|
|
3646
|
+
[:ImageDrawTriangleLines, :ImageDrawTriangleLines, [:pointer, Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value], :void],
|
|
3614
3647
|
|
|
3615
|
-
# @!method
|
|
3616
|
-
#
|
|
3648
|
+
# @!method ImageDrawTriangleFan(dst, points, pointCount, color)
|
|
3649
|
+
# ImageDrawTriangleFan : Draw a triangle fan defined by points within an image (first vertex is the center)
|
|
3617
3650
|
# @param dst [Image *]
|
|
3618
|
-
# @param
|
|
3619
|
-
# @param
|
|
3651
|
+
# @param points [const Vector2 *]
|
|
3652
|
+
# @param pointCount [int]
|
|
3620
3653
|
# @param color [Color]
|
|
3621
3654
|
# @return [void]
|
|
3622
|
-
[:
|
|
3655
|
+
[:ImageDrawTriangleFan, :ImageDrawTriangleFan, [:pointer, :pointer, :int, Color.by_value], :void],
|
|
3656
|
+
|
|
3657
|
+
# @!method ImageDrawTriangleStrip(dst, points, pointCount, color)
|
|
3658
|
+
# ImageDrawTriangleStrip : Draw a triangle strip defined by points within an image
|
|
3659
|
+
# @param dst [Image *]
|
|
3660
|
+
# @param points [const Vector2 *]
|
|
3661
|
+
# @param pointCount [int]
|
|
3662
|
+
# @param color [Color]
|
|
3663
|
+
# @return [void]
|
|
3664
|
+
[:ImageDrawTriangleStrip, :ImageDrawTriangleStrip, [:pointer, :pointer, :int, Color.by_value], :void],
|
|
3623
3665
|
|
|
3624
3666
|
# @!method ImageDrawRectangle(dst, posX, posY, width, height, color)
|
|
3625
3667
|
# ImageDrawRectangle : Draw rectangle within an image
|
|
@@ -3649,6 +3691,16 @@ module Raylib
|
|
|
3649
3691
|
# @return [void]
|
|
3650
3692
|
[:ImageDrawRectangleRec, :ImageDrawRectangleRec, [:pointer, Rectangle.by_value, Color.by_value], :void],
|
|
3651
3693
|
|
|
3694
|
+
# @!method ImageDrawRectanglePro(dst, rec, origin, rotation, color)
|
|
3695
|
+
# ImageDrawRectanglePro : Draw a color-filled rectangle with pro parameters within and image
|
|
3696
|
+
# @param dst [Image *]
|
|
3697
|
+
# @param rec [Rectangle]
|
|
3698
|
+
# @param origin [Vector2]
|
|
3699
|
+
# @param rotation [float]
|
|
3700
|
+
# @param color [Color]
|
|
3701
|
+
# @return [void]
|
|
3702
|
+
[:ImageDrawRectanglePro, :ImageDrawRectanglePro, [:pointer, Rectangle.by_value, Vector2.by_value, :float, Color.by_value], :void],
|
|
3703
|
+
|
|
3652
3704
|
# @!method ImageDrawRectangleLines(dst, posX, posY, width, height, color)
|
|
3653
3705
|
# ImageDrawRectangleLines : Draw rectangle lines within an image
|
|
3654
3706
|
# @param dst [Image *]
|
|
@@ -3661,7 +3713,7 @@ module Raylib
|
|
|
3661
3713
|
[:ImageDrawRectangleLines, :ImageDrawRectangleLines, [:pointer, :int, :int, :int, :int, Color.by_value], :void],
|
|
3662
3714
|
|
|
3663
3715
|
# @!method ImageDrawRectangleLinesEx(dst, rec, thick, color)
|
|
3664
|
-
# ImageDrawRectangleLinesEx : Draw rectangle lines within an image with
|
|
3716
|
+
# ImageDrawRectangleLinesEx : Draw rectangle lines within an image with line thickness
|
|
3665
3717
|
# @param dst [Image *]
|
|
3666
3718
|
# @param rec [Rectangle]
|
|
3667
3719
|
# @param thick [int]
|
|
@@ -3669,65 +3721,107 @@ module Raylib
|
|
|
3669
3721
|
# @return [void]
|
|
3670
3722
|
[:ImageDrawRectangleLinesEx, :ImageDrawRectangleLinesEx, [:pointer, Rectangle.by_value, :int, Color.by_value], :void],
|
|
3671
3723
|
|
|
3672
|
-
# @!method
|
|
3673
|
-
#
|
|
3724
|
+
# @!method ImageDrawRectangleGradientEx(dst, rec, col1, col2, col3, col4)
|
|
3725
|
+
# ImageDrawRectangleGradientEx : Draw rectangle with gradient colors within an image, counter-clockwise color order
|
|
3674
3726
|
# @param dst [Image *]
|
|
3675
|
-
# @param
|
|
3676
|
-
# @param
|
|
3677
|
-
# @param
|
|
3678
|
-
# @param
|
|
3727
|
+
# @param rec [Rectangle]
|
|
3728
|
+
# @param col1 [Color]
|
|
3729
|
+
# @param col2 [Color]
|
|
3730
|
+
# @param col3 [Color]
|
|
3731
|
+
# @param col4 [Color]
|
|
3679
3732
|
# @return [void]
|
|
3680
|
-
[:
|
|
3733
|
+
[:ImageDrawRectangleGradientEx, :ImageDrawRectangleGradientEx, [:pointer, Rectangle.by_value, Color.by_value, Color.by_value, Color.by_value, Color.by_value], :void],
|
|
3681
3734
|
|
|
3682
|
-
# @!method
|
|
3683
|
-
#
|
|
3735
|
+
# @!method ImageDrawCircle(dst, centerX, centerY, radius, color)
|
|
3736
|
+
# ImageDrawCircle : Draw a filled circle within an image
|
|
3684
3737
|
# @param dst [Image *]
|
|
3685
|
-
# @param
|
|
3686
|
-
# @param
|
|
3687
|
-
# @param
|
|
3688
|
-
# @param
|
|
3689
|
-
# @param c2 [Color]
|
|
3690
|
-
# @param c3 [Color]
|
|
3738
|
+
# @param centerX [int]
|
|
3739
|
+
# @param centerY [int]
|
|
3740
|
+
# @param radius [int]
|
|
3741
|
+
# @param color [Color]
|
|
3691
3742
|
# @return [void]
|
|
3692
|
-
[:
|
|
3743
|
+
[:ImageDrawCircle, :ImageDrawCircle, [:pointer, :int, :int, :int, Color.by_value], :void],
|
|
3693
3744
|
|
|
3694
|
-
# @!method
|
|
3695
|
-
#
|
|
3745
|
+
# @!method ImageDrawCircleV(dst, center, radius, color)
|
|
3746
|
+
# ImageDrawCircleV : Draw a filled circle within an image (Vector version)
|
|
3696
3747
|
# @param dst [Image *]
|
|
3697
|
-
# @param
|
|
3698
|
-
# @param
|
|
3699
|
-
# @param v3 [Vector2]
|
|
3748
|
+
# @param center [Vector2]
|
|
3749
|
+
# @param radius [int]
|
|
3700
3750
|
# @param color [Color]
|
|
3701
3751
|
# @return [void]
|
|
3702
|
-
[:
|
|
3752
|
+
[:ImageDrawCircleV, :ImageDrawCircleV, [:pointer, Vector2.by_value, :int, Color.by_value], :void],
|
|
3703
3753
|
|
|
3704
|
-
# @!method
|
|
3705
|
-
#
|
|
3754
|
+
# @!method ImageDrawCircleLines(dst, centerX, centerY, radius, color)
|
|
3755
|
+
# ImageDrawCircleLines : Draw circle outline within an image
|
|
3706
3756
|
# @param dst [Image *]
|
|
3707
|
-
# @param
|
|
3708
|
-
# @param
|
|
3757
|
+
# @param centerX [int]
|
|
3758
|
+
# @param centerY [int]
|
|
3759
|
+
# @param radius [int]
|
|
3709
3760
|
# @param color [Color]
|
|
3710
3761
|
# @return [void]
|
|
3711
|
-
[:
|
|
3762
|
+
[:ImageDrawCircleLines, :ImageDrawCircleLines, [:pointer, :int, :int, :int, Color.by_value], :void],
|
|
3712
3763
|
|
|
3713
|
-
# @!method
|
|
3714
|
-
#
|
|
3764
|
+
# @!method ImageDrawCircleLinesV(dst, center, radius, color)
|
|
3765
|
+
# ImageDrawCircleLinesV : Draw circle outline within an image (Vector version)
|
|
3715
3766
|
# @param dst [Image *]
|
|
3716
|
-
# @param
|
|
3717
|
-
# @param
|
|
3767
|
+
# @param center [Vector2]
|
|
3768
|
+
# @param radius [int]
|
|
3718
3769
|
# @param color [Color]
|
|
3719
3770
|
# @return [void]
|
|
3720
|
-
[:
|
|
3771
|
+
[:ImageDrawCircleLinesV, :ImageDrawCircleLinesV, [:pointer, Vector2.by_value, :int, Color.by_value], :void],
|
|
3721
3772
|
|
|
3722
|
-
# @!method
|
|
3723
|
-
#
|
|
3773
|
+
# @!method ImageDrawCircleGradient(dst, center, radius, inner, outer)
|
|
3774
|
+
# ImageDrawCircleGradient : Draw a gradient-filled circle within an image
|
|
3775
|
+
# @param dst [Image *]
|
|
3776
|
+
# @param center [Vector2]
|
|
3777
|
+
# @param radius [float]
|
|
3778
|
+
# @param inner [Color]
|
|
3779
|
+
# @param outer [Color]
|
|
3780
|
+
# @return [void]
|
|
3781
|
+
[:ImageDrawCircleGradient, :ImageDrawCircleGradient, [:pointer, Vector2.by_value, :float, Color.by_value, Color.by_value], :void],
|
|
3782
|
+
|
|
3783
|
+
# @!method ImageDrawImage(dst, src, posX, posY, tint)
|
|
3784
|
+
# ImageDrawImage : Draw an image within an image
|
|
3785
|
+
# @param dst [Image *]
|
|
3786
|
+
# @param src [Image]
|
|
3787
|
+
# @param posX [int]
|
|
3788
|
+
# @param posY [int]
|
|
3789
|
+
# @param tint [Color]
|
|
3790
|
+
# @return [void]
|
|
3791
|
+
[:ImageDrawImage, :ImageDrawImage, [:pointer, Image.by_value, :int, :int, Color.by_value], :void],
|
|
3792
|
+
|
|
3793
|
+
# @!method ImageDrawImageEx(dst, src, position, rotation, scale, tint)
|
|
3794
|
+
# ImageDrawImageEx : Draw an image with scaling and rotation within an image
|
|
3795
|
+
# @param dst [Image *]
|
|
3796
|
+
# @param src [Image]
|
|
3797
|
+
# @param position [Vector2]
|
|
3798
|
+
# @param rotation [float]
|
|
3799
|
+
# @param scale [float]
|
|
3800
|
+
# @param tint [Color]
|
|
3801
|
+
# @return [void]
|
|
3802
|
+
[:ImageDrawImageEx, :ImageDrawImageEx, [:pointer, Image.by_value, Vector2.by_value, :float, :float, Color.by_value], :void],
|
|
3803
|
+
|
|
3804
|
+
# @!method ImageDrawImageRec(dst, src, srcRec, position, tint)
|
|
3805
|
+
# ImageDrawImageRec : Draw a part of an image defined by a rectangle within an image
|
|
3806
|
+
# @param dst [Image *]
|
|
3807
|
+
# @param src [Image]
|
|
3808
|
+
# @param srcRec [Rectangle]
|
|
3809
|
+
# @param position [Vector2]
|
|
3810
|
+
# @param tint [Color]
|
|
3811
|
+
# @return [void]
|
|
3812
|
+
[:ImageDrawImageRec, :ImageDrawImageRec, [:pointer, Image.by_value, Rectangle.by_value, Vector2.by_value, Color.by_value], :void],
|
|
3813
|
+
|
|
3814
|
+
# @!method ImageDrawImagePro(dst, src, srcRec, dstRec, origin, rotation, tint)
|
|
3815
|
+
# ImageDrawImagePro : Draw a part of an image defined by a rectangle into destination rectangle, with scaling and rotation, within an image
|
|
3724
3816
|
# @param dst [Image *]
|
|
3725
3817
|
# @param src [Image]
|
|
3726
3818
|
# @param srcRec [Rectangle]
|
|
3727
3819
|
# @param dstRec [Rectangle]
|
|
3820
|
+
# @param origin [Vector2]
|
|
3821
|
+
# @param rotation [float]
|
|
3728
3822
|
# @param tint [Color]
|
|
3729
3823
|
# @return [void]
|
|
3730
|
-
[:
|
|
3824
|
+
[:ImageDrawImagePro, :ImageDrawImagePro, [:pointer, Image.by_value, Rectangle.by_value, Rectangle.by_value, Vector2.by_value, :float, Color.by_value], :void],
|
|
3731
3825
|
|
|
3732
3826
|
# @!method ImageDrawText(dst, text, posX, posY, fontSize, color)
|
|
3733
3827
|
# ImageDrawText : Draw text (using default font) within an image (destination)
|
|
@@ -3752,6 +3846,20 @@ module Raylib
|
|
|
3752
3846
|
# @return [void]
|
|
3753
3847
|
[:ImageDrawTextEx, :ImageDrawTextEx, [:pointer, Font.by_value, :pointer, Vector2.by_value, :float, :float, Color.by_value], :void],
|
|
3754
3848
|
|
|
3849
|
+
# @!method ImageDrawTextPro(dst, font, text, position, origin, rotation, fontSize, spacing, tint)
|
|
3850
|
+
# ImageDrawTextPro : Draw text using Font and pro parameters (rotation)
|
|
3851
|
+
# @param dst [Image *]
|
|
3852
|
+
# @param font [Font]
|
|
3853
|
+
# @param text [const char *]
|
|
3854
|
+
# @param position [Vector2]
|
|
3855
|
+
# @param origin [Vector2]
|
|
3856
|
+
# @param rotation [float]
|
|
3857
|
+
# @param fontSize [float]
|
|
3858
|
+
# @param spacing [float]
|
|
3859
|
+
# @param tint [Color]
|
|
3860
|
+
# @return [void]
|
|
3861
|
+
[:ImageDrawTextPro, :ImageDrawTextPro, [:pointer, Font.by_value, :pointer, Vector2.by_value, Vector2.by_value, :float, :float, :float, Color.by_value], :void],
|
|
3862
|
+
|
|
3755
3863
|
# @!method LoadTexture(fileName)
|
|
3756
3864
|
# LoadTexture : Load texture from file into GPU memory (VRAM)
|
|
3757
3865
|
# @param fileName [const char *]
|
|
@@ -3855,7 +3963,7 @@ module Raylib
|
|
|
3855
3963
|
[:DrawTextureV, :DrawTextureV, [Texture2D.by_value, Vector2.by_value, Color.by_value], :void],
|
|
3856
3964
|
|
|
3857
3965
|
# @!method DrawTextureEx(texture, position, rotation, scale, tint)
|
|
3858
|
-
# DrawTextureEx : Draw a Texture2D with
|
|
3966
|
+
# DrawTextureEx : Draw a Texture2D with rotation and scale
|
|
3859
3967
|
# @param texture [Texture2D]
|
|
3860
3968
|
# @param position [Vector2]
|
|
3861
3969
|
# @param rotation [float]
|
|
@@ -4026,7 +4134,7 @@ module Raylib
|
|
|
4026
4134
|
[:LoadFont, :LoadFont, [:pointer], Font.by_value],
|
|
4027
4135
|
|
|
4028
4136
|
# @!method LoadFontEx(fileName, fontSize, codepoints, codepointCount)
|
|
4029
|
-
# LoadFontEx : Load font from file with
|
|
4137
|
+
# LoadFontEx : Load font from file with defined codepoints and generation size, use NULL for codepoints and 0 for codepointCount to load the default character set, font size is provided in pixels height
|
|
4030
4138
|
# @param fileName [const char *]
|
|
4031
4139
|
# @param fontSize [int]
|
|
4032
4140
|
# @param codepoints [const int *]
|
|
@@ -4490,7 +4598,7 @@ module Raylib
|
|
|
4490
4598
|
[:DrawCircle3D, :DrawCircle3D, [Vector3.by_value, :float, Vector3.by_value, :float, Color.by_value], :void],
|
|
4491
4599
|
|
|
4492
4600
|
# @!method DrawTriangle3D(v1, v2, v3, color)
|
|
4493
|
-
# DrawTriangle3D : Draw a color-filled triangle
|
|
4601
|
+
# DrawTriangle3D : Draw a color-filled triangle, counter-clockwise vertex order
|
|
4494
4602
|
# @param v1 [Vector3]
|
|
4495
4603
|
# @param v2 [Vector3]
|
|
4496
4604
|
# @param v3 [Vector3]
|
|
@@ -4551,7 +4659,7 @@ module Raylib
|
|
|
4551
4659
|
[:DrawSphere, :DrawSphere, [Vector3.by_value, :float, Color.by_value], :void],
|
|
4552
4660
|
|
|
4553
4661
|
# @!method DrawSphereEx(centerPos, radius, rings, slices, color)
|
|
4554
|
-
# DrawSphereEx : Draw sphere with
|
|
4662
|
+
# DrawSphereEx : Draw sphere with defined rings and slices
|
|
4555
4663
|
# @param centerPos [Vector3]
|
|
4556
4664
|
# @param radius [float]
|
|
4557
4665
|
# @param rings [int]
|
|
@@ -4698,7 +4806,7 @@ module Raylib
|
|
|
4698
4806
|
[:DrawModel, :DrawModel, [Model.by_value, Vector3.by_value, :float, Color.by_value], :void],
|
|
4699
4807
|
|
|
4700
4808
|
# @!method internalDrawModelEx(model, position, rotationAxis, rotationAngle, scale, tint)
|
|
4701
|
-
# internalDrawModelEx : Draw a model with
|
|
4809
|
+
# internalDrawModelEx : Draw a model with custom transform
|
|
4702
4810
|
# @param model [Model]
|
|
4703
4811
|
# @param position [Vector3]
|
|
4704
4812
|
# @param rotationAxis [Vector3]
|
|
@@ -4718,7 +4826,7 @@ module Raylib
|
|
|
4718
4826
|
[:DrawModelWires, :DrawModelWires, [Model.by_value, Vector3.by_value, :float, Color.by_value], :void],
|
|
4719
4827
|
|
|
4720
4828
|
# @!method DrawModelWiresEx(model, position, rotationAxis, rotationAngle, scale, tint)
|
|
4721
|
-
# DrawModelWiresEx : Draw a model wires
|
|
4829
|
+
# DrawModelWiresEx : Draw a model wires with custom transform
|
|
4722
4830
|
# @param model [Model]
|
|
4723
4831
|
# @param position [Vector3]
|
|
4724
4832
|
# @param rotationAxis [Vector3]
|
data/lib/rlgl.rb
CHANGED
|
@@ -253,11 +253,11 @@ module Raylib
|
|
|
253
253
|
# Dynamic vertex buffers (position + texcoords + colors + indices arrays)
|
|
254
254
|
class RlVertexBuffer < FFI::Struct
|
|
255
255
|
layout(
|
|
256
|
-
:elementCount, :int,
|
|
257
|
-
:vertices, :pointer,
|
|
258
|
-
:texcoords, :pointer,
|
|
256
|
+
:elementCount, :int, # Number of elements in the buffer (QUADS)
|
|
257
|
+
:vertices, :pointer, # Vertex position (XYZ - 3 components per vertex) (shader-location = 0)
|
|
258
|
+
:texcoords, :pointer, # Vertex texture coordinates (UV - 2 components per vertex) (shader-location = 1)
|
|
259
259
|
:normals, :pointer, # Vertex normal (XYZ - 3 components per vertex) (shader-location = 2)
|
|
260
|
-
:colors, :pointer,
|
|
260
|
+
:colors, :pointer, # Vertex colors (RGBA - 4 components per vertex) (shader-location = 3)
|
|
261
261
|
:indices, :pointer, # Vertex indices (in case vertex data comes indexed) (6 indices per quad)
|
|
262
262
|
:vaoId, :uint, # OpenGL Vertex Array Object id
|
|
263
263
|
:vboId, [:uint, 5], # OpenGL Vertex Buffer Objects id (5 types of vertex data)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: raylib-bindings
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- vaiorabbit
|
|
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
82
|
version: '0'
|
|
83
83
|
requirements: []
|
|
84
|
-
rubygems_version: 4.0.
|
|
84
|
+
rubygems_version: 4.0.16
|
|
85
85
|
specification_version: 4
|
|
86
86
|
summary: Ruby bindings for raylib, raygui and Physac
|
|
87
87
|
test_files: []
|