raylib-bindings 0.5.2 → 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 +4 -4
 - data/ChangeLog +4 -0
 - data/README.md +1 -1
 - data/lib/libraylib.aarch64.so +0 -0
 - data/lib/libraylib.dll +0 -0
 - data/lib/libraylib.dylib +0 -0
 - data/lib/libraylib.x86_64.so +0 -0
 - data/lib/physac.dll +0 -0
 - data/lib/physac.rb +86 -67
 - data/lib/raygui.aarch64.so +0 -0
 - data/lib/raygui.dll +0 -0
 - data/lib/raygui.dylib +0 -0
 - data/lib/raygui.rb +304 -253
 - data/lib/raygui.x86_64.so +0 -0
 - data/lib/raylib_main.rb +2656 -2136
 - data/lib/raymath.rb +557 -445
 - data/lib/rcamera.rb +62 -50
 - data/lib/rlgl.rb +677 -532
 - 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: 5571b24bfb4dac3918797195daeb2512bd10f4d9201b1f1788fd86313dc92bdb
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: e1dc1d92bbc99e4391856de4b75dca971b3adb8a70e104c98e082ef9db4de5a9
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 260253d2806a52498aa64369fc6bcff6d1cd4f9e3c861515c3d296102bb25eb60fcb99796e1c0bde0ac38616d253e644028c3e488dfe6e674876dcb2a2b17acd
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 40741315ce22634af9dc845f8b313ef3d493a243f3985c7ea4d10353188867f20b3e3d6961e6a30f5dfd5b2c668bf7c094e66b7eed46dca147b767df8aab46da
         
     | 
    
        data/ChangeLog
    CHANGED
    
    | 
         @@ -1,3 +1,7 @@ 
     | 
|
| 
      
 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 
     | 
    
         
            +
             
     | 
| 
       1 
5 
     | 
    
         
             
            2023-04-15  vaiorabbit  <http://twitter.com/vaiorabbit>
         
     | 
| 
       2 
6 
     | 
    
         | 
| 
       3 
7 
     | 
    
         
             
            	* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/709b14180a6ed0379c134bd86612994cb2f36f80 ) and raygui ( https://github.com/raysan5/raygui/commit/5d7bc6b70adc195ccf3b556a23a1e2103f88ec7a )
         
     | 
    
        data/README.md
    CHANGED
    
    
    
        data/lib/libraylib.aarch64.so
    CHANGED
    
    | 
         Binary file 
     | 
    
        data/lib/libraylib.dll
    CHANGED
    
    | 
         Binary file 
     | 
    
        data/lib/libraylib.dylib
    CHANGED
    
    | 
         Binary file 
     | 
    
        data/lib/libraylib.x86_64.so
    CHANGED
    
    | 
         Binary file 
     | 
    
        data/lib/physac.dll
    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 
     | 
| 
       194 
     | 
    
         
            -
                  #  
     | 
| 
      
 193 
     | 
    
         
            +
                  # @!method InitPhysics()
         
     | 
| 
      
 194 
     | 
    
         
            +
                  #   InitPhysics : Initializes physics system
         
     | 
| 
      
 195 
     | 
    
         
            +
                  #   @return [void]
         
     | 
| 
       195 
196 
     | 
    
         
             
                  [:InitPhysics, :InitPhysics, [], :void],
         
     | 
| 
       196 
197 
     | 
    
         | 
| 
       197 
     | 
    
         
            -
                  # UpdatePhysics 
     | 
| 
       198 
     | 
    
         
            -
                  #  
     | 
| 
      
 198 
     | 
    
         
            +
                  # @!method UpdatePhysics()
         
     | 
| 
      
 199 
     | 
    
         
            +
                  #   UpdatePhysics : Update physics system
         
     | 
| 
      
 200 
     | 
    
         
            +
                  #   @return [void]
         
     | 
| 
       199 
201 
     | 
    
         
             
                  [:UpdatePhysics, :UpdatePhysics, [], :void],
         
     | 
| 
       200 
202 
     | 
    
         | 
| 
       201 
     | 
    
         
            -
                  # ResetPhysics 
     | 
| 
       202 
     | 
    
         
            -
                  #  
     | 
| 
      
 203 
     | 
    
         
            +
                  # @!method ResetPhysics()
         
     | 
| 
      
 204 
     | 
    
         
            +
                  #   ResetPhysics : Reset physics system (global variables)
         
     | 
| 
      
 205 
     | 
    
         
            +
                  #   @return [void]
         
     | 
| 
       203 
206 
     | 
    
         
             
                  [:ResetPhysics, :ResetPhysics, [], :void],
         
     | 
| 
       204 
207 
     | 
    
         | 
| 
       205 
     | 
    
         
            -
                  # ClosePhysics 
     | 
| 
       206 
     | 
    
         
            -
                  #  
     | 
| 
      
 208 
     | 
    
         
            +
                  # @!method ClosePhysics()
         
     | 
| 
      
 209 
     | 
    
         
            +
                  #   ClosePhysics : Close physics system and unload used memory
         
     | 
| 
      
 210 
     | 
    
         
            +
                  #   @return [void]
         
     | 
| 
       207 
211 
     | 
    
         
             
                  [:ClosePhysics, :ClosePhysics, [], :void],
         
     | 
| 
       208 
212 
     | 
    
         | 
| 
       209 
     | 
    
         
            -
                  # SetPhysicsTimeStep 
     | 
| 
       210 
     | 
    
         
            -
                  #  
     | 
| 
       211 
     | 
    
         
            -
                  # 
     | 
| 
      
 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  
     | 
| 
       215 
     | 
    
         
            -
                  #  
     | 
| 
       216 
     | 
    
         
            -
                  # 
     | 
| 
       217 
     | 
    
         
            -
                  # 
     | 
| 
      
 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  
     | 
| 
       221 
     | 
    
         
            -
                  #  
     | 
| 
       222 
     | 
    
         
            -
                  # 
     | 
| 
       223 
     | 
    
         
            -
                  # 
     | 
| 
       224 
     | 
    
         
            -
                  # 
     | 
| 
      
 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  
     | 
| 
       228 
     | 
    
         
            -
                  #  
     | 
| 
       229 
     | 
    
         
            -
                  # 
     | 
| 
       230 
     | 
    
         
            -
                  # 
     | 
| 
       231 
     | 
    
         
            -
                  # 
     | 
| 
       232 
     | 
    
         
            -
                  # 
     | 
| 
      
 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  
     | 
| 
       236 
     | 
    
         
            -
                  #  
     | 
| 
       237 
     | 
    
         
            -
                  # 
     | 
| 
       238 
     | 
    
         
            -
                  # 
     | 
| 
       239 
     | 
    
         
            -
                  # 
     | 
| 
       240 
     | 
    
         
            -
                  # 
     | 
| 
      
 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 
     | 
| 
       244 
     | 
    
         
            -
                  #  
     | 
| 
       245 
     | 
    
         
            -
                  # 
     | 
| 
      
 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  
     | 
| 
       249 
     | 
    
         
            -
                  #  
     | 
| 
       250 
     | 
    
         
            -
                  # 
     | 
| 
       251 
     | 
    
         
            -
                  # 
     | 
| 
      
 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  
     | 
| 
       255 
     | 
    
         
            -
                  #  
     | 
| 
       256 
     | 
    
         
            -
                  # 
     | 
| 
       257 
     | 
    
         
            -
                  # 
     | 
| 
      
 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 
     | 
| 
       261 
     | 
    
         
            -
                  #  
     | 
| 
       262 
     | 
    
         
            -
                  # 
     | 
| 
       263 
     | 
    
         
            -
                  # 
     | 
| 
       264 
     | 
    
         
            -
                  # 
     | 
| 
      
 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 
     | 
| 
       268 
     | 
    
         
            -
                  #  
     | 
| 
       269 
     | 
    
         
            -
                  # 
     | 
| 
       270 
     | 
    
         
            -
                  # 
     | 
| 
      
 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 
     | 
| 
       274 
     | 
    
         
            -
                  #  
     | 
| 
       275 
     | 
    
         
            -
                  # 
     | 
| 
      
 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 
     | 
| 
       279 
     | 
    
         
            -
                  #  
     | 
| 
      
 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 
     | 
| 
       283 
     | 
    
         
            -
                  #  
     | 
| 
       284 
     | 
    
         
            -
                  # 
     | 
| 
      
 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 
     | 
| 
       288 
     | 
    
         
            -
                  #  
     | 
| 
       289 
     | 
    
         
            -
                  # 
     | 
| 
      
 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 
     | 
| 
       293 
     | 
    
         
            -
                  #  
     | 
| 
       294 
     | 
    
         
            -
                  # 
     | 
| 
       295 
     | 
    
         
            -
                  # 
     | 
| 
      
 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/raygui.aarch64.so
    CHANGED
    
    | 
         Binary file 
     | 
    
        data/lib/raygui.dll
    CHANGED
    
    | 
         Binary file 
     | 
    
        data/lib/raygui.dylib
    CHANGED
    
    | 
         Binary file 
     |