raylib-bindings 0.5.1 → 0.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cb3ecfaf49b35d47a1cb78ffac73f8e6c355bde8e5c9ada600cf5d80af1e6564
4
- data.tar.gz: 98e7fdc4aecae0a7fcd1f68947f9fcba891d78f0f76e5f22eafe73385e3e9127
3
+ metadata.gz: 5571b24bfb4dac3918797195daeb2512bd10f4d9201b1f1788fd86313dc92bdb
4
+ data.tar.gz: e1dc1d92bbc99e4391856de4b75dca971b3adb8a70e104c98e082ef9db4de5a9
5
5
  SHA512:
6
- metadata.gz: 1db2e65ee6d8afbb17294fc38114e0592d334d7a4ea4df0880b562369820f82e238d8562bc476be80d9a8bf23057fd7272ec5744d2d4449c0c5cdd3299042276
7
- data.tar.gz: 8d539c2578b7f6ef3ffad52acea2fe2ab9b35575192e0309fc77429cb55f0d30c04e808adabc4e4988806e1f2fd6002e6cfb97435c1eebed66d61f20e98e116c
6
+ metadata.gz: 260253d2806a52498aa64369fc6bcff6d1cd4f9e3c861515c3d296102bb25eb60fcb99796e1c0bde0ac38616d253e644028c3e488dfe6e674876dcb2a2b17acd
7
+ data.tar.gz: 40741315ce22634af9dc845f8b313ef3d493a243f3985c7ea4d10353188867f20b3e3d6961e6a30f5dfd5b2c668bf7c094e66b7eed46dca147b767df8aab46da
data/ChangeLog CHANGED
@@ -1,3 +1,11 @@
1
+ 2023-05-14 vaiorabbit <http://twitter.com/vaiorabbit>
2
+
3
+ * Updated with latest raylib ( https://github.com/raysan5/raylib/commit/5978358e5877b0033584334c5bf6ec7d8cf22ae8 ) and raygui ( https://github.com/raysan5/raygui/commit/aa81c167f10707ea173ea1190eda18e57d841b8f )
4
+
5
+ 2023-04-15 vaiorabbit <http://twitter.com/vaiorabbit>
6
+
7
+ * Updated with latest raylib ( https://github.com/raysan5/raylib/commit/709b14180a6ed0379c134bd86612994cb2f36f80 ) and raygui ( https://github.com/raysan5/raygui/commit/5d7bc6b70adc195ccf3b556a23a1e2103f88ec7a )
8
+
1
9
  2023-03-19 vaiorabbit <http://twitter.com/vaiorabbit>
2
10
 
3
11
  * Updated with latest raylib ( https://github.com/raysan5/raylib/commit/2e02474b7aac2e6e3fe680a3aa996973585eeaad ) and raygui ( https://github.com/raysan5/raygui/commit/5d1de95ba2d16c44c4e777873a0e39f75dab8ffd )
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-03-19
6
+ * Last modified : 2023-05-14
7
7
 
8
8
  Provides Ruby bindings for raylib-related libraries including:
9
9
 
Binary file
data/lib/libraylib.dll CHANGED
Binary file
data/lib/libraylib.dylib CHANGED
Binary file
Binary file
Binary file
data/lib/physac.dll CHANGED
Binary file
data/lib/physac.dylib CHANGED
Binary file
data/lib/physac.rb CHANGED
@@ -190,109 +190,128 @@ module Raylib
190
190
  def self.setup_physac_symbols
191
191
  entries = [
192
192
 
193
- # InitPhysics : Initializes physics system
194
- # @return [void]
193
+ # @!method InitPhysics()
194
+ # InitPhysics : Initializes physics system
195
+ # @return [void]
195
196
  [:InitPhysics, :InitPhysics, [], :void],
196
197
 
197
- # UpdatePhysics : Update physics system
198
- # @return [void]
198
+ # @!method UpdatePhysics()
199
+ # UpdatePhysics : Update physics system
200
+ # @return [void]
199
201
  [:UpdatePhysics, :UpdatePhysics, [], :void],
200
202
 
201
- # ResetPhysics : Reset physics system (global variables)
202
- # @return [void]
203
+ # @!method ResetPhysics()
204
+ # ResetPhysics : Reset physics system (global variables)
205
+ # @return [void]
203
206
  [:ResetPhysics, :ResetPhysics, [], :void],
204
207
 
205
- # ClosePhysics : Close physics system and unload used memory
206
- # @return [void]
208
+ # @!method ClosePhysics()
209
+ # ClosePhysics : Close physics system and unload used memory
210
+ # @return [void]
207
211
  [:ClosePhysics, :ClosePhysics, [], :void],
208
212
 
209
- # SetPhysicsTimeStep : Sets physics fixed time step in milliseconds. 1.666666 by default
210
- # @param delta [double]
211
- # @return [void]
213
+ # @!method SetPhysicsTimeStep(delta)
214
+ # SetPhysicsTimeStep : Sets physics fixed time step in milliseconds. 1.666666 by default
215
+ # @param delta [double]
216
+ # @return [void]
212
217
  [:SetPhysicsTimeStep, :SetPhysicsTimeStep, [:double], :void],
213
218
 
214
- # SetPhysicsGravity : Sets physics global gravity force
215
- # @param x [float]
216
- # @param y [float]
217
- # @return [void]
219
+ # @!method SetPhysicsGravity(x, y)
220
+ # SetPhysicsGravity : Sets physics global gravity force
221
+ # @param x [float]
222
+ # @param y [float]
223
+ # @return [void]
218
224
  [:SetPhysicsGravity, :SetPhysicsGravity, [:float, :float], :void],
219
225
 
220
- # CreatePhysicsBodyCircle : Creates a new circle physics body with generic parameters
221
- # @param pos [Vector2]
222
- # @param radius [float]
223
- # @param density [float]
224
- # @return [PhysicsBody]
226
+ # @!method CreatePhysicsBodyCircle(pos, radius, density)
227
+ # CreatePhysicsBodyCircle : Creates a new circle physics body with generic parameters
228
+ # @param pos [Vector2]
229
+ # @param radius [float]
230
+ # @param density [float]
231
+ # @return [PhysicsBody]
225
232
  [:CreatePhysicsBodyCircle, :CreatePhysicsBodyCircle, [Vector2.by_value, :float, :float], :pointer],
226
233
 
227
- # CreatePhysicsBodyRectangle : Creates a new rectangle physics body with generic parameters
228
- # @param pos [Vector2]
229
- # @param width [float]
230
- # @param height [float]
231
- # @param density [float]
232
- # @return [PhysicsBody]
234
+ # @!method CreatePhysicsBodyRectangle(pos, width, height, density)
235
+ # CreatePhysicsBodyRectangle : Creates a new rectangle physics body with generic parameters
236
+ # @param pos [Vector2]
237
+ # @param width [float]
238
+ # @param height [float]
239
+ # @param density [float]
240
+ # @return [PhysicsBody]
233
241
  [:CreatePhysicsBodyRectangle, :CreatePhysicsBodyRectangle, [Vector2.by_value, :float, :float, :float], :pointer],
234
242
 
235
- # CreatePhysicsBodyPolygon : Creates a new polygon physics body with generic parameters
236
- # @param pos [Vector2]
237
- # @param radius [float]
238
- # @param sides [int]
239
- # @param density [float]
240
- # @return [PhysicsBody]
243
+ # @!method CreatePhysicsBodyPolygon(pos, radius, sides, density)
244
+ # CreatePhysicsBodyPolygon : Creates a new polygon physics body with generic parameters
245
+ # @param pos [Vector2]
246
+ # @param radius [float]
247
+ # @param sides [int]
248
+ # @param density [float]
249
+ # @return [PhysicsBody]
241
250
  [:CreatePhysicsBodyPolygon, :CreatePhysicsBodyPolygon, [Vector2.by_value, :float, :int, :float], :pointer],
242
251
 
243
- # DestroyPhysicsBody : Destroy a physics body
244
- # @param body [PhysicsBody]
245
- # @return [void]
252
+ # @!method DestroyPhysicsBody(body)
253
+ # DestroyPhysicsBody : Destroy a physics body
254
+ # @param body [PhysicsBody]
255
+ # @return [void]
246
256
  [:DestroyPhysicsBody, :DestroyPhysicsBody, [:pointer], :void],
247
257
 
248
- # PhysicsAddForce : Adds a force to a physics body
249
- # @param body [PhysicsBody]
250
- # @param force [Vector2]
251
- # @return [void]
258
+ # @!method PhysicsAddForce(body, force)
259
+ # PhysicsAddForce : Adds a force to a physics body
260
+ # @param body [PhysicsBody]
261
+ # @param force [Vector2]
262
+ # @return [void]
252
263
  [:PhysicsAddForce, :PhysicsAddForce, [:pointer, Vector2.by_value], :void],
253
264
 
254
- # PhysicsAddTorque : Adds an angular force to a physics body
255
- # @param body [PhysicsBody]
256
- # @param amount [float]
257
- # @return [void]
265
+ # @!method PhysicsAddTorque(body, amount)
266
+ # PhysicsAddTorque : Adds an angular force to a physics body
267
+ # @param body [PhysicsBody]
268
+ # @param amount [float]
269
+ # @return [void]
258
270
  [:PhysicsAddTorque, :PhysicsAddTorque, [:pointer, :float], :void],
259
271
 
260
- # PhysicsShatter : Shatters a polygon shape physics body to little physics bodies with explosion force
261
- # @param body [PhysicsBody]
262
- # @param position [Vector2]
263
- # @param force [float]
264
- # @return [void]
272
+ # @!method PhysicsShatter(body, position, force)
273
+ # PhysicsShatter : Shatters a polygon shape physics body to little physics bodies with explosion force
274
+ # @param body [PhysicsBody]
275
+ # @param position [Vector2]
276
+ # @param force [float]
277
+ # @return [void]
265
278
  [:PhysicsShatter, :PhysicsShatter, [:pointer, Vector2.by_value, :float], :void],
266
279
 
267
- # SetPhysicsBodyRotation : Sets physics body shape transform based on radians parameter
268
- # @param body [PhysicsBody]
269
- # @param radians [float]
270
- # @return [void]
280
+ # @!method SetPhysicsBodyRotation(body, radians)
281
+ # SetPhysicsBodyRotation : Sets physics body shape transform based on radians parameter
282
+ # @param body [PhysicsBody]
283
+ # @param radians [float]
284
+ # @return [void]
271
285
  [:SetPhysicsBodyRotation, :SetPhysicsBodyRotation, [:pointer, :float], :void],
272
286
 
273
- # GetPhysicsBody : Returns a physics body of the bodies pool at a specific index
274
- # @param index [int]
275
- # @return [PhysicsBody]
287
+ # @!method GetPhysicsBody(index)
288
+ # GetPhysicsBody : Returns a physics body of the bodies pool at a specific index
289
+ # @param index [int]
290
+ # @return [PhysicsBody]
276
291
  [:GetPhysicsBody, :GetPhysicsBody, [:int], :pointer],
277
292
 
278
- # GetPhysicsBodiesCount : Returns the current amount of created physics bodies
279
- # @return [int]
293
+ # @!method GetPhysicsBodiesCount()
294
+ # GetPhysicsBodiesCount : Returns the current amount of created physics bodies
295
+ # @return [int]
280
296
  [:GetPhysicsBodiesCount, :GetPhysicsBodiesCount, [], :int],
281
297
 
282
- # GetPhysicsShapeType : Returns the physics body shape type (PHYSICS_CIRCLE or PHYSICS_POLYGON)
283
- # @param index [int]
284
- # @return [int]
298
+ # @!method GetPhysicsShapeType(index)
299
+ # GetPhysicsShapeType : Returns the physics body shape type (PHYSICS_CIRCLE or PHYSICS_POLYGON)
300
+ # @param index [int]
301
+ # @return [int]
285
302
  [:GetPhysicsShapeType, :GetPhysicsShapeType, [:int], :int],
286
303
 
287
- # GetPhysicsShapeVerticesCount : Returns the amount of vertices of a physics body shape
288
- # @param index [int]
289
- # @return [int]
304
+ # @!method GetPhysicsShapeVerticesCount(index)
305
+ # GetPhysicsShapeVerticesCount : Returns the amount of vertices of a physics body shape
306
+ # @param index [int]
307
+ # @return [int]
290
308
  [:GetPhysicsShapeVerticesCount, :GetPhysicsShapeVerticesCount, [:int], :int],
291
309
 
292
- # GetPhysicsShapeVertex : Returns transformed position of a body shape (body position + vertex transformed position)
293
- # @param body [PhysicsBody]
294
- # @param vertex [int]
295
- # @return [Vector2]
310
+ # @!method GetPhysicsShapeVertex(body, vertex)
311
+ # GetPhysicsShapeVertex : Returns transformed position of a body shape (body position + vertex transformed position)
312
+ # @param body [PhysicsBody]
313
+ # @param vertex [int]
314
+ # @return [Vector2]
296
315
  [:GetPhysicsShapeVertex, :GetPhysicsShapeVertex, [:pointer, :int], Vector2.by_value],
297
316
  ]
298
317
  entries.each do |entry|
data/lib/physac.x86_64.so CHANGED
Binary file
Binary file
data/lib/raygui.dll CHANGED
Binary file
data/lib/raygui.dylib CHANGED
Binary file