Skip to content

Commit 93a8788

Browse files
committed
update for raylib 5.5
1 parent 51d0b4b commit 93a8788

File tree

14 files changed

+369
-228
lines changed

14 files changed

+369
-228
lines changed

.github/workflows/install.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
#os: [ubuntu-latest, macos-latest] # for now we drop windows
1615
os: [ubuntu-latest, macos-latest, windows-latest]
1716
perl-version: ['5.38', '5.40']
1817

@@ -21,7 +20,9 @@ jobs:
2120

2221
steps:
2322
- uses: actions/checkout@v4
24-
23+
- uses: shogo82148/actions-setup-perl@v1
24+
with:
25+
perl-version: ${{ matrix.perl-version }}
2526
- name: Install System Dependencies (Linux)
2627
if: runner.os == 'Linux'
2728
run: |
@@ -38,6 +39,19 @@ jobs:
3839
libwayland-dev \
3940
libxkbcommon-dev
4041
42+
- name: Install Alien-raylib5
43+
uses: perl-actions/[email protected]
44+
with:
45+
install: https://github.com/perigrin/Alien-raylib5.git
46+
verbose: true
47+
48+
# as of right now 6.2 doesn't pass tests so we install it by hand
49+
- name: Install Module::Pluggable
50+
uses: perl-actions/[email protected]
51+
with:
52+
install: Module::Pluggable
53+
tests: false
54+
4155
- name: Build and Test
4256
uses: perl-actions/[email protected]
4357
with:

Build.PL

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This Build.PL for Raylib-FFI was generated by mbtiny 0.044.
2-
use 5.008;
1+
# This Build.PL for Raylib-FFI was generated by mbtiny 0.047.
2+
use v5.38.0;
33
use Module::Build::Tiny 0.039;
44
Build_PL();

Changes

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
Revision history for Raylib-FFI
22

3-
0.001 2024-06-26
4-
First release
3+
0.02 2024-11-20 Added support for raylib 5.5
4+
- Updated validation function names from "Ready" to "Valid" to match
5+
raylib 5.5
6+
- Added new window management functions (ToggleBorderlessWindowed,
7+
SetWindowIcons, SetWindowFocused, GetWindowScaleDPI)
8+
- Added new clipboard function (GetClipboardImage)
9+
- Added event waiting functions (EnableEventWaiting, DisableEventWaiting)
510

11+
0.01 2024-06-26
12+
First release

META.json

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"Ahmad Fatoum C<< <[email protected]> >>, L<http://a3f.at>"
77
],
88
"dynamic_config" : 0,
9-
"generated_by" : "App::ModuleBuildTiny version 0.044",
9+
"generated_by" : "App::ModuleBuildTiny version 0.047",
1010
"license" : [
1111
"perl_5"
1212
],
@@ -23,19 +23,20 @@
2323
},
2424
"develop" : {
2525
"requires" : {
26-
"App::ModuleBuildTiny" : "0.044"
26+
"App::ModuleBuildTiny" : "0.047"
2727
}
2828
},
2929
"runtime" : {
3030
"requires" : {
31-
"Alien::raylib" : "0",
31+
"Alien::raylib5" : "0",
3232
"Convert::Color" : "0",
3333
"FFI::C" : "0",
3434
"FFI::CheckLib" : "0",
35-
"FFI::Platypus" : "0",
35+
"FFI::Platypus" : "2.08",
3636
"File::Share" : "0",
3737
"Module::Build::Tiny" : "0",
38-
"builtin::Backport" : "0"
38+
"builtin::Backport" : "0",
39+
"perl" : "v5.38.0"
3940
}
4041
}
4142
},
@@ -48,11 +49,17 @@
4849
},
4950
"Raylib::FFI" : {
5051
"file" : "lib/Raylib/FFI.pm",
51-
"version" : "0.01"
52+
"version" : "0.02"
5253
},
5354
"Raylib::FFI::AudioStream" : {
5455
"file" : "lib/Raylib/FFI.pm"
5556
},
57+
"Raylib::FFI::AutomationEvent" : {
58+
"file" : "lib/Raylib/FFI.pm"
59+
},
60+
"Raylib::FFI::AutomationEventList" : {
61+
"file" : "lib/Raylib/FFI.pm"
62+
},
5663
"Raylib::FFI::BoneInfo" : {
5764
"file" : "lib/Raylib/FFI.pm"
5865
},
@@ -68,6 +75,9 @@
6875
"Raylib::FFI::Color" : {
6976
"file" : "lib/Raylib/FFI.pm"
7077
},
78+
"Raylib::FFI::FilePathList" : {
79+
"file" : "lib/Raylib/FFI.pm"
80+
},
7181
"Raylib::FFI::Font" : {
7282
"file" : "lib/Raylib/FFI.pm"
7383
},
@@ -160,7 +170,7 @@
160170
}
161171
},
162172
"release_status" : "stable",
163-
"version" : "0.01",
173+
"version" : "0.02",
164174
"x_serialization_backend" : "JSON::PP version 4.16",
165175
"x_spdx_expression" : "Artistic-1.0-Perl OR GPL-1.0-or-later"
166176
}

META.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ build_requires: {}
88
configure_requires:
99
Module::Build::Tiny: '0.039'
1010
dynamic_config: 0
11-
generated_by: 'App::ModuleBuildTiny version 0.044, CPAN::Meta::Converter version 2.150010'
11+
generated_by: 'App::ModuleBuildTiny version 0.047, CPAN::Meta::Converter version 2.150010'
1212
license: perl
1313
meta-spec:
1414
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -21,9 +21,13 @@ provides:
2121
file: lib/Raylib/Color.pm
2222
Raylib::FFI:
2323
file: lib/Raylib/FFI.pm
24-
version: '0.01'
24+
version: '0.02'
2525
Raylib::FFI::AudioStream:
2626
file: lib/Raylib/FFI.pm
27+
Raylib::FFI::AutomationEvent:
28+
file: lib/Raylib/FFI.pm
29+
Raylib::FFI::AutomationEventList:
30+
file: lib/Raylib/FFI.pm
2731
Raylib::FFI::BoneInfo:
2832
file: lib/Raylib/FFI.pm
2933
Raylib::FFI::BoundingBox:
@@ -34,6 +38,8 @@ provides:
3438
file: lib/Raylib/FFI.pm
3539
Raylib::FFI::Color:
3640
file: lib/Raylib/FFI.pm
41+
Raylib::FFI::FilePathList:
42+
file: lib/Raylib/FFI.pm
3743
Raylib::FFI::Font:
3844
file: lib/Raylib/FFI.pm
3945
Raylib::FFI::GlyphInfo:
@@ -95,14 +101,15 @@ provides:
95101
Raylib::Texture:
96102
file: lib/Raylib/Texture.pm
97103
requires:
98-
Alien::raylib: '0'
104+
Alien::raylib5: '0'
99105
Convert::Color: '0'
100106
FFI::C: '0'
101107
FFI::CheckLib: '0'
102-
FFI::Platypus: '0'
108+
FFI::Platypus: '2.08'
103109
File::Share: '0'
104110
Module::Build::Tiny: '0'
105111
builtin::Backport: '0'
106-
version: '0.01'
112+
perl: v5.38.0
113+
version: '0.02'
107114
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
108115
x_spdx_expression: 'Artistic-1.0-Perl OR GPL-1.0-or-later'

README

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ FUNCTIONS
177177
Check if application should close (KEY_ESCAPE pressed or windows close
178178
icon clicked).
179179

180-
IsWindowReady() : bool
180+
IsWindowValid() : bool
181181

182182
Check if window has been initialized successfully.
183183

@@ -274,6 +274,10 @@ FUNCTIONS
274274

275275
Set window opacity [0.0f..1.0f]
276276

277+
SetWindowFocused()
278+
279+
Set window focused
280+
277281
GetScreenWidth() : int
278282

279283
Get current screen width.
@@ -342,6 +346,10 @@ FUNCTIONS
342346

343347
Get clipboard text content.
344348

349+
GetClipboardImage() : Raylib::FFI::Image
350+
351+
Get clipboard image content.
352+
345353
EnableEventWaiting()
346354

347355
Enable waiting for events on EndDrawing, automatic event polling.
@@ -459,9 +467,9 @@ FUNCTIONS
459467

460468
Load shader from code strings and bind default locations.
461469

462-
IsShaderReady( $shader ) : bool
470+
IsShaderValid( $shader ) : bool
463471

464-
Check if a shader is ready.
472+
Check if a shader is valid.
465473

466474
GetShaderLocation( $shader, $uniformName ) : int
467475

@@ -1082,7 +1090,7 @@ FUNCTIONS
10821090
Load image from screen buffer and (screenshot) NOTE: This function
10831091
requires GPU access
10841092

1085-
IsImageReady( $image ) : bool
1093+
IsImageValid( $image ) : bool
10861094

10871095
Check if an image is ready
10881096

@@ -1356,15 +1364,15 @@ FUNCTIONS
13561364
Load texture for rendering (framebuffer) NOTE: This function requires
13571365
GPU access
13581366

1359-
IsTextureReady( $texture ) : bool
1367+
IsTextureValid( $texture ) : bool
13601368

1361-
Check if a texture is ready
1369+
Check if a texture is valid
13621370

13631371
UnloadTexture( $texture )
13641372

13651373
Unload texture from GPU memory (VRAM)
13661374

1367-
IsRenderTextureReady( $renderTexture ) : bool
1375+
IsReanderTextureValid( $renderTexture ) : bool
13681376

13691377
Check if a render texture is ready
13701378

@@ -1498,9 +1506,9 @@ FUNCTIONS
14981506

14991507
Load font from memory buffer, fileType refers to extension: i.e. '.ttf'
15001508

1501-
IsFontReady( $font ) : bool
1509+
IsFontValid( $font ) : bool
15021510

1503-
Check if a font is ready
1511+
Check if a font is valid.
15041512

15051513
LoadFontData( $fileData, $dataSize, $fontSize, $fontChars, $glyphCount,
15061514
$type ) : Raylib::FFI::GlyphInfo
@@ -1698,7 +1706,7 @@ FUNCTIONS
16981706

16991707
Load model from generated mesh (default material)
17001708

1701-
IsModelReady( $model ) : bool
1709+
IsModelValid( $model ) : bool
17021710

17031711
Check if an model is ready
17041712

@@ -1822,7 +1830,7 @@ FUNCTIONS
18221830
Load default material (Supports: Diffuse Maps, Specular Maps, Normal
18231831
Maps)
18241832

1825-
IsMaterialReady( $material ) : bool
1833+
IsMaterialValid( $material ) : bool
18261834

18271835
Check if a material is ready
18281836

@@ -1901,7 +1909,7 @@ FUNCTIONS
19011909

19021910
Close the audio device and context
19031911

1904-
IsAudioDeviceReady() : bool
1912+
IsAudioDeviceValid() : bool
19051913

19061914
Check if audio device has been initialized successfully
19071915

@@ -1934,7 +1942,7 @@ FUNCTIONS
19341942
Create a new sound that shares the same sound data as another existing
19351943
sound
19361944

1937-
IsSoundReady( $sound ) : bool
1945+
IsSoundValid( $sound ) : bool
19381946

19391947
Check if a sound is ready
19401948

@@ -2015,7 +2023,7 @@ FUNCTIONS
20152023

20162024
Load music stream from data
20172025

2018-
IsMusicReady( $music ) : bool
2026+
IsMusicValid( $music ) : bool
20192027

20202028
Check if music stream is ready
20212029

@@ -2076,9 +2084,9 @@ FUNCTIONS
20762084

20772085
Load audio stream (to stream raw audio pcm data)
20782086

2079-
IsAudioStreamReady( $audioStream ) : bool
2087+
IsAudioStreamValid( $audioStream ) : bool
20802088

2081-
Check if an audio stream is ready
2089+
Check if an audio stream is valid
20822090

20832091
UnloadAudioStream( $audioStream )
20842092

@@ -2171,15 +2179,15 @@ POD ERRORS
21712179
Hey! The above document had some coding errors, which are explained
21722180
below:
21732181

2174-
Around line 2685:
2182+
Around line 2732:
21752183

21762184
Unknown directive: =head
21772185

2178-
Around line 2689:
2186+
Around line 2736:
21792187

21802188
Unknown directive: =head
21812189

2182-
Around line 2693:
2190+
Around line 2740:
21832191

21842192
Unknown directive: =head
21852193

cpanfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
requires 'perl' => '5.38.0';
2+
13
requires 'Module::Build::Tiny';
2-
requires 'Alien::raylib';
4+
requires 'Alien::raylib5';
35
requires 'Convert::Color';
46
requires 'FFI::C';
57
requires 'FFI::CheckLib';
6-
requires 'FFI::Platypus';
8+
requires 'FFI::Platypus' => '2.08';
79
requires 'File::Share';
810
requires 'builtin::Backport';

0 commit comments

Comments
 (0)