From 2b0451d3051471ce11a077de509a8fb1affb9545 Mon Sep 17 00:00:00 2001 From: John Barrett Date: Mon, 9 Mar 2026 15:29:02 +0000 Subject: [PATCH 1/3] Add ColorLerp function --- lib/Raylib/FFI.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/Raylib/FFI.pm b/lib/Raylib/FFI.pm index 7c2aaf3..a7b6b60 100644 --- a/lib/Raylib/FFI.pm +++ b/lib/Raylib/FFI.pm @@ -872,6 +872,7 @@ my %functions = ( ColorContrast => [ [ 'Color', 'float' ] => 'Color' ], ColorAlpha => [ [ 'Color', 'float' ] => 'Color' ], ColorAlphaBlend => [ [ 'Color', 'Color', 'Color' ] => 'Color' ], + ColorLerp => [ [ 'Color', 'Color', 'float' ] => 'Color' ], GetColor => [ ['int'] => 'Color' ], GetPixelColor => [ [ 'Image', 'int', 'int' ] => 'Color' ], SetPixelColor => [ [ 'Image', 'int', 'int', 'Color' ] => 'void' ], @@ -2557,6 +2558,10 @@ Get src alpha-blended into dst color with tint Get Color structure from hexadecimal value +=head2 ColorLerp( $color1, $color2, $factor ) : Raylib::FFI::Color + +Get color lerp interpolation between two colors, factor [0.0f..1.0f] + =head2 GetColor( $hexValue ) : Raylib::FFI::Color Get Color structure from hexadecimal value From 1f150eefb0a01b0d05f9fdd03aa159f985312267 Mon Sep 17 00:00:00 2001 From: John Barrett Date: Mon, 9 Mar 2026 15:29:30 +0000 Subject: [PATCH 2/3] IsAudioDeviceValid -> IsAudioDeviceReady --- lib/Raylib/FFI.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Raylib/FFI.pm b/lib/Raylib/FFI.pm index a7b6b60..dd52f02 100644 --- a/lib/Raylib/FFI.pm +++ b/lib/Raylib/FFI.pm @@ -1035,7 +1035,7 @@ my %functions = ( # audio device management InitAudioDevice => [ [] => 'void' ], CloseAudioDevice => [ [] => 'void' ], - IsAudioDeviceValid => [ [] => 'bool' ], + IsAudioDeviceReady => [ [] => 'bool' ], SetMasterVolume => [ ['float'] => 'void' ], GetMasterVolume => [ [] => 'float' ], @@ -2986,7 +2986,7 @@ Initialize audio device and context Close the audio device and context -=head2 IsAudioDeviceValid() : bool +=head2 IsAudioDeviceReady() : bool Check if audio device has been initialized successfully From a91193af48c3e1b82359dfc6a017451856e36fe9 Mon Sep 17 00:00:00 2001 From: John Barrett Date: Mon, 9 Mar 2026 15:29:48 +0000 Subject: [PATCH 3/3] POD fixes --- lib/Raylib/FFI.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Raylib/FFI.pm b/lib/Raylib/FFI.pm index dd52f02..3b48f34 100644 --- a/lib/Raylib/FFI.pm +++ b/lib/Raylib/FFI.pm @@ -2734,15 +2734,15 @@ Draw cube (Vector version) Draw cube wires -=head DrawSphere( $centerPos, $radius, $color ) +=head2 DrawSphere( $centerPos, $radius, $color ) Draw sphere -=head DrawSphereEx( $centerPos, $radius, $rings, $segments, $color ) +=head2 DrawSphereEx( $centerPos, $radius, $rings, $segments, $color ) Draw sphere with extended parameters -=head DrawSphereWires( $centerPos, $radius, $rings, $segments, $color ) +=head2 DrawSphereWires( $centerPos, $radius, $rings, $segments, $color ) Draw sphere wires