raylib-bindings 0.8.1-aarch64-linux → 0.8.2-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a60e44fe5d0bd6ff9b12afdeeb3999113a4e7acd42695e86b97649da17daf01
4
- data.tar.gz: 9ca644a5fcc650fc528428df438d9d545528876e8a50a9ea5f914234a194c9ac
3
+ metadata.gz: 66a923935c1ac3f16165ba96f9c1788bc3c1c6c9589322aa90ccd890bf2e3860
4
+ data.tar.gz: eef1f715db39f1ac9e0bc5f55e947657ae527613f975e1654a71a38607058882
5
5
  SHA512:
6
- metadata.gz: f42eae7a5e5d7fcc0076e57ae56529a64bf0e2c7f089b571d9d72d5c11c3f58e7649b048b74a349e927fb334b2df103c6c4759dc352d6e336e1a1e484cbb5f7f
7
- data.tar.gz: 751e8ef4fbb07a9d7d9d581db3c3d3561bb2ac95ac292cff93cfee6f1a5b5477174c568641c081ffc0e1a0d084c1e2a6b59e9f006c4eab021a3bee7abcef0497
6
+ metadata.gz: 2cb0f3847a83015f1cafe6e298af6f1a86597e1f4d433359f5e9eafc838e5cbafefacb3101db1db754899e96d755aaabe642a1a22195a48a5a16a5f8bc64e05c
7
+ data.tar.gz: ca98c6089d80def866be1e732dddf288975942517e57d9ea686e1684d916c62d7c0a79efdde43b0b2762b5658c7e5087a15131ce65153a5459fd3a463acd4016
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ 2026-07-05 vaiorabbit <http://twitter.com/vaiorabbit>
2
+
3
+ * Updated with latest raylib ( https://github.com/raysan5/raylib/commit/65abee1cbade6bf7edf55da6eb1eed6980aa754b ) and raygui ( https://github.com/raysan5/raygui/commit/5cc802fd9edb9f2dc0bb02aff222791f14a1ab6f )
4
+
1
5
  2026-06-06 vaiorabbit <http://twitter.com/vaiorabbit>
2
6
 
3
7
  * 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,11 +3,11 @@
3
3
  # Yet another raylib wrapper for Ruby #
4
4
 
5
5
  * Created : 2021-10-17
6
- * Last modified : 2026-06-06
6
+ * Last modified : 2026-07-05
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/ca46387b64d7c1d7505828b2c67d234d1ed0b81d )
10
+ * [raylib](https://github.com/raysan5/raylib) version [6.1-dev]( https://github.com/raysan5/raylib/commit/5cc802fd9edb9f2dc0bb02aff222791f14a1ab6f )
11
11
  * raylib
12
12
  * raymath
13
13
  * rlgl
@@ -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.2 (2026-03-17 revision d3da9fec82) +PRISM [x64-mingw-ucrt]
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
- gcc (Rev8, Built by MSYS2 project) 15.2.0
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
Binary file
Binary file
data/lib/raygui_main.rb CHANGED
@@ -58,14 +58,14 @@ module Raylib
58
58
  DROPDOWNBOX = 8
59
59
  TEXTBOX = 9 # Used also for: TEXTBOXMULTI
60
60
  VALUEBOX = 10
61
- CONTROL11 = 11
61
+ TABBAR = 11
62
62
  LISTVIEW = 12
63
63
  COLORPICKER = 13
64
64
  SCROLLBAR = 14
65
65
  STATUSBAR = 15
66
66
 
67
67
  # enum GuiControlProperty
68
- # Gui base properties for every control
68
+ # Controls BASE properties for every control (RAYGUI_MAX_PROPS_BASE = 16)
69
69
  BORDER_COLOR_NORMAL = 0 # Control border color in STATE_NORMAL
70
70
  BASE_COLOR_NORMAL = 1 # Control base color in STATE_NORMAL
71
71
  TEXT_COLOR_NORMAL = 2 # Control text color in STATE_NORMAL
@@ -80,21 +80,24 @@ module Raylib
80
80
  TEXT_COLOR_DISABLED = 11 # Control text color in STATE_DISABLED
81
81
  BORDER_WIDTH = 12 # Control border size, 0 for no border
82
82
  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)
83
+ TEXT_ALIGNMENT = 14 # Control text horizontal alignment inside control text bound (after border and padding): 0-Left, 1-Center, 2-Right
84
+ BASEPROP16 = 15 # Not used yet...
84
85
 
85
86
  # enum GuiDefaultProperty
86
- # DEFAULT extended properties
87
+ # DEFAULT control, extended properties
87
88
  TEXT_SIZE = 16 # Text size (glyphs max height)
88
89
  TEXT_SPACING = 17 # Text spacing between glyphs
89
90
  LINE_COLOR = 18 # Line control color
90
91
  BACKGROUND_COLOR = 19 # Background color
91
92
  TEXT_LINE_SPACING = 20 # Text spacing between lines
92
- TEXT_ALIGNMENT_VERTICAL = 21 # Text vertical alignment inside text bounds (after border and padding)
93
+ TEXT_ALIGNMENT_VERTICAL = 21 # Text vertical alignment inside text bounds (after border and padding): 0-Top, 1-Middle, 2-Bottom
93
94
  TEXT_WRAP_MODE = 22 # Text wrap-mode inside text bounds
95
+ EXTPROP08 = 23 # Not used yet...
94
96
 
95
97
  # enum GuiToggleProperty
96
98
  # Toggle/ToggleGroup
97
- GROUP_PADDING = 16 # ToggleGroup separation between toggles
99
+ GROUP_PADDING = 16 # ToggleGroup separation between toggles
100
+ GROUP_WIDTH_FULL = 17 # ToggleGroup bounds width considers all items: 0-Width per item, 1-Full width
98
101
 
99
102
  # enum GuiSliderProperty
100
103
  # Slider/SliderBar
@@ -104,7 +107,7 @@ module Raylib
104
107
  # enum GuiProgressBarProperty
105
108
  # ProgressBar
106
109
  PROGRESS_PADDING = 16 # ProgressBar internal padding
107
- PROGRESS_SIDE = 17 # ProgressBar increment side: 0-left->right, 1-right-left
110
+ PROGRESS_SIDE = 17 # ProgressBar increment side: 0-Left->Right, 1-Right->Left
108
111
 
109
112
  # enum GuiScrollBarProperty
110
113
  # ScrollBar
@@ -129,29 +132,35 @@ module Raylib
129
132
  ARROW_PADDING = 16 # DropdownBox arrow separation from border and items
130
133
  DROPDOWN_ITEMS_SPACING = 17 # DropdownBox items separation
131
134
  DROPDOWN_ARROW_HIDDEN = 18 # DropdownBox arrow hidden
132
- DROPDOWN_ROLL_UP = 19 # DropdownBox roll up flag (default rolls down)
135
+ DROPDOWN_ROLL_UP = 19 # DropdownBox roll up flag: 0-Roll down, 1-Roll up
133
136
 
134
137
  # enum GuiTextBoxProperty
135
138
  # TextBox/TextBoxMulti/ValueBox/Spinner
136
- TEXT_READONLY = 16 # TextBox in read-only mode: 0-text editable, 1-text no-editable
139
+ TEXT_READONLY = 16 # TextBox in read-only mode: 0-Text editable, 1-Text read-only
137
140
 
138
141
  # enum GuiValueBoxProperty
139
142
  # ValueBox/Spinner
140
143
  SPINNER_BUTTON_WIDTH = 16 # Spinner left/right buttons width
141
144
  SPINNER_BUTTON_SPACING = 17 # Spinner buttons separation
142
145
 
146
+ # enum GuiTabBarProperty
147
+ # TabBar
148
+ TAB_ITEMS_WIDTH = 16 # TabBar tab items width
149
+ TAB_CLOSE_BUTTON = 17 # TabBar tab close button: 0-Not shown, 1-Shown
150
+ TAB_LINE_SIDE = 18 # TabBar tabs side: 0-Bottom, 1-Top
151
+
143
152
  # enum GuiListViewProperty
144
- # ListView
153
+ #
145
154
  LIST_ITEMS_HEIGHT = 16 # ListView items height
146
155
  LIST_ITEMS_SPACING = 17 # ListView items separation
147
156
  SCROLLBAR_WIDTH = 18 # ListView scrollbar size (usually width)
148
- SCROLLBAR_SIDE = 19 # ListView scrollbar side (0-SCROLLBAR_LEFT_SIDE, 1-SCROLLBAR_RIGHT_SIDE)
157
+ SCROLLBAR_SIDE = 19 # ListView scrollbar side: 0-Left side, 1-Right Side
149
158
  LIST_ITEMS_BORDER_NORMAL = 20 # ListView items border enabled in normal state
150
159
  LIST_ITEMS_BORDER_WIDTH = 21 # ListView items border width
151
160
 
152
161
  # enum GuiColorPickerProperty
153
162
  # ColorPicker
154
- COLOR_SELECTOR_SIZE = 16
163
+ COLOR_SELECTOR_SIZE = 16 # ColorPicker selector square size
155
164
  HUEBAR_WIDTH = 17 # ColorPicker right hue bar width
156
165
  HUEBAR_PADDING = 18 # ColorPicker right hue bar separation from panel
157
166
  HUEBAR_SELECTOR_HEIGHT = 19 # ColorPicker right hue bar selector height
@@ -436,6 +445,7 @@ module Raylib
436
445
  typedef :int, :GuiDropdownBoxProperty
437
446
  typedef :int, :GuiTextBoxProperty
438
447
  typedef :int, :GuiValueBoxProperty
448
+ typedef :int, :GuiTabBarProperty
439
449
  typedef :int, :GuiListViewProperty
440
450
  typedef :int, :GuiColorPickerProperty
441
451
  typedef :int, :GuiIconName
@@ -590,6 +600,14 @@ module Raylib
590
600
  # @return [char **]
591
601
  [:GuiLoadIcons, :GuiLoadIcons, [:pointer, :bool], :pointer],
592
602
 
603
+ # @!method GuiLoadIconsFromMemory(fileData, dataSize, loadIconsName)
604
+ # GuiLoadIconsFromMemory : Load raygui icons file (.rgi) from memory into internal icons data
605
+ # @param fileData [const unsigned char *]
606
+ # @param dataSize [int]
607
+ # @param loadIconsName [bool]
608
+ # @return [char **]
609
+ [:GuiLoadIconsFromMemory, :GuiLoadIconsFromMemory, [:pointer, :int, :bool], :pointer],
610
+
593
611
  # @!method GuiDrawIcon(iconId, posX, posY, pixelSize, color)
594
612
  # GuiDrawIcon : Draw icon using pixel size at specified position
595
613
  # @param iconId [int]
@@ -634,15 +652,6 @@ module Raylib
634
652
  # @return [int]
635
653
  [:GuiPanel, :GuiPanel, [Rectangle.by_value, :pointer], :int],
636
654
 
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
655
  # @!method GuiScrollPanel(bounds, text, content, scroll, view)
647
656
  # GuiScrollPanel : Scroll Panel control
648
657
  # @param bounds [Rectangle]
@@ -831,7 +840,7 @@ module Raylib
831
840
  [:GuiListView, :GuiListView, [Rectangle.by_value, :pointer, :pointer, :pointer], :int],
832
841
 
833
842
  # @!method GuiListViewEx(bounds, text, count, scrollIndex, active, focus)
834
- # GuiListViewEx : List View using text entries list and returning focus entry
843
+ # GuiListViewEx : List View control, using text entries list and returning focus entry
835
844
  # @param bounds [Rectangle]
836
845
  # @param text [char **]
837
846
  # @param count [int]
@@ -841,6 +850,26 @@ module Raylib
841
850
  # @return [int]
842
851
  [:GuiListViewEx, :GuiListViewEx, [Rectangle.by_value, :pointer, :int, :pointer, :pointer, :pointer], :int],
843
852
 
853
+ # @!method GuiTabBar(bounds, text, hscroll, active)
854
+ # GuiTabBar : Tab Bar control
855
+ # @param bounds [Rectangle]
856
+ # @param text [const char *]
857
+ # @param hscroll [int *]
858
+ # @param active [int *]
859
+ # @return [int]
860
+ [:GuiTabBar, :GuiTabBar, [Rectangle.by_value, :pointer, :pointer, :pointer], :int],
861
+
862
+ # @!method GuiTabBarEx(bounds, text, count, hscroll, active, focus)
863
+ # GuiTabBarEx : Tab Bar control, using text entries list and returning focus entry
864
+ # @param bounds [Rectangle]
865
+ # @param text [char **]
866
+ # @param count [int]
867
+ # @param hscroll [int *]
868
+ # @param active [int *]
869
+ # @param focus [int *]
870
+ # @return [int]
871
+ [:GuiTabBarEx, :GuiTabBarEx, [Rectangle.by_value, :pointer, :int, :pointer, :pointer, :pointer], :int],
872
+
844
873
  # @!method GuiMessageBox(bounds, title, message, buttons)
845
874
  # GuiMessageBox : Message Box control, displays a message
846
875
  # @param bounds [Rectangle]
@@ -863,7 +892,7 @@ module Raylib
863
892
  [:GuiTextInputBox, :GuiTextInputBox, [Rectangle.by_value, :pointer, :pointer, :pointer, :pointer, :int, :pointer], :int],
864
893
 
865
894
  # @!method GuiColorPicker(bounds, text, color)
866
- # GuiColorPicker : Color Picker control (multiple color controls)
895
+ # GuiColorPicker : Color Picker control, includes Color bar controls
867
896
  # @param bounds [Rectangle]
868
897
  # @param text [const char *]
869
898
  # @param color [Color *]
@@ -895,7 +924,7 @@ module Raylib
895
924
  [:GuiColorBarHue, :GuiColorBarHue, [Rectangle.by_value, :pointer, :pointer], :int],
896
925
 
897
926
  # @!method GuiColorPickerHSV(bounds, text, colorHsv)
898
- # GuiColorPickerHSV : Color Picker control that avoids conversion to RGB on each call (multiple color controls)
927
+ # GuiColorPickerHSV : Color Picker control, using Hue-Saturation-Value color data, includes Color bar controls
899
928
  # @param bounds [Rectangle]
900
929
  # @param text [const char *]
901
930
  # @param colorHsv [Vector3 *]
@@ -903,7 +932,7 @@ module Raylib
903
932
  [:GuiColorPickerHSV, :GuiColorPickerHSV, [Rectangle.by_value, :pointer, :pointer], :int],
904
933
 
905
934
  # @!method GuiColorPanelHSV(bounds, text, colorHsv)
906
- # GuiColorPanelHSV : Color Panel control that updates Hue-Saturation-Value color value, used by GuiColorPickerHSV()
935
+ # GuiColorPanelHSV : Color Panel control, using Hue-Saturation-Value color data
907
936
  # @param bounds [Rectangle]
908
937
  # @param text [const char *]
909
938
  # @param colorHsv [Vector3 *]
data/lib/raylib_main.rb CHANGED
@@ -2009,11 +2009,17 @@ module Raylib
2009
2009
  [:ChangeDirectory, :ChangeDirectory, [:pointer], :int],
2010
2010
 
2011
2011
  # @!method IsPathFile(path)
2012
- # IsPathFile : Check if given path is a file or a directory
2012
+ # IsPathFile : Check if given 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 given path points to a directory
2019
+ # @param path [const char *]
2020
+ # @return [bool]
2021
+ [:IsPathDirectory, :IsPathDirectory, [:pointer], :bool],
2022
+
2017
2023
  # @!method IsFileNameValid(fileName)
2018
2024
  # IsFileNameValid : Check if fileName is valid for the platform/OS
2019
2025
  # @param fileName [const char *]
@@ -2553,132 +2559,50 @@ module Raylib
2553
2559
  # @return [void]
2554
2560
  [:DrawLineDashed, :DrawLineDashed, [Vector2.by_value, Vector2.by_value, :int, :int, Color.by_value], :void],
2555
2561
 
2556
- # @!method DrawCircle(centerX, centerY, radius, color)
2557
- # DrawCircle : Draw a color-filled circle
2558
- # @param centerX [int]
2559
- # @param centerY [int]
2560
- # @param radius [float]
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]
2562
+ # @!method DrawTriangle(v1, v2, v3, color)
2563
+ # DrawTriangle : Draw a color-filled triangle, counter-clockwise vertex order
2564
+ # @param v1 [Vector2]
2565
+ # @param v2 [Vector2]
2566
+ # @param v3 [Vector2]
2636
2567
  # @param color [Color]
2637
2568
  # @return [void]
2638
- [:DrawEllipseV, :DrawEllipseV, [Vector2.by_value, :float, :float, Color.by_value], :void],
2569
+ [:DrawTriangle, :DrawTriangle, [Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value], :void],
2639
2570
 
2640
- # @!method DrawEllipseLines(centerX, centerY, radiusH, radiusV, color)
2641
- # DrawEllipseLines : Draw ellipse outline
2642
- # @param centerX [int]
2643
- # @param centerY [int]
2644
- # @param radiusH [float]
2645
- # @param radiusV [float]
2646
- # @param color [Color]
2571
+ # @!method DrawTriangleGradient(v1, v2, v3, c1, c2, c3)
2572
+ # DrawTriangleGradient : Draw triangle with interpolated colors, counter-clockwise vertex/color order
2573
+ # @param v1 [Vector2]
2574
+ # @param v2 [Vector2]
2575
+ # @param v3 [Vector2]
2576
+ # @param c1 [Color]
2577
+ # @param c2 [Color]
2578
+ # @param c3 [Color]
2647
2579
  # @return [void]
2648
- [:DrawEllipseLines, :DrawEllipseLines, [:int, :int, :float, :float, Color.by_value], :void],
2580
+ [:DrawTriangleGradient, :DrawTriangleGradient, [Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value, Color.by_value, Color.by_value], :void],
2649
2581
 
2650
- # @!method DrawEllipseLinesV(center, radiusH, radiusV, color)
2651
- # DrawEllipseLinesV : Draw ellipse outline (Vector version)
2652
- # @param center [Vector2]
2653
- # @param radiusH [float]
2654
- # @param radiusV [float]
2582
+ # @!method DrawTriangleLines(v1, v2, v3, color)
2583
+ # DrawTriangleLines : Draw triangle outline, counter-clockwise vertex order
2584
+ # @param v1 [Vector2]
2585
+ # @param v2 [Vector2]
2586
+ # @param v3 [Vector2]
2655
2587
  # @param color [Color]
2656
2588
  # @return [void]
2657
- [:DrawEllipseLinesV, :DrawEllipseLinesV, [Vector2.by_value, :float, :float, Color.by_value], :void],
2589
+ [:DrawTriangleLines, :DrawTriangleLines, [Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value], :void],
2658
2590
 
2659
- # @!method DrawRing(center, innerRadius, outerRadius, startAngle, endAngle, segments, color)
2660
- # DrawRing : Draw ring
2661
- # @param center [Vector2]
2662
- # @param innerRadius [float]
2663
- # @param outerRadius [float]
2664
- # @param startAngle [float]
2665
- # @param endAngle [float]
2666
- # @param segments [int]
2591
+ # @!method DrawTriangleFan(points, pointCount, color)
2592
+ # DrawTriangleFan : Draw a triangle fan defined by points (first vertex is the center)
2593
+ # @param points [const Vector2 *]
2594
+ # @param pointCount [int]
2667
2595
  # @param color [Color]
2668
2596
  # @return [void]
2669
- [:DrawRing, :DrawRing, [Vector2.by_value, :float, :float, :float, :float, :int, Color.by_value], :void],
2597
+ [:DrawTriangleFan, :DrawTriangleFan, [:pointer, :int, Color.by_value], :void],
2670
2598
 
2671
- # @!method DrawRingLines(center, innerRadius, outerRadius, startAngle, endAngle, segments, color)
2672
- # DrawRingLines : Draw ring outline
2673
- # @param center [Vector2]
2674
- # @param innerRadius [float]
2675
- # @param outerRadius [float]
2676
- # @param startAngle [float]
2677
- # @param endAngle [float]
2678
- # @param segments [int]
2599
+ # @!method DrawTriangleStrip(points, pointCount, color)
2600
+ # DrawTriangleStrip : Draw a triangle strip defined by points
2601
+ # @param points [const Vector2 *]
2602
+ # @param pointCount [int]
2679
2603
  # @param color [Color]
2680
2604
  # @return [void]
2681
- [:DrawRingLines, :DrawRingLines, [Vector2.by_value, :float, :float, :float, :float, :int, Color.by_value], :void],
2605
+ [:DrawTriangleStrip, :DrawTriangleStrip, [:pointer, :int, Color.by_value], :void],
2682
2606
 
2683
2607
  # @!method DrawRectangle(posX, posY, width, height, color)
2684
2608
  # DrawRectangle : Draw a color-filled rectangle
@@ -2736,13 +2660,13 @@ module Raylib
2736
2660
  # @return [void]
2737
2661
  [:DrawRectangleGradientH, :DrawRectangleGradientH, [:int, :int, :int, :int, Color.by_value, Color.by_value], :void],
2738
2662
 
2739
- # @!method DrawRectangleGradientEx(rec, topLeft, bottomLeft, bottomRight, topRight)
2740
- # DrawRectangleGradientEx : Draw a gradient-filled rectangle with custom vertex colors
2663
+ # @!method DrawRectangleGradientEx(rec, col1, col2, col3, col4)
2664
+ # DrawRectangleGradientEx : Draw a gradient-filled rectangle with custom vertex colors, counter-clockwise color order
2741
2665
  # @param rec [Rectangle]
2742
- # @param topLeft [Color]
2743
- # @param bottomLeft [Color]
2744
- # @param bottomRight [Color]
2745
- # @param topRight [Color]
2666
+ # @param col1 [Color]
2667
+ # @param col2 [Color]
2668
+ # @param col3 [Color]
2669
+ # @param col4 [Color]
2746
2670
  # @return [void]
2747
2671
  [:DrawRectangleGradientEx, :DrawRectangleGradientEx, [Rectangle.by_value, Color.by_value, Color.by_value, Color.by_value, Color.by_value], :void],
2748
2672
 
@@ -2756,10 +2680,10 @@ module Raylib
2756
2680
  # @return [void]
2757
2681
  [:DrawRectangleLines, :DrawRectangleLines, [:int, :int, :int, :int, Color.by_value], :void],
2758
2682
 
2759
- # @!method DrawRectangleLinesEx(rec, lineThick, color)
2760
- # DrawRectangleLinesEx : Draw rectangle outline with extended parameters
2683
+ # @!method DrawRectangleLinesEx(rec, thick, color)
2684
+ # DrawRectangleLinesEx : Draw rectangle outline with line thickness
2761
2685
  # @param rec [Rectangle]
2762
- # @param lineThick [float]
2686
+ # @param thick [float]
2763
2687
  # @param color [Color]
2764
2688
  # @return [void]
2765
2689
  [:DrawRectangleLinesEx, :DrawRectangleLinesEx, [Rectangle.by_value, :float, Color.by_value], :void],
@@ -2782,91 +2706,182 @@ module Raylib
2782
2706
  # @return [void]
2783
2707
  [:DrawRectangleRoundedLines, :DrawRectangleRoundedLines, [Rectangle.by_value, :float, :int, Color.by_value], :void],
2784
2708
 
2785
- # @!method DrawRectangleRoundedLinesEx(rec, roundness, segments, lineThick, color)
2786
- # DrawRectangleRoundedLinesEx : Draw rectangle lines with rounded edges outline
2709
+ # @!method DrawRectangleRoundedLinesEx(rec, roundness, segments, thick, color)
2710
+ # DrawRectangleRoundedLinesEx : Draw rectangle lines with rounded edges outline and line thickness
2787
2711
  # @param rec [Rectangle]
2788
2712
  # @param roundness [float]
2789
2713
  # @param segments [int]
2790
- # @param lineThick [float]
2714
+ # @param thick [float]
2791
2715
  # @param color [Color]
2792
2716
  # @return [void]
2793
2717
  [:DrawRectangleRoundedLinesEx, :DrawRectangleRoundedLinesEx, [Rectangle.by_value, :float, :int, :float, Color.by_value], :void],
2794
2718
 
2795
- # @!method DrawTriangle(v1, v2, v3, color)
2796
- # DrawTriangle : Draw a color-filled triangle (vertex in counter-clockwise order!)
2797
- # @param v1 [Vector2]
2798
- # @param v2 [Vector2]
2799
- # @param v3 [Vector2]
2719
+ # @!method DrawPoly(center, sides, radius, rotation, color)
2720
+ # DrawPoly : Draw a polygon of n sides
2721
+ # @param center [Vector2]
2722
+ # @param sides [int]
2723
+ # @param radius [float]
2724
+ # @param rotation [float]
2800
2725
  # @param color [Color]
2801
2726
  # @return [void]
2802
- [:DrawTriangle, :DrawTriangle, [Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value], :void],
2727
+ [:DrawPoly, :DrawPoly, [Vector2.by_value, :int, :float, :float, Color.by_value], :void],
2803
2728
 
2804
- # @!method DrawTriangleGradient(v1, v2, v3, c1, c2, c3)
2805
- # DrawTriangleGradient : Draw triangle with interpolated colors (vertex in counter-clockwise order!)
2806
- # @param v1 [Vector2]
2807
- # @param v2 [Vector2]
2808
- # @param v3 [Vector2]
2809
- # @param c1 [Color]
2810
- # @param c2 [Color]
2811
- # @param c3 [Color]
2729
+ # @!method DrawPolyLines(center, sides, radius, rotation, color)
2730
+ # DrawPolyLines : Draw a polygon outline of n sides
2731
+ # @param center [Vector2]
2732
+ # @param sides [int]
2733
+ # @param radius [float]
2734
+ # @param rotation [float]
2735
+ # @param color [Color]
2812
2736
  # @return [void]
2813
- [:DrawTriangleGradient, :DrawTriangleGradient, [Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value, Color.by_value, Color.by_value], :void],
2737
+ [:DrawPolyLines, :DrawPolyLines, [Vector2.by_value, :int, :float, :float, Color.by_value], :void],
2814
2738
 
2815
- # @!method DrawTriangleLines(v1, v2, v3, color)
2816
- # DrawTriangleLines : Draw triangle outline (vertex in counter-clockwise order!)
2817
- # @param v1 [Vector2]
2818
- # @param v2 [Vector2]
2819
- # @param v3 [Vector2]
2739
+ # @!method DrawPolyLinesEx(center, sides, radius, rotation, thick, color)
2740
+ # DrawPolyLinesEx : Draw a polygon outline of n sides with line thickness
2741
+ # @param center [Vector2]
2742
+ # @param sides [int]
2743
+ # @param radius [float]
2744
+ # @param rotation [float]
2745
+ # @param thick [float]
2820
2746
  # @param color [Color]
2821
2747
  # @return [void]
2822
- [:DrawTriangleLines, :DrawTriangleLines, [Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value], :void],
2748
+ [:DrawPolyLinesEx, :DrawPolyLinesEx, [Vector2.by_value, :int, :float, :float, :float, Color.by_value], :void],
2823
2749
 
2824
- # @!method DrawTriangleFan(points, pointCount, color)
2825
- # DrawTriangleFan : Draw a triangle fan defined by points (first vertex is the center)
2826
- # @param points [const Vector2 *]
2827
- # @param pointCount [int]
2750
+ # @!method DrawCircle(centerX, centerY, radius, color)
2751
+ # DrawCircle : Draw a color-filled circle
2752
+ # @param centerX [int]
2753
+ # @param centerY [int]
2754
+ # @param radius [float]
2828
2755
  # @param color [Color]
2829
2756
  # @return [void]
2830
- [:DrawTriangleFan, :DrawTriangleFan, [:pointer, :int, Color.by_value], :void],
2757
+ [:DrawCircle, :DrawCircle, [:int, :int, :float, Color.by_value], :void],
2831
2758
 
2832
- # @!method DrawTriangleStrip(points, pointCount, color)
2833
- # DrawTriangleStrip : Draw a triangle strip defined by points
2834
- # @param points [const Vector2 *]
2835
- # @param pointCount [int]
2759
+ # @!method DrawCircleV(center, radius, color)
2760
+ # DrawCircleV : Draw a color-filled circle (Vector version)
2761
+ # @param center [Vector2]
2762
+ # @param radius [float]
2836
2763
  # @param color [Color]
2837
2764
  # @return [void]
2838
- [:DrawTriangleStrip, :DrawTriangleStrip, [:pointer, :int, Color.by_value], :void],
2765
+ [:DrawCircleV, :DrawCircleV, [Vector2.by_value, :float, Color.by_value], :void],
2839
2766
 
2840
- # @!method DrawPoly(center, sides, radius, rotation, color)
2841
- # DrawPoly : Draw a polygon of n sides
2767
+ # @!method DrawCircleGradient(center, radius, inner, outer)
2768
+ # DrawCircleGradient : Draw a gradient-filled circle
2842
2769
  # @param center [Vector2]
2843
- # @param sides [int]
2844
2770
  # @param radius [float]
2845
- # @param rotation [float]
2771
+ # @param inner [Color]
2772
+ # @param outer [Color]
2773
+ # @return [void]
2774
+ [:DrawCircleGradient, :DrawCircleGradient, [Vector2.by_value, :float, Color.by_value, Color.by_value], :void],
2775
+
2776
+ # @!method DrawCircleSector(center, radius, startAngle, endAngle, segments, color)
2777
+ # DrawCircleSector : Draw a piece of a circle
2778
+ # @param center [Vector2]
2779
+ # @param radius [float]
2780
+ # @param startAngle [float]
2781
+ # @param endAngle [float]
2782
+ # @param segments [int]
2846
2783
  # @param color [Color]
2847
2784
  # @return [void]
2848
- [:DrawPoly, :DrawPoly, [Vector2.by_value, :int, :float, :float, Color.by_value], :void],
2785
+ [:DrawCircleSector, :DrawCircleSector, [Vector2.by_value, :float, :float, :float, :int, Color.by_value], :void],
2849
2786
 
2850
- # @!method DrawPolyLines(center, sides, radius, rotation, color)
2851
- # DrawPolyLines : Draw a polygon outline of n sides
2787
+ # @!method DrawCircleSectorLines(center, radius, startAngle, endAngle, segments, color)
2788
+ # DrawCircleSectorLines : Draw circle sector outline
2852
2789
  # @param center [Vector2]
2853
- # @param sides [int]
2854
2790
  # @param radius [float]
2855
- # @param rotation [float]
2791
+ # @param startAngle [float]
2792
+ # @param endAngle [float]
2793
+ # @param segments [int]
2856
2794
  # @param color [Color]
2857
2795
  # @return [void]
2858
- [:DrawPolyLines, :DrawPolyLines, [Vector2.by_value, :int, :float, :float, Color.by_value], :void],
2796
+ [:DrawCircleSectorLines, :DrawCircleSectorLines, [Vector2.by_value, :float, :float, :float, :int, Color.by_value], :void],
2859
2797
 
2860
- # @!method DrawPolyLinesEx(center, sides, radius, rotation, lineThick, color)
2861
- # DrawPolyLinesEx : Draw a polygon outline of n sides with extended parameters
2798
+ # @!method DrawCircleLines(centerX, centerY, radius, color)
2799
+ # DrawCircleLines : Draw circle outline
2800
+ # @param centerX [int]
2801
+ # @param centerY [int]
2802
+ # @param radius [float]
2803
+ # @param color [Color]
2804
+ # @return [void]
2805
+ [:DrawCircleLines, :DrawCircleLines, [:int, :int, :float, Color.by_value], :void],
2806
+
2807
+ # @!method DrawCircleLinesV(center, radius, color)
2808
+ # DrawCircleLinesV : Draw circle outline (Vector version)
2862
2809
  # @param center [Vector2]
2863
- # @param sides [int]
2864
2810
  # @param radius [float]
2865
- # @param rotation [float]
2866
- # @param lineThick [float]
2867
2811
  # @param color [Color]
2868
2812
  # @return [void]
2869
- [:DrawPolyLinesEx, :DrawPolyLinesEx, [Vector2.by_value, :int, :float, :float, :float, Color.by_value], :void],
2813
+ [:DrawCircleLinesV, :DrawCircleLinesV, [Vector2.by_value, :float, Color.by_value], :void],
2814
+
2815
+ # @!method DrawCircleLinesEx(center, radius, thick, color)
2816
+ # DrawCircleLinesEx : Draw circle outline with line thickness
2817
+ # @param center [Vector2]
2818
+ # @param radius [float]
2819
+ # @param thick [float]
2820
+ # @param color [Color]
2821
+ # @return [void]
2822
+ [:DrawCircleLinesEx, :DrawCircleLinesEx, [Vector2.by_value, :float, :float, Color.by_value], :void],
2823
+
2824
+ # @!method DrawEllipse(centerX, centerY, radiusH, radiusV, color)
2825
+ # DrawEllipse : Draw ellipse
2826
+ # @param centerX [int]
2827
+ # @param centerY [int]
2828
+ # @param radiusH [float]
2829
+ # @param radiusV [float]
2830
+ # @param color [Color]
2831
+ # @return [void]
2832
+ [:DrawEllipse, :DrawEllipse, [:int, :int, :float, :float, Color.by_value], :void],
2833
+
2834
+ # @!method DrawEllipseV(center, radiusH, radiusV, color)
2835
+ # DrawEllipseV : Draw ellipse (Vector version)
2836
+ # @param center [Vector2]
2837
+ # @param radiusH [float]
2838
+ # @param radiusV [float]
2839
+ # @param color [Color]
2840
+ # @return [void]
2841
+ [:DrawEllipseV, :DrawEllipseV, [Vector2.by_value, :float, :float, Color.by_value], :void],
2842
+
2843
+ # @!method DrawEllipseLines(centerX, centerY, radiusH, radiusV, color)
2844
+ # DrawEllipseLines : Draw ellipse outline
2845
+ # @param centerX [int]
2846
+ # @param centerY [int]
2847
+ # @param radiusH [float]
2848
+ # @param radiusV [float]
2849
+ # @param color [Color]
2850
+ # @return [void]
2851
+ [:DrawEllipseLines, :DrawEllipseLines, [:int, :int, :float, :float, Color.by_value], :void],
2852
+
2853
+ # @!method DrawEllipseLinesV(center, radiusH, radiusV, color)
2854
+ # DrawEllipseLinesV : Draw ellipse outline (Vector version)
2855
+ # @param center [Vector2]
2856
+ # @param radiusH [float]
2857
+ # @param radiusV [float]
2858
+ # @param color [Color]
2859
+ # @return [void]
2860
+ [:DrawEllipseLinesV, :DrawEllipseLinesV, [Vector2.by_value, :float, :float, Color.by_value], :void],
2861
+
2862
+ # @!method DrawRing(center, innerRadius, outerRadius, startAngle, endAngle, segments, color)
2863
+ # DrawRing : Draw ring
2864
+ # @param center [Vector2]
2865
+ # @param innerRadius [float]
2866
+ # @param outerRadius [float]
2867
+ # @param startAngle [float]
2868
+ # @param endAngle [float]
2869
+ # @param segments [int]
2870
+ # @param color [Color]
2871
+ # @return [void]
2872
+ [:DrawRing, :DrawRing, [Vector2.by_value, :float, :float, :float, :float, :int, Color.by_value], :void],
2873
+
2874
+ # @!method DrawRingLines(center, innerRadius, outerRadius, startAngle, endAngle, segments, color)
2875
+ # DrawRingLines : Draw ring outline
2876
+ # @param center [Vector2]
2877
+ # @param innerRadius [float]
2878
+ # @param outerRadius [float]
2879
+ # @param startAngle [float]
2880
+ # @param endAngle [float]
2881
+ # @param segments [int]
2882
+ # @param color [Color]
2883
+ # @return [void]
2884
+ [:DrawRingLines, :DrawRingLines, [Vector2.by_value, :float, :float, :float, :float, :int, Color.by_value], :void],
2870
2885
 
2871
2886
  # @!method DrawSplineLinear(points, pointCount, thick, color)
2872
2887
  # DrawSplineLinear : Draw spline: Linear, minimum 2 points
@@ -3583,43 +3598,64 @@ module Raylib
3583
3598
  # @return [void]
3584
3599
  [:ImageDrawLineEx, :ImageDrawLineEx, [:pointer, Vector2.by_value, Vector2.by_value, :int, Color.by_value], :void],
3585
3600
 
3586
- # @!method ImageDrawCircle(dst, centerX, centerY, radius, color)
3587
- # ImageDrawCircle : Draw a filled circle within an image
3601
+ # @!method ImageDrawLineStrip(dst, points, pointCount, color)
3602
+ # ImageDrawLineStrip : Draw a lines sequence within an image
3588
3603
  # @param dst [Image *]
3589
- # @param centerX [int]
3590
- # @param centerY [int]
3591
- # @param radius [int]
3604
+ # @param points [const Vector2 *]
3605
+ # @param pointCount [int]
3592
3606
  # @param color [Color]
3593
3607
  # @return [void]
3594
- [:ImageDrawCircle, :ImageDrawCircle, [:pointer, :int, :int, :int, Color.by_value], :void],
3608
+ [:ImageDrawLineStrip, :ImageDrawLineStrip, [:pointer, :pointer, :int, Color.by_value], :void],
3595
3609
 
3596
- # @!method ImageDrawCircleV(dst, center, radius, color)
3597
- # ImageDrawCircleV : Draw a filled circle within an image (Vector version)
3610
+ # @!method ImageDrawTriangle(dst, v1, v2, v3, color)
3611
+ # ImageDrawTriangle : Draw triangle within an image
3598
3612
  # @param dst [Image *]
3599
- # @param center [Vector2]
3600
- # @param radius [int]
3613
+ # @param v1 [Vector2]
3614
+ # @param v2 [Vector2]
3615
+ # @param v3 [Vector2]
3601
3616
  # @param color [Color]
3602
3617
  # @return [void]
3603
- [:ImageDrawCircleV, :ImageDrawCircleV, [:pointer, Vector2.by_value, :int, Color.by_value], :void],
3618
+ [:ImageDrawTriangle, :ImageDrawTriangle, [:pointer, Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value], :void],
3604
3619
 
3605
- # @!method ImageDrawCircleLines(dst, centerX, centerY, radius, color)
3606
- # ImageDrawCircleLines : Draw circle outline within an image
3620
+ # @!method ImageDrawTriangleGradient(dst, v1, v2, v3, c1, c2, c3)
3621
+ # ImageDrawTriangleGradient : Draw triangle with interpolated colors within an image
3607
3622
  # @param dst [Image *]
3608
- # @param centerX [int]
3609
- # @param centerY [int]
3610
- # @param radius [int]
3623
+ # @param v1 [Vector2]
3624
+ # @param v2 [Vector2]
3625
+ # @param v3 [Vector2]
3626
+ # @param c1 [Color]
3627
+ # @param c2 [Color]
3628
+ # @param c3 [Color]
3629
+ # @return [void]
3630
+ [:ImageDrawTriangleGradient, :ImageDrawTriangleGradient, [:pointer, Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value, Color.by_value, Color.by_value], :void],
3631
+
3632
+ # @!method ImageDrawTriangleLines(dst, v1, v2, v3, color)
3633
+ # ImageDrawTriangleLines : Draw triangle outline within an image
3634
+ # @param dst [Image *]
3635
+ # @param v1 [Vector2]
3636
+ # @param v2 [Vector2]
3637
+ # @param v3 [Vector2]
3611
3638
  # @param color [Color]
3612
3639
  # @return [void]
3613
- [:ImageDrawCircleLines, :ImageDrawCircleLines, [:pointer, :int, :int, :int, Color.by_value], :void],
3640
+ [:ImageDrawTriangleLines, :ImageDrawTriangleLines, [:pointer, Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value], :void],
3614
3641
 
3615
- # @!method ImageDrawCircleLinesV(dst, center, radius, color)
3616
- # ImageDrawCircleLinesV : Draw circle outline within an image (Vector version)
3642
+ # @!method ImageDrawTriangleFan(dst, points, pointCount, color)
3643
+ # ImageDrawTriangleFan : Draw a triangle fan defined by points within an image (first vertex is the center)
3617
3644
  # @param dst [Image *]
3618
- # @param center [Vector2]
3619
- # @param radius [int]
3645
+ # @param points [const Vector2 *]
3646
+ # @param pointCount [int]
3620
3647
  # @param color [Color]
3621
3648
  # @return [void]
3622
- [:ImageDrawCircleLinesV, :ImageDrawCircleLinesV, [:pointer, Vector2.by_value, :int, Color.by_value], :void],
3649
+ [:ImageDrawTriangleFan, :ImageDrawTriangleFan, [:pointer, :pointer, :int, Color.by_value], :void],
3650
+
3651
+ # @!method ImageDrawTriangleStrip(dst, points, pointCount, color)
3652
+ # ImageDrawTriangleStrip : Draw a triangle strip defined by points within an image
3653
+ # @param dst [Image *]
3654
+ # @param points [const Vector2 *]
3655
+ # @param pointCount [int]
3656
+ # @param color [Color]
3657
+ # @return [void]
3658
+ [:ImageDrawTriangleStrip, :ImageDrawTriangleStrip, [:pointer, :pointer, :int, Color.by_value], :void],
3623
3659
 
3624
3660
  # @!method ImageDrawRectangle(dst, posX, posY, width, height, color)
3625
3661
  # ImageDrawRectangle : Draw rectangle within an image
@@ -3649,6 +3685,16 @@ module Raylib
3649
3685
  # @return [void]
3650
3686
  [:ImageDrawRectangleRec, :ImageDrawRectangleRec, [:pointer, Rectangle.by_value, Color.by_value], :void],
3651
3687
 
3688
+ # @!method ImageDrawRectanglePro(dst, rec, origin, rotation, color)
3689
+ # ImageDrawRectanglePro : Draw a color-filled rectangle with pro parameters within and image
3690
+ # @param dst [Image *]
3691
+ # @param rec [Rectangle]
3692
+ # @param origin [Vector2]
3693
+ # @param rotation [float]
3694
+ # @param color [Color]
3695
+ # @return [void]
3696
+ [:ImageDrawRectanglePro, :ImageDrawRectanglePro, [:pointer, Rectangle.by_value, Vector2.by_value, :float, Color.by_value], :void],
3697
+
3652
3698
  # @!method ImageDrawRectangleLines(dst, posX, posY, width, height, color)
3653
3699
  # ImageDrawRectangleLines : Draw rectangle lines within an image
3654
3700
  # @param dst [Image *]
@@ -3661,7 +3707,7 @@ module Raylib
3661
3707
  [:ImageDrawRectangleLines, :ImageDrawRectangleLines, [:pointer, :int, :int, :int, :int, Color.by_value], :void],
3662
3708
 
3663
3709
  # @!method ImageDrawRectangleLinesEx(dst, rec, thick, color)
3664
- # ImageDrawRectangleLinesEx : Draw rectangle lines within an image with extended parameters
3710
+ # ImageDrawRectangleLinesEx : Draw rectangle lines within an image with line thickness
3665
3711
  # @param dst [Image *]
3666
3712
  # @param rec [Rectangle]
3667
3713
  # @param thick [int]
@@ -3669,65 +3715,107 @@ module Raylib
3669
3715
  # @return [void]
3670
3716
  [:ImageDrawRectangleLinesEx, :ImageDrawRectangleLinesEx, [:pointer, Rectangle.by_value, :int, Color.by_value], :void],
3671
3717
 
3672
- # @!method ImageDrawTriangle(dst, v1, v2, v3, color)
3673
- # ImageDrawTriangle : Draw triangle within an image
3718
+ # @!method ImageDrawRectangleGradientEx(dst, rec, col1, col2, col3, col4)
3719
+ # ImageDrawRectangleGradientEx : Draw rectangle with gradient colors within an image, counter-clockwise color order
3674
3720
  # @param dst [Image *]
3675
- # @param v1 [Vector2]
3676
- # @param v2 [Vector2]
3677
- # @param v3 [Vector2]
3678
- # @param color [Color]
3721
+ # @param rec [Rectangle]
3722
+ # @param col1 [Color]
3723
+ # @param col2 [Color]
3724
+ # @param col3 [Color]
3725
+ # @param col4 [Color]
3679
3726
  # @return [void]
3680
- [:ImageDrawTriangle, :ImageDrawTriangle, [:pointer, Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value], :void],
3727
+ [:ImageDrawRectangleGradientEx, :ImageDrawRectangleGradientEx, [:pointer, Rectangle.by_value, Color.by_value, Color.by_value, Color.by_value, Color.by_value], :void],
3681
3728
 
3682
- # @!method ImageDrawTriangleGradient(dst, v1, v2, v3, c1, c2, c3)
3683
- # ImageDrawTriangleGradient : Draw triangle with interpolated colors within an image
3729
+ # @!method ImageDrawCircle(dst, centerX, centerY, radius, color)
3730
+ # ImageDrawCircle : Draw a filled circle within an image
3684
3731
  # @param dst [Image *]
3685
- # @param v1 [Vector2]
3686
- # @param v2 [Vector2]
3687
- # @param v3 [Vector2]
3688
- # @param c1 [Color]
3689
- # @param c2 [Color]
3690
- # @param c3 [Color]
3732
+ # @param centerX [int]
3733
+ # @param centerY [int]
3734
+ # @param radius [int]
3735
+ # @param color [Color]
3691
3736
  # @return [void]
3692
- [:ImageDrawTriangleGradient, :ImageDrawTriangleGradient, [:pointer, Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value, Color.by_value, Color.by_value], :void],
3737
+ [:ImageDrawCircle, :ImageDrawCircle, [:pointer, :int, :int, :int, Color.by_value], :void],
3693
3738
 
3694
- # @!method ImageDrawTriangleLines(dst, v1, v2, v3, color)
3695
- # ImageDrawTriangleLines : Draw triangle outline within an image
3739
+ # @!method ImageDrawCircleV(dst, center, radius, color)
3740
+ # ImageDrawCircleV : Draw a filled circle within an image (Vector version)
3696
3741
  # @param dst [Image *]
3697
- # @param v1 [Vector2]
3698
- # @param v2 [Vector2]
3699
- # @param v3 [Vector2]
3742
+ # @param center [Vector2]
3743
+ # @param radius [int]
3700
3744
  # @param color [Color]
3701
3745
  # @return [void]
3702
- [:ImageDrawTriangleLines, :ImageDrawTriangleLines, [:pointer, Vector2.by_value, Vector2.by_value, Vector2.by_value, Color.by_value], :void],
3746
+ [:ImageDrawCircleV, :ImageDrawCircleV, [:pointer, Vector2.by_value, :int, Color.by_value], :void],
3703
3747
 
3704
- # @!method ImageDrawTriangleFan(dst, points, pointCount, color)
3705
- # ImageDrawTriangleFan : Draw a triangle fan defined by points within an image (first vertex is the center)
3748
+ # @!method ImageDrawCircleLines(dst, centerX, centerY, radius, color)
3749
+ # ImageDrawCircleLines : Draw circle outline within an image
3706
3750
  # @param dst [Image *]
3707
- # @param points [const Vector2 *]
3708
- # @param pointCount [int]
3751
+ # @param centerX [int]
3752
+ # @param centerY [int]
3753
+ # @param radius [int]
3709
3754
  # @param color [Color]
3710
3755
  # @return [void]
3711
- [:ImageDrawTriangleFan, :ImageDrawTriangleFan, [:pointer, :pointer, :int, Color.by_value], :void],
3756
+ [:ImageDrawCircleLines, :ImageDrawCircleLines, [:pointer, :int, :int, :int, Color.by_value], :void],
3712
3757
 
3713
- # @!method ImageDrawTriangleStrip(dst, points, pointCount, color)
3714
- # ImageDrawTriangleStrip : Draw a triangle strip defined by points within an image
3758
+ # @!method ImageDrawCircleLinesV(dst, center, radius, color)
3759
+ # ImageDrawCircleLinesV : Draw circle outline within an image (Vector version)
3715
3760
  # @param dst [Image *]
3716
- # @param points [const Vector2 *]
3717
- # @param pointCount [int]
3761
+ # @param center [Vector2]
3762
+ # @param radius [int]
3718
3763
  # @param color [Color]
3719
3764
  # @return [void]
3720
- [:ImageDrawTriangleStrip, :ImageDrawTriangleStrip, [:pointer, :pointer, :int, Color.by_value], :void],
3765
+ [:ImageDrawCircleLinesV, :ImageDrawCircleLinesV, [:pointer, Vector2.by_value, :int, Color.by_value], :void],
3721
3766
 
3722
- # @!method ImageDraw(dst, src, srcRec, dstRec, tint)
3723
- # ImageDraw : Draw a source image within a destination image (tint applied to source)
3767
+ # @!method ImageDrawCircleGradient(dst, center, radius, inner, outer)
3768
+ # ImageDrawCircleGradient : Draw a gradient-filled circle within an image
3769
+ # @param dst [Image *]
3770
+ # @param center [Vector2]
3771
+ # @param radius [float]
3772
+ # @param inner [Color]
3773
+ # @param outer [Color]
3774
+ # @return [void]
3775
+ [:ImageDrawCircleGradient, :ImageDrawCircleGradient, [:pointer, Vector2.by_value, :float, Color.by_value, Color.by_value], :void],
3776
+
3777
+ # @!method ImageDrawImage(dst, src, posX, posY, tint)
3778
+ # ImageDrawImage : Draw an image within an image
3779
+ # @param dst [Image *]
3780
+ # @param src [Image]
3781
+ # @param posX [int]
3782
+ # @param posY [int]
3783
+ # @param tint [Color]
3784
+ # @return [void]
3785
+ [:ImageDrawImage, :ImageDrawImage, [:pointer, Image.by_value, :int, :int, Color.by_value], :void],
3786
+
3787
+ # @!method ImageDrawImageEx(dst, src, position, rotation, scale, tint)
3788
+ # ImageDrawImageEx : Draw an image with scaling and rotation within an image
3789
+ # @param dst [Image *]
3790
+ # @param src [Image]
3791
+ # @param position [Vector2]
3792
+ # @param rotation [float]
3793
+ # @param scale [float]
3794
+ # @param tint [Color]
3795
+ # @return [void]
3796
+ [:ImageDrawImageEx, :ImageDrawImageEx, [:pointer, Image.by_value, Vector2.by_value, :float, :float, Color.by_value], :void],
3797
+
3798
+ # @!method ImageDrawImageRec(dst, src, srcRec, position, tint)
3799
+ # ImageDrawImageRec : Draw a part of an image defined by a rectangle within an image
3800
+ # @param dst [Image *]
3801
+ # @param src [Image]
3802
+ # @param srcRec [Rectangle]
3803
+ # @param position [Vector2]
3804
+ # @param tint [Color]
3805
+ # @return [void]
3806
+ [:ImageDrawImageRec, :ImageDrawImageRec, [:pointer, Image.by_value, Rectangle.by_value, Vector2.by_value, Color.by_value], :void],
3807
+
3808
+ # @!method ImageDrawImagePro(dst, src, srcRec, dstRec, origin, rotation, tint)
3809
+ # ImageDrawImagePro : Draw a part of an image defined by a rectangle into destination rectangle, with scaling and rotation, within an image
3724
3810
  # @param dst [Image *]
3725
3811
  # @param src [Image]
3726
3812
  # @param srcRec [Rectangle]
3727
3813
  # @param dstRec [Rectangle]
3814
+ # @param origin [Vector2]
3815
+ # @param rotation [float]
3728
3816
  # @param tint [Color]
3729
3817
  # @return [void]
3730
- [:ImageDraw, :ImageDraw, [:pointer, Image.by_value, Rectangle.by_value, Rectangle.by_value, Color.by_value], :void],
3818
+ [:ImageDrawImagePro, :ImageDrawImagePro, [:pointer, Image.by_value, Rectangle.by_value, Rectangle.by_value, Vector2.by_value, :float, Color.by_value], :void],
3731
3819
 
3732
3820
  # @!method ImageDrawText(dst, text, posX, posY, fontSize, color)
3733
3821
  # ImageDrawText : Draw text (using default font) within an image (destination)
@@ -3752,6 +3840,20 @@ module Raylib
3752
3840
  # @return [void]
3753
3841
  [:ImageDrawTextEx, :ImageDrawTextEx, [:pointer, Font.by_value, :pointer, Vector2.by_value, :float, :float, Color.by_value], :void],
3754
3842
 
3843
+ # @!method ImageDrawTextPro(dst, font, text, position, origin, rotation, fontSize, spacing, tint)
3844
+ # ImageDrawTextPro : Draw text using Font and pro parameters (rotation)
3845
+ # @param dst [Image *]
3846
+ # @param font [Font]
3847
+ # @param text [const char *]
3848
+ # @param position [Vector2]
3849
+ # @param origin [Vector2]
3850
+ # @param rotation [float]
3851
+ # @param fontSize [float]
3852
+ # @param spacing [float]
3853
+ # @param tint [Color]
3854
+ # @return [void]
3855
+ [:ImageDrawTextPro, :ImageDrawTextPro, [:pointer, Font.by_value, :pointer, Vector2.by_value, Vector2.by_value, :float, :float, :float, Color.by_value], :void],
3856
+
3755
3857
  # @!method LoadTexture(fileName)
3756
3858
  # LoadTexture : Load texture from file into GPU memory (VRAM)
3757
3859
  # @param fileName [const char *]
@@ -3855,7 +3957,7 @@ module Raylib
3855
3957
  [:DrawTextureV, :DrawTextureV, [Texture2D.by_value, Vector2.by_value, Color.by_value], :void],
3856
3958
 
3857
3959
  # @!method DrawTextureEx(texture, position, rotation, scale, tint)
3858
- # DrawTextureEx : Draw a Texture2D with extended parameters
3960
+ # DrawTextureEx : Draw a Texture2D with rotation and scale
3859
3961
  # @param texture [Texture2D]
3860
3962
  # @param position [Vector2]
3861
3963
  # @param rotation [float]
@@ -4026,7 +4128,7 @@ module Raylib
4026
4128
  [:LoadFont, :LoadFont, [:pointer], Font.by_value],
4027
4129
 
4028
4130
  # @!method LoadFontEx(fileName, fontSize, codepoints, codepointCount)
4029
- # LoadFontEx : Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character set, font size is provided in pixels height
4131
+ # 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
4132
  # @param fileName [const char *]
4031
4133
  # @param fontSize [int]
4032
4134
  # @param codepoints [const int *]
@@ -4490,7 +4592,7 @@ module Raylib
4490
4592
  [:DrawCircle3D, :DrawCircle3D, [Vector3.by_value, :float, Vector3.by_value, :float, Color.by_value], :void],
4491
4593
 
4492
4594
  # @!method DrawTriangle3D(v1, v2, v3, color)
4493
- # DrawTriangle3D : Draw a color-filled triangle (vertex in counter-clockwise order!)
4595
+ # DrawTriangle3D : Draw a color-filled triangle, counter-clockwise vertex order
4494
4596
  # @param v1 [Vector3]
4495
4597
  # @param v2 [Vector3]
4496
4598
  # @param v3 [Vector3]
@@ -4551,7 +4653,7 @@ module Raylib
4551
4653
  [:DrawSphere, :DrawSphere, [Vector3.by_value, :float, Color.by_value], :void],
4552
4654
 
4553
4655
  # @!method DrawSphereEx(centerPos, radius, rings, slices, color)
4554
- # DrawSphereEx : Draw sphere with extended parameters
4656
+ # DrawSphereEx : Draw sphere with defined rings and slices
4555
4657
  # @param centerPos [Vector3]
4556
4658
  # @param radius [float]
4557
4659
  # @param rings [int]
@@ -4698,7 +4800,7 @@ module Raylib
4698
4800
  [:DrawModel, :DrawModel, [Model.by_value, Vector3.by_value, :float, Color.by_value], :void],
4699
4801
 
4700
4802
  # @!method internalDrawModelEx(model, position, rotationAxis, rotationAngle, scale, tint)
4701
- # internalDrawModelEx : Draw a model with extended parameters
4803
+ # internalDrawModelEx : Draw a model with custom transform
4702
4804
  # @param model [Model]
4703
4805
  # @param position [Vector3]
4704
4806
  # @param rotationAxis [Vector3]
@@ -4718,7 +4820,7 @@ module Raylib
4718
4820
  [:DrawModelWires, :DrawModelWires, [Model.by_value, Vector3.by_value, :float, Color.by_value], :void],
4719
4821
 
4720
4822
  # @!method DrawModelWiresEx(model, position, rotationAxis, rotationAngle, scale, tint)
4721
- # DrawModelWiresEx : Draw a model wires (with texture if set) with extended parameters
4823
+ # DrawModelWiresEx : Draw a model wires with custom transform
4722
4824
  # @param model [Model]
4723
4825
  # @param position [Vector3]
4724
4826
  # @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.1
4
+ version: 0.8.2
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - vaiorabbit
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 4.0.6
72
+ rubygems_version: 4.0.10
73
73
  specification_version: 4
74
74
  summary: Ruby bindings for raylib, raygui and Physac
75
75
  test_files: []