Skip to content

Commit 8c54f82

Browse files
committed
chore: update submodules, prerelease tasks
1 parent 44a0607 commit 8c54f82

File tree

13 files changed

+176
-103
lines changed

13 files changed

+176
-103
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ Changes ported from the upstream raylib code are not mentioned unless they are b
88

99
h-raylib's version numbers do not follow the usual format. The first two numbers in the version track the underlying C raylib version. For example, `5.1.x.x` versions use raylib 5.1 under the hood. The third number represents breaking changes (renamed/deleted functions or modules). The last number represents non-breaking changes (new functions or modules, bug fixes, etc). The safest version bound format to use is `h-raylib >=x.y.z.w && <x.y.(z+1)` (instead of the usual `^>=` bound).
1010

11+
## Version 5.5.2.0
12+
_21 October 2024_
13+
14+
- **BREAKING CHANGE**: `is*Ready` functions renamed to `is*Valid` (upstream change in raylib)
15+
- **BREAKING CHANGE**: `setGamepadVibration` takes a fourth argument, `duration` (upstream change in raylib)
16+
- Loosened the version bound on `base`
17+
1118
## Version 5.5.1.0
1219
_11 October 2024_
1320

default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
}:
44
mkDerivation {
55
pname = "h-raylib";
6-
version = "5.5.1.0";
6+
version = "5.5.2.0";
77
src = ./.;
88
isLibrary = true;
99
isExecutable = buildExamples;

flake.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
forAllSystems' = nixpkgs.lib.genAttrs;
1010
forAllSystems = forAllSystems' supportedSystems;
1111

12-
raylibRev = "f5328a9bb63a0e0eca7dead15cfa01a3ec1417c2";
13-
raylibHash = "sha256-gAv1jfMdbKWnlIqqBddVn+WE0BOIARMmagpK61bxVnU=";
12+
raylibRev = "2a0963ce0936abe0cd3ec32882638d860e435d16";
13+
raylibHash = "sha256-4p3nq04irS8AFojH88Bh1r8KiOjQhZf7nFmQhf1EDU8=";
1414
rayguiRev = "1e03efca48c50c5ea4b4a053d5bf04bad58d3e43";
1515
rayguiHash = "sha256-PzQZxCz63EPd7sVFBYY0T1s9jA5kOAxF9K4ojRoIMz4=";
1616

h-raylib.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 2.4
22
name: h-raylib
3-
version: 5.5.1.0
3+
version: 5.5.2.0
44
synopsis: Raylib bindings for Haskell
55
category: graphics
66
description:
@@ -239,7 +239,7 @@ library
239239
Raylib.Internal.Web.Processable
240240

241241
build-depends:
242-
, base >=4.0 && <4.20
242+
, base >=4.0 && <4.21
243243
, bytestring >=0.11.0 && <0.13
244244
, containers >=0.6.0 && <0.7.0
245245
, exceptions >=0.10.4 && <0.10.8

lib/rl_bindings.c

Lines changed: 39 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ RLBIND Shader *LoadShaderFromMemory_(char *a, char *b)
8787
return ptr;
8888
}
8989

90-
RLBIND bool IsShaderReady_(Shader *a)
90+
RLBIND bool IsShaderValid_(Shader *a)
9191
{
92-
return IsShaderReady(*a);
92+
return IsShaderValid(*a);
9393
}
9494

9595
RLBIND int GetShaderLocation_(Shader *a, char *b)
@@ -678,9 +678,9 @@ RLBIND Image *LoadImageFromScreen_()
678678
return ptr;
679679
}
680680

681-
RLBIND bool IsImageReady_(Image *a)
681+
RLBIND bool IsImageValid_(Image *a)
682682
{
683-
return IsImageReady(*a);
683+
return IsImageValid(*a);
684684
}
685685

686686
RLBIND void UnloadImage_(Image *a)
@@ -993,19 +993,19 @@ RLBIND RenderTexture *LoadRenderTexture_(int a, int b)
993993
return ptr;
994994
}
995995

996-
RLBIND bool IsTextureReady_(Texture *a)
996+
RLBIND bool IsTextureValid_(Texture *a)
997997
{
998-
return IsTextureReady(*a);
998+
return IsTextureValid(*a);
999999
}
10001000

10011001
RLBIND void UnloadTexture_(Texture *a)
10021002
{
10031003
UnloadTexture(*a);
10041004
}
10051005

1006-
RLBIND bool IsRenderTextureReady_(RenderTexture *a)
1006+
RLBIND bool IsRenderTextureValid_(RenderTexture *a)
10071007
{
1008-
return IsRenderTextureReady(*a);
1008+
return IsRenderTextureValid(*a);
10091009
}
10101010

10111011
RLBIND void UnloadRenderTexture_(RenderTexture *a)
@@ -1227,9 +1227,9 @@ RLBIND Image *GenImageFontAtlas_(GlyphInfo *a, Rectangle **b, int c, int d, int
12271227
return ptr;
12281228
}
12291229

1230-
RLBIND bool IsFontReady_(Font *a)
1230+
RLBIND bool IsFontValid_(Font *a)
12311231
{
1232-
return IsFontReady(*a);
1232+
return IsFontValid(*a);
12331233
}
12341234

12351235
RLBIND void UnloadFont_(Font *a)
@@ -1407,9 +1407,9 @@ RLBIND Model *LoadModelFromMesh_(Mesh *a)
14071407
return ptr;
14081408
}
14091409

1410-
RLBIND bool IsModelReady_(Model *a)
1410+
RLBIND bool IsModelValid_(Model *a)
14111411
{
1412-
return IsModelReady(*a);
1412+
return IsModelValid(*a);
14131413
}
14141414

14151415
RLBIND void UnloadModel_(Model *a)
@@ -1595,9 +1595,9 @@ RLBIND Material *LoadMaterialDefault_()
15951595
return ptr;
15961596
}
15971597

1598-
RLBIND bool IsMaterialReady_(Material *a)
1598+
RLBIND bool IsMaterialValid_(Material *a)
15991599
{
1600-
return IsMaterialReady(*a);
1600+
return IsMaterialValid(*a);
16011601
}
16021602

16031603
RLBIND void UnloadMaterial_(Material *a)
@@ -1720,19 +1720,19 @@ RLBIND void UpdateSound_(Sound *a, const void *b, int c)
17201720
UpdateSound(*a, b, c);
17211721
}
17221722

1723-
RLBIND bool IsWaveReady_(Wave *a)
1723+
RLBIND bool IsWaveValid_(Wave *a)
17241724
{
1725-
return IsWaveReady(*a);
1725+
return IsWaveValid(*a);
17261726
}
17271727

17281728
RLBIND void UnloadWave_(Wave *a)
17291729
{
17301730
UnloadWave(*a);
17311731
}
17321732

1733-
RLBIND bool IsSoundReady_(Sound *a)
1733+
RLBIND bool IsSoundValid_(Sound *a)
17341734
{
1735-
return IsSoundReady(*a);
1735+
return IsSoundValid(*a);
17361736
}
17371737

17381738
RLBIND void UnloadSound_(Sound *a)
@@ -1821,9 +1821,9 @@ RLBIND Music *LoadMusicStreamFromMemory_(char *a, unsigned char *b, int c)
18211821
return ptr;
18221822
}
18231823

1824-
RLBIND bool IsMusicReady_(Music *a)
1824+
RLBIND bool IsMusicValid_(Music *a)
18251825
{
1826-
return IsMusicReady(*a);
1826+
return IsMusicValid(*a);
18271827
}
18281828

18291829
RLBIND void UnloadMusicStream_(Music *a)
@@ -1898,9 +1898,9 @@ RLBIND AudioStream *LoadAudioStream_(unsigned int a, unsigned int b, unsigned in
18981898
return ptr;
18991899
}
19001900

1901-
RLBIND bool IsAudioStreamReady_(AudioStream *a)
1901+
RLBIND bool IsAudioStreamValid_(AudioStream *a)
19021902
{
1903-
return IsAudioStreamReady(*a);
1903+
return IsAudioStreamValid(*a);
19041904
}
19051905

19061906
RLBIND void UnloadAudioStream_(AudioStream *a)
@@ -2554,6 +2554,21 @@ RLBIND unsigned char *DecodeDataBase64_(const unsigned char *a, int *b)
25542554
return DecodeDataBase64(a, b);
25552555
}
25562556

2557+
RLBIND unsigned int ComputeCRC32_(unsigned char *a, int b)
2558+
{
2559+
return ComputeCRC32(a, b);
2560+
}
2561+
2562+
RLBIND unsigned int *ComputeMD5_(unsigned char *a, int b)
2563+
{
2564+
return ComputeMD5(a, b);
2565+
}
2566+
2567+
RLBIND unsigned int *ComputeSHA1_(unsigned char *a, int b)
2568+
{
2569+
return ComputeSHA1(a, b);
2570+
}
2571+
25572572
RLBIND void SetAutomationEventList_(AutomationEventList *a)
25582573
{
25592574
SetAutomationEventList(a);
@@ -2664,9 +2679,9 @@ RLBIND int SetGamepadMappings_(const char *a)
26642679
return SetGamepadMappings(a);
26652680
}
26662681

2667-
RLBIND void SetGamepadVibration_(int a, float b, float c)
2682+
RLBIND void SetGamepadVibration_(int a, float b, float c, float d)
26682683
{
2669-
SetGamepadVibration(a, b, c);
2684+
SetGamepadVibration(a, b, c, d);
26702685
}
26712686

26722687
RLBIND bool IsMouseButtonPressed_(int a)

lib/rl_bindings.h

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Shader *LoadShader_(char *a, char *b);
4040

4141
Shader *LoadShaderFromMemory_(char *a, char *b);
4242

43-
bool IsShaderReady_(Shader *a);
43+
bool IsShaderValid_(Shader *a);
4444

4545
int GetShaderLocation_(Shader *a, char *b);
4646

@@ -250,7 +250,7 @@ Image *LoadImageFromTexture_(Texture *a);
250250

251251
Image *LoadImageFromScreen_();
252252

253-
bool IsImageReady_(Image *a);
253+
bool IsImageValid_(Image *a);
254254

255255
void UnloadImage_(Image *a);
256256

@@ -360,11 +360,11 @@ Texture *LoadTextureCubemap_(Image *a, int b);
360360

361361
RenderTexture *LoadRenderTexture_(int a, int b);
362362

363-
bool IsTextureReady_(Texture *a);
363+
bool IsTextureValid_(Texture *a);
364364

365365
void UnloadTexture_(Texture *a);
366366

367-
bool IsRenderTextureReady_(RenderTexture *a);
367+
bool IsRenderTextureValid_(RenderTexture *a);
368368

369369
void UnloadRenderTexture_(RenderTexture *a);
370370

@@ -426,7 +426,7 @@ Font *LoadFontFromMemory_(char *a, unsigned char *b, int c, int d, int *e, int f
426426

427427
Image *GenImageFontAtlas_(GlyphInfo *a, Rectangle **b, int c, int d, int e, int f);
428428

429-
bool IsFontReady_(Font *a);
429+
bool IsFontValid_(Font *a);
430430

431431
void UnloadFont_(Font *a);
432432

@@ -498,7 +498,7 @@ Model *LoadModel_(char *a);
498498

499499
Model *LoadModelFromMesh_(Mesh *a);
500500

501-
bool IsModelReady_(Model *a);
501+
bool IsModelValid_(Model *a);
502502

503503
void UnloadModel_(Model *a);
504504

@@ -562,7 +562,7 @@ Mesh *GenMeshCubicmap_(Image *a, Vector3 *b);
562562

563563
Material *LoadMaterialDefault_();
564564

565-
bool IsMaterialReady_(Material *a);
565+
bool IsMaterialValid_(Material *a);
566566

567567
void UnloadMaterial_(Material *a);
568568

@@ -604,11 +604,11 @@ Sound *LoadSoundAlias_(Sound *a);
604604

605605
void UpdateSound_(Sound *a, const void *b, int c);
606606

607-
bool IsWaveReady_(Wave *a);
607+
bool IsWaveValid_(Wave *a);
608608

609609
void UnloadWave_(Wave *a);
610610

611-
bool IsSoundReady_(Sound *a);
611+
bool IsSoundValid_(Sound *a);
612612

613613
void UnloadSound_(Sound *a);
614614

@@ -642,7 +642,7 @@ Music *LoadMusicStream_(char *a);
642642

643643
Music *LoadMusicStreamFromMemory_(char *a, unsigned char *b, int c);
644644

645-
bool IsMusicReady_(Music *a);
645+
bool IsMusicValid_(Music *a);
646646

647647
void UnloadMusicStream_(Music *a);
648648

@@ -672,7 +672,7 @@ float GetMusicTimePlayed_(Music *a);
672672

673673
AudioStream *LoadAudioStream_(unsigned int a, unsigned int b, unsigned int c);
674674

675-
bool IsAudioStreamReady_(AudioStream *a);
675+
bool IsAudioStreamValid_(AudioStream *a);
676676

677677
void UnloadAudioStream_(AudioStream *a);
678678

@@ -930,6 +930,12 @@ char *EncodeDataBase64_(const unsigned char *a, int b, int *c);
930930

931931
unsigned char *DecodeDataBase64_(const unsigned char *a, int *b);
932932

933+
unsigned int ComputeCRC32_(unsigned char *a, int b);
934+
935+
unsigned int *ComputeMD5_(unsigned char *a, int b);
936+
937+
unsigned int *ComputeSHA1_(unsigned char *a, int b);
938+
933939
void SetAutomationEventList_(AutomationEventList *a);
934940

935941
void SetAutomationEventBaseFrame_(int a);
@@ -974,7 +980,7 @@ float GetGamepadAxisMovement_(int a, int b);
974980

975981
int SetGamepadMappings_(const char *a);
976982

977-
void SetGamepadVibration_(int a, float b, float c);
983+
void SetGamepadVibration_(int a, float b, float c, float d);
978984

979985
bool IsMouseButtonPressed_(int a);
980986

0 commit comments

Comments
 (0)