Skip to content

Commit a5874a8

Browse files
authored
Update to Raylib-v5.5
Changed raylib source to latest 5.5 release
2 parents 74f2aa1 + 94cdc22 commit a5874a8

File tree

26 files changed

+312
-137
lines changed

26 files changed

+312
-137
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
branches: [ "main" ]
1010

1111
env:
12-
raylib_version: 'a8240722c61d216d96c3f2cab27426ee7b7a3919'
12+
raylib_version: '5.5'
1313

1414
jobs:
1515

@@ -34,7 +34,7 @@ jobs:
3434
- name: Build Raylib
3535
shell: bash
3636
run: |
37-
curl -Lso raylib.zip https://github.com/raysan5/raylib/archive/${{ env.raylib_version }}.zip
37+
curl -Lso raylib.zip https://github.com/raysan5/raylib/archive/refs/tags/${{ env.raylib_version }}.zip
3838
unzip -qq raylib.zip
3939
cmake -S raylib-${{ env.raylib_version }} \
4040
-A ${{ matrix.name }} \
@@ -93,7 +93,7 @@ jobs:
9393
# Build Raylib
9494
- name: Build Raylib
9595
run: |
96-
curl -Lso raylib.zip https://github.com/raysan5/raylib/archive/${{ env.raylib_version }}.zip
96+
curl -Lso raylib.zip https://github.com/raysan5/raylib/archive/refs/tags/${{ env.raylib_version }}.zip
9797
unzip -qq raylib.zip
9898
cmake -S raylib-${{ env.raylib_version }} \
9999
-B native \
@@ -134,7 +134,7 @@ jobs:
134134
# Build Raylib
135135
- name: Build Raylib
136136
run: |
137-
curl -Lso raylib.zip https://github.com/raysan5/raylib/archive/${{ env.raylib_version }}.zip
137+
curl -Lso raylib.zip https://github.com/raysan5/raylib/archive/refs/tags/${{ env.raylib_version }}.zip
138138
unzip -qq raylib.zip
139139
cmake -S raylib-${{ env.raylib_version }} \
140140
-B native \

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Unlock advanced rendering capabilities with [Bliss](https://github.com/MrScautHD
3030

3131
# 🪙 Installation - [Nuget](https://www.nuget.org/packages/Raylib-CSharp)
3232
```
33-
dotnet add package Raylib-CSharp --version 4.1.9
33+
dotnet add package Raylib-CSharp --version 5.0.0
3434
```
3535

3636
# 📖 [Installation - From source]
@@ -73,7 +73,7 @@ dotnet add package Raylib-CSharp --version 4.1.9
7373
| .NET 5.0, 6.0 / C# 10 | .NET 8.0 / C# 12 |
7474
| Released 2018-07 | Released 2024-05 |
7575
| License ZLib | License MIT |
76-
| Raylib 5.0 | Raylib 5.1-dev |
76+
| Raylib 5.0 | Raylib 5.5 |
7777

7878
# ✍️ Acknowledgement
7979
This library is available under the [MIT](https://choosealicense.com/licenses/mit) license.

src/Raylib-CSharp.Samples/CMake.props

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<RlVersion>a8240722c61d216d96c3f2cab27426ee7b7a3919</RlVersion>
3+
<RlVersion>5.5</RlVersion>
44
</PropertyGroup>
55

66
<PropertyGroup Condition="$([MSBuild]::IsOSPlatform('Windows'))">
@@ -15,11 +15,10 @@
1515
<RlName>libraylib.dylib</RlName>
1616
</PropertyGroup>
1717

18-
<!-- Todo: When "dev-5.1" release move back to "Tags" instead of "commits": "https://github.com/raysan5/raylib/archive/refs/tags/$(RlVersion).zip" -->
1918
<!-- Download Raylib -->
2019
<Target Name="DownloadRaylib" BeforeTargets="UnZipRaylib">
2120
<DownloadFile DestinationFolder="$(IntermediateOutputPath)"
22-
SourceUrl="https://github.com/raysan5/raylib/archive/$(RlVersion).zip"
21+
SourceUrl="https://github.com/raysan5/raylib/archive/refs/tags/$(RlVersion).zip"
2322
DestinationFileName="raylib-$(RlVersion).zip"
2423
Condition="!Exists('$(IntermediateOutputPath)raylib-$(RlVersion).zip')" />
2524
</Target>
@@ -58,4 +57,4 @@
5857
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
5958
</Content>
6059
</ItemGroup>
61-
</Project>
60+
</Project>

src/Raylib-CSharp.Test/CMake.props

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<RlVersion>a8240722c61d216d96c3f2cab27426ee7b7a3919</RlVersion>
3+
<RlVersion>5.5</RlVersion>
44
</PropertyGroup>
55

66
<PropertyGroup Condition="$([MSBuild]::IsOSPlatform('Windows'))">
@@ -15,11 +15,10 @@
1515
<RlName>libraylib.dylib</RlName>
1616
</PropertyGroup>
1717

18-
<!-- Todo: When "dev-5.1" release move back to "Tags" instead of "commits": "https://github.com/raysan5/raylib/archive/refs/tags/$(RlVersion).zip" -->
1918
<!-- Download Raylib -->
2019
<Target Name="DownloadRaylib" BeforeTargets="UnZipRaylib">
2120
<DownloadFile DestinationFolder="$(IntermediateOutputPath)"
22-
SourceUrl="https://github.com/raysan5/raylib/archive/$(RlVersion).zip"
21+
SourceUrl="https://github.com/raysan5/raylib/archive/refs/tags/$(RlVersion).zip"
2322
DestinationFileName="raylib-$(RlVersion).zip"
2423
Condition="!Exists('$(IntermediateOutputPath)raylib-$(RlVersion).zip')" />
2524
</Target>
@@ -58,4 +57,4 @@
5857
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
5958
</Content>
6059
</ItemGroup>
61-
</Project>
60+
</Project>

src/Raylib-CSharp.Test/Program.cs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Numerics;
2+
using System.Text;
23
using OpenTK.Graphics;
34
using Raylib_CSharp.Camera.Cam3D;
45
using Raylib_CSharp.Colors;
@@ -77,8 +78,12 @@
7778
Console.WriteLine(info.Length + "");
7879

7980
Image image = Font.GenImageAtlas(info, font.Recs, 18, 4, 0);
81+
Image clipboardImage = Window.GetClipboardImage(); //Not suported on all platforms
8082
Texture2D texture = Texture2D.LoadFromImage(image);
83+
Texture2D clipboardTexture = Texture2D.LoadFromImage(clipboardImage);
8184
image.Unload();
85+
clipboardImage.Unload();
86+
8287

8388
FileManager.UnloadFileData(fileData);
8489
TextManager.UnloadCodepoints(codepoints);
@@ -104,14 +109,26 @@
104109

105110
Font font2 = Font.GetDefault();
106111

107-
//if (font2.IsReady()) {
112+
//if (font2.IsValid()) {
108113
//
109114
//}
110115

111116
Image testImage = Image.GenColor(100, 100, Color.Green);
112117

113118
NativeBindingsContext context = new NativeBindingsContext();
114119
GLLoader.LoadBindings(context);
120+
Console.WriteLine($"Bones:{model.Meshes[0].BoneCount}");
121+
Console.WriteLine($"BoneMatrices:{model.Meshes[0].BoneMatrices[0]}");
122+
var dataToEncode = Encoding.ASCII.GetBytes("This is a test");
123+
Console.WriteLine($"CRC32 Checksum:{FileManager.ComputeCRC32(dataToEncode)}"); //As ISO-HDLC
124+
125+
uint[] md5Hash = FileManager.ComputeMD5(dataToEncode);
126+
string hexString = string.Join("", md5Hash.Select(x => x.ToString("x8")));
127+
Console.WriteLine($"MD5 Checksum: {hexString}");
128+
129+
uint[] sha1Hash = FileManager.ComputeSHA1(dataToEncode);
130+
hexString = string.Join("", sha1Hash.Select(x => x.ToString("x8")));
131+
Console.WriteLine($"SHA1 Checksum: {hexString}");
115132

116133
//Span<Matrix4x4> matrix = new(new Matrix4x4[1]);
117134
//matrix[1] = new Matrix4x4();
@@ -133,6 +150,7 @@
133150

134151
Graphics.DrawFPS(50, 50);
135152
Graphics.DrawTexture(texture, 10, 10, Color.White);
153+
Graphics.DrawTexture(clipboardTexture, 128, 128, Color.White);
136154

137155
Graphics.EndDrawing();
138156
}

0 commit comments

Comments
 (0)