raylib-bindings 0.5.4 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a8696a31936913a1f9d1fb43d214953f384b6f2c2ce4445a551403a265efa5a4
4
- data.tar.gz: 1ed4a2fe768e30812be4bf989b9ba7eda2d715ab3220c1706292a194b525b62f
3
+ metadata.gz: c7377be87c5c5efda168b264deaa7526f03bb948b47199a647fff36b93cf1571
4
+ data.tar.gz: f3d9f8465b47291a7e61eb3c6cc168e213826a5dad17aa6ce2d48da333887748
5
5
  SHA512:
6
- metadata.gz: 879ce44f9ec304884088afcb66d5bdb12bc5e46e9238bdd4c264d46acd13ead6534baa006318a36327825653d53ba76794aa8d6d1e9cc5499fc960d3cfa88816
7
- data.tar.gz: bee8b426167b52ca631472a68f981ff9ce3a47abff9db4acb9f5f48587fe3e1876c88b2e362ac24a84b2e174ff3321c6ee9f0644894fe15ee3a5ee247596382a
6
+ metadata.gz: 1f2f44763ca651d69267875fd630ade2bafc23260e44e5cad004e068b0971da664b5fc8adc89bc203b1d16e945ca38a2a523526a1491ef3b45e701fd4783cd57
7
+ data.tar.gz: 4d5020ee59e112531bc6c1706af275e3f3bfcb6947501b441e8a885d89f49469948b500fc939be4e09bedef118a620b7512ea5f996d289536bef7ae0622c9fcb
data/ChangeLog CHANGED
@@ -1,3 +1,12 @@
1
+ 2023-07-29 vaiorabbit <http://twitter.com/vaiorabbit>
2
+
3
+ * Updated with latest raylib ( https://github.com/raysan5/raylib/commit/962030e70ad3dfcce5d4642ad65890fde93ad117 ) and raygui ( https://github.com/raysan5/raygui/commit/36365199b11dd967e7147e64c85ccfda8c5064d1 )
4
+
5
+ 2023-07-16 vaiorabbit <http://twitter.com/vaiorabbit>
6
+
7
+ * example/textures_image_rotate.rb: Added
8
+ * Updated with latest raylib ( https://github.com/raysan5/raylib/commit/22895ba14fab982ca74ec1526b48b924d1174e60 ) and raygui ( https://github.com/raysan5/raygui/commit/848569ce3399a8f6fe00091f968808f3ab042c4b )
9
+
1
10
  2023-06-26 vaiorabbit <http://twitter.com/vaiorabbit>
2
11
 
3
12
  * Updated with latest raylib ( https://github.com/raysan5/raylib/commit/0c126af7171e51fff9f94c4f2e498f43f60d617b ) and raygui ( https://github.com/raysan5/raygui/commit/fa1c93cdcc6df2cd45f5a1d9249291465a24cd8c )
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  # Yet another raylib wrapper for Ruby #
4
4
 
5
5
  * Created : 2021-10-17
6
- * Last modified : 2023-06-26
6
+ * Last modified : 2023-07-29
7
7
 
8
8
  Provides Ruby bindings for raylib-related libraries including:
9
9
 
data/lib/config.rb CHANGED
@@ -70,6 +70,7 @@ module Raylib
70
70
  SUPPORT_FILEFORMAT_FNT = 1
71
71
  SUPPORT_FILEFORMAT_TTF = 1
72
72
  SUPPORT_TEXT_MANIPULATION = 1
73
+ SUPPORT_FONT_ATLAS_WHITE_REC = 1
73
74
  MAX_TEXT_BUFFER_LENGTH = 1024 # Size of internal static buffers used on some functions:
74
75
  MAX_TEXTSPLIT_COUNT = 128 # Maximum number of substrings to split: TextSplit()
75
76
  SUPPORT_FILEFORMAT_OBJ = 1
Binary file
data/lib/libraylib.dll CHANGED
Binary file
data/lib/libraylib.dylib CHANGED
Binary file
Binary file
data/lib/physac.dll CHANGED
Binary file
Binary file
data/lib/raygui.dll CHANGED
Binary file
data/lib/raygui.dylib CHANGED
Binary file
data/lib/raygui.x86_64.so CHANGED
Binary file
data/lib/raygui_main.rb CHANGED
@@ -122,6 +122,7 @@ module Raylib
122
122
  TEXT_ALIGNMENT_VERTICAL = 18 # TextBoxMulti vertical alignment: 0-CENTERED, 1-UP, 2-DOWN
123
123
  TEXT_MULTILINE = 19 # TextBox supports multiple lines
124
124
  TEXT_WRAP_MODE = 20 # TextBox wrap mode for multiline: 0-NO_WRAP, 1-CHAR_WRAP, 2-WORD_WRAP
125
+ TEXT_READONLY = 21 # TextBox is readonly, no editable
125
126
 
126
127
  # enum GuiSpinnerProperty
127
128
  # Spinner
@@ -471,11 +472,11 @@ module Raylib
471
472
  # @return [bool]
472
473
  [:GuiIsLocked, :GuiIsLocked, [], :bool],
473
474
 
474
- # @!method GuiFade(alpha)
475
- # GuiFade : Set gui controls alpha (global state), alpha goes from 0.0f to 1.0f
475
+ # @!method GuiSetAlpha(alpha)
476
+ # GuiSetAlpha : Set gui controls alpha (global state), alpha goes from 0.0f to 1.0f
476
477
  # @param alpha [float]
477
478
  # @return [void]
478
- [:GuiFade, :GuiFade, [:float], :void],
479
+ [:GuiSetAlpha, :GuiSetAlpha, [:float], :void],
479
480
 
480
481
  # @!method GuiSetState(state)
481
482
  # GuiSetState : Set gui state (global state)
data/lib/raylib_main.rb CHANGED
@@ -1215,7 +1215,7 @@ module Raylib
1215
1215
  [:SetWindowPosition, :SetWindowPosition, [:int, :int], :void],
1216
1216
 
1217
1217
  # @!method SetWindowMonitor(monitor)
1218
- # SetWindowMonitor : Set monitor for the current window (fullscreen mode)
1218
+ # SetWindowMonitor : Set monitor for the current window
1219
1219
  # @param monitor [int]
1220
1220
  # @return [void]
1221
1221
  [:SetWindowMonitor, :SetWindowMonitor, [:int], :void],
@@ -1240,6 +1240,11 @@ module Raylib
1240
1240
  # @return [void]
1241
1241
  [:SetWindowOpacity, :SetWindowOpacity, [:float], :void],
1242
1242
 
1243
+ # @!method SetWindowFocused()
1244
+ # SetWindowFocused : Set window focused (only PLATFORM_DESKTOP)
1245
+ # @return [void]
1246
+ [:SetWindowFocused, :SetWindowFocused, [], :void],
1247
+
1243
1248
  # @!method GetWindowHandle()
1244
1249
  # GetWindowHandle : Get native window handle
1245
1250
  # @return [void *]
@@ -1322,7 +1327,7 @@ module Raylib
1322
1327
  [:GetWindowScaleDPI, :GetWindowScaleDPI, [], Vector2.by_value],
1323
1328
 
1324
1329
  # @!method GetMonitorName(monitor)
1325
- # GetMonitorName : Get the human-readable, UTF-8 encoded name of the primary monitor
1330
+ # GetMonitorName : Get the human-readable, UTF-8 encoded name of the specified monitor
1326
1331
  # @param monitor [int]
1327
1332
  # @return [const char *]
1328
1333
  [:GetMonitorName, :GetMonitorName, [:int], :pointer],
@@ -3599,6 +3604,12 @@ module Raylib
3599
3604
  # @return [void]
3600
3605
  [:DrawTextCodepoints, :DrawTextCodepoints, [Font.by_value, :pointer, :int, Vector2.by_value, :float, :float, Color.by_value], :void],
3601
3606
 
3607
+ # @!method SetTextLineSpacing(spacing)
3608
+ # SetTextLineSpacing : Set vertical line spacing when drawing with line-breaks
3609
+ # @param spacing [int]
3610
+ # @return [void]
3611
+ [:SetTextLineSpacing, :SetTextLineSpacing, [:int], :void],
3612
+
3602
3613
  # @!method MeasureText(text, fontSize)
3603
3614
  # MeasureText : Measure string width for default font
3604
3615
  # @param text [const char *]
@@ -4776,7 +4787,7 @@ module Raylib
4776
4787
  [:SetAudioStreamCallback, :SetAudioStreamCallback, [AudioStream.by_value, :AudioCallback], :void],
4777
4788
 
4778
4789
  # @!method AttachAudioStreamProcessor(stream, processor)
4779
- # AttachAudioStreamProcessor : Attach audio stream processor to stream
4790
+ # AttachAudioStreamProcessor : Attach audio stream processor to stream, receives the samples as <float>s
4780
4791
  # @param stream [AudioStream]
4781
4792
  # @param processor [AudioCallback]
4782
4793
  # @return [void]
@@ -4790,7 +4801,7 @@ module Raylib
4790
4801
  [:DetachAudioStreamProcessor, :DetachAudioStreamProcessor, [AudioStream.by_value, :AudioCallback], :void],
4791
4802
 
4792
4803
  # @!method AttachAudioMixedProcessor(processor)
4793
- # AttachAudioMixedProcessor : Attach audio stream processor to the entire audio pipeline
4804
+ # AttachAudioMixedProcessor : Attach audio stream processor to the entire audio pipeline, receives the samples as <float>s
4794
4805
  # @param processor [AudioCallback]
4795
4806
  # @return [void]
4796
4807
  [:AttachAudioMixedProcessor, :AttachAudioMixedProcessor, [:AudioCallback], :void],
data/lib/raymath.rb CHANGED
@@ -630,23 +630,23 @@ module Raylib
630
630
  # @return [Matrix]
631
631
  [:MatrixFrustum, :MatrixFrustum, [:double, :double, :double, :double, :double, :double], Matrix.by_value],
632
632
 
633
- # @!method MatrixPerspective(fovy, aspect, near, far)
633
+ # @!method MatrixPerspective(fovY, aspect, nearPlane, farPlane)
634
634
  # MatrixPerspective
635
- # @param fovy [double]
635
+ # @param fovY [double]
636
636
  # @param aspect [double]
637
- # @param near [double]
638
- # @param far [double]
637
+ # @param nearPlane [double]
638
+ # @param farPlane [double]
639
639
  # @return [Matrix]
640
640
  [:MatrixPerspective, :MatrixPerspective, [:double, :double, :double, :double], Matrix.by_value],
641
641
 
642
- # @!method MatrixOrtho(left, right, bottom, top, near, far)
642
+ # @!method MatrixOrtho(left, right, bottom, top, nearPlane, farPlane)
643
643
  # MatrixOrtho
644
644
  # @param left [double]
645
645
  # @param right [double]
646
646
  # @param bottom [double]
647
647
  # @param top [double]
648
- # @param near [double]
649
- # @param far [double]
648
+ # @param nearPlane [double]
649
+ # @param farPlane [double]
650
650
  # @return [Matrix]
651
651
  [:MatrixOrtho, :MatrixOrtho, [:double, :double, :double, :double, :double, :double], Matrix.by_value],
652
652
 
data/lib/rcamera.rb CHANGED
@@ -99,14 +99,14 @@ module Raylib
99
99
  # GetCameraViewMatrix
100
100
  # @param camera [Camera *]
101
101
  # @return [Matrix]
102
- [:GetCameraViewMatrix, :GetCameraViewMatrix, [:pointer], :int],
102
+ [:GetCameraViewMatrix, :GetCameraViewMatrix, [:pointer], Matrix.by_value],
103
103
 
104
104
  # @!method GetCameraProjectionMatrix(camera, aspect)
105
105
  # GetCameraProjectionMatrix
106
106
  # @param camera [Camera*]
107
107
  # @param aspect [float]
108
108
  # @return [Matrix]
109
- [:GetCameraProjectionMatrix, :GetCameraProjectionMatrix, [:pointer, :float], :int],
109
+ [:GetCameraProjectionMatrix, :GetCameraProjectionMatrix, [:pointer, :float], Matrix.by_value],
110
110
  ]
111
111
  entries.each do |entry|
112
112
  attach_function entry[0], entry[1], entry[2], entry[3]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raylib-bindings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - vaiorabbit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-25 00:00:00.000000000 Z
11
+ date: 2023-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi