Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to raylib 5.5 #279

Merged
merged 73 commits into from
Dec 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
73020a5
Update raylib and Raylib-cs version numbers
JupiterRider Dec 3, 2024
1479a4c
Update System.Numerics.Vectors from 4.5.0 to 4.6.0
JupiterRider Dec 3, 2024
d87bf1a
Update README info about version
JupiterRider Dec 3, 2024
0f083d9
add new fields to Mesh type
JupiterRider Dec 3, 2024
82cda76
update Ray.Direction description
JupiterRider Dec 3, 2024
f3cc309
VrDeviceInfo.VScreenCenter has been removed
JupiterRider Dec 3, 2024
5adcfea
KeyboardKey.Menu value changed
JupiterRider Dec 3, 2024
76e6813
GamepadButton description corrected
JupiterRider Dec 3, 2024
daceda8
ShaderLocationIndex enum extended
JupiterRider Dec 3, 2024
8bb7ea3
CubemapLayout.Panorama removed
JupiterRider Dec 3, 2024
3ef16c7
some documentation comments updated
JupiterRider Dec 3, 2024
3545e42
add GetClipboardImage method
JupiterRider Dec 3, 2024
4095b22
IsShaderReady renamed
JupiterRider Dec 3, 2024
315b013
GetMouseRay is GetScreenToWorldRay now
JupiterRider Dec 3, 2024
1ac2252
GetScreenToWorldRayEx method added
JupiterRider Dec 3, 2024
3504c47
MakeDirectory method added
JupiterRider Dec 3, 2024
cf49aea
IsFileNameValid method added
JupiterRider Dec 3, 2024
af2cd9d
LoadDirectoryFilesEx documentation updated
JupiterRider Dec 3, 2024
9827436
hash methods added
JupiterRider Dec 3, 2024
60fd5d9
AutomationEvent and AutomationEventList structs added
JupiterRider Dec 3, 2024
1a9973b
AutomationEvent methods added
JupiterRider Dec 3, 2024
c7cedab
fix examples to build
JupiterRider Dec 3, 2024
5586fca
SetGamepadVibration method added
JupiterRider Dec 6, 2024
0e7f705
Update GetGestureHoldDuration() documentation
JupiterRider Dec 6, 2024
5308b54
GetShapesTexture() and GetShapesTextureRectangle() added
JupiterRider Dec 6, 2024
a930b4d
DrawPixel and DrawPixelV documentation updated
JupiterRider Dec 6, 2024
517ef2e
draw methods parameter names improved
JupiterRider Dec 6, 2024
b331e88
DrawRectangleRoundedLines method updated and DrawRectangleRoundedLine…
JupiterRider Dec 6, 2024
aa272a7
CheckCollisionCircleLine method added
JupiterRider Dec 6, 2024
5e137ce
LoadImageSvg() has been removed
JupiterRider Dec 6, 2024
a1686ff
IsImageReady renamed
JupiterRider Dec 6, 2024
4c4fef3
ImageFromChannel added
JupiterRider Dec 6, 2024
0997956
ImageKernelConvolution added
JupiterRider Dec 6, 2024
ed99ded
doc comments fixed and new draw methods added
JupiterRider Dec 6, 2024
f57f400
comment fixed
JupiterRider Dec 6, 2024
81b758d
DrawRectangleRounded example fixed
JupiterRider Dec 6, 2024
37f5f64
IsTextureReady renamed
JupiterRider Dec 6, 2024
7a34905
IsRenderTextureReady renamed
JupiterRider Dec 6, 2024
c36c4b6
ColorToInt XML comment updated
JupiterRider Dec 6, 2024
8325eec
ColorLerp added
JupiterRider Dec 6, 2024
8719c30
LoadFontEx XML comment updated
JupiterRider Dec 6, 2024
867f66d
IsFontReady renamed
JupiterRider Dec 6, 2024
b437273
new Text methods added
JupiterRider Dec 6, 2024
2be652e
IsModelReady renamed
JupiterRider Dec 6, 2024
01fd149
DrawModelPoints* methods added
JupiterRider Dec 6, 2024
bb5ff58
DrawBillboard parameter name updated
JupiterRider Dec 6, 2024
5ee9ca3
ExportMeshAsCode added
JupiterRider Dec 6, 2024
5b6874f
IsMaterialReady renamed
JupiterRider Dec 6, 2024
b611cf7
UpdateModelAnimation XML doc updated
JupiterRider Dec 6, 2024
9c24eb6
UpdateModelAnimationBones added
JupiterRider Dec 6, 2024
821dea1
IsWaveReady renamed
JupiterRider Dec 6, 2024
8ea7a93
IsSoundReady renamed
JupiterRider Dec 6, 2024
8f3263c
WaveCrop method updated
JupiterRider Dec 6, 2024
10b734c
IsMusicReady renamed
JupiterRider Dec 6, 2024
9d3a779
IsAudioStreamReady renamed
JupiterRider Dec 6, 2024
2f1929b
VertexBuffer struct updated
JupiterRider Dec 6, 2024
f4b463b
enum ShaderUniformDataType extended
JupiterRider Dec 6, 2024
886515f
SetClipPlanes, GetCullDistanceNear and GetCullDistanceFar added
JupiterRider Dec 6, 2024
41a6f1b
GetActiveFramebuffer added
JupiterRider Dec 6, 2024
d5f5abd
BindFramebuffer added
JupiterRider Dec 6, 2024
2b95f4e
ColorMask added
JupiterRider Dec 6, 2024
22146e9
SetVertexAttribute updated
JupiterRider Dec 6, 2024
18132b2
LoadTextureCubemap updated
JupiterRider Dec 6, 2024
bac68f1
LoadFramebuffer updated
JupiterRider Dec 6, 2024
a172928
SetUniformMatrices added
JupiterRider Dec 6, 2024
12bc8bf
extra file for rlgl utils added (inkl. first member SetUniformMatrices)
JupiterRider Dec 6, 2024
5fc0161
Vector2Refract added
JupiterRider Dec 6, 2024
39aba77
Vector3MoveTowards added
JupiterRider Dec 6, 2024
b05d941
Vector3CubicHermite added
JupiterRider Dec 6, 2024
ddec2e8
MatrixFrustum updated
JupiterRider Dec 6, 2024
8455bc7
QuaternionCubicHermiteSpline added
JupiterRider Dec 6, 2024
8b641d4
examples fixed
JupiterRider Dec 6, 2024
b6ce2bd
Merge branch 'master' into raylib_55
chrisdill Dec 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Examples/Core/Picking3D.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static int Main()
{
if (!collision.Hit)
{
ray = GetMouseRay(GetMousePosition(), camera);
ray = GetScreenToWorldRay(GetMousePosition(), camera);

// Check collision between ray and box
BoundingBox box = new(
Expand All @@ -68,7 +68,7 @@ public static int Main()
collision.Hit = false;
}

ray = GetMouseRay(GetMousePosition(), camera);
ray = GetScreenToWorldRay(GetMousePosition(), camera);
}
//----------------------------------------------------------------------------------

Expand Down Expand Up @@ -119,4 +119,3 @@ public static int Main()
return 0;
}
}

2 changes: 0 additions & 2 deletions Examples/Core/VrSimulator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public static int Main()
VResolution = 1200,
HScreenSize = 0.133793f,
VScreenSize = 0.0669f,
VScreenCenter = 0.04678f,
EyeToScreenDistance = 0.041f,
LensSeparationDistance = 0.07f,
InterpupillaryDistance = 0.07f,
Expand Down Expand Up @@ -188,4 +187,3 @@ public static int Main()
return 0;
}
}

2 changes: 1 addition & 1 deletion Examples/Models/MeshPicking.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public unsafe static int Main()
Color cursorColor = Color.White;

// Get ray and test against objects
ray = GetMouseRay(GetMousePosition(), camera);
ray = GetScreenToWorldRay(GetMousePosition(), camera);

// Check ray collision aginst ground quad
RayCollision groundHitInfo = GetRayCollisionQuad(ray, g0, g1, g2, g3);
Expand Down
2 changes: 1 addition & 1 deletion Examples/Models/ModelLoading.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public unsafe static int Main()
if (IsMouseButtonPressed(MouseButton.Left))
{
// Check collision between ray and box
if (GetRayCollisionBox(GetMouseRay(GetMousePosition(), camera), bounds).Hit)
if (GetRayCollisionBox(GetScreenToWorldRay(GetMousePosition(), camera), bounds).Hit)
{
selected = !selected;
}
Expand Down
4 changes: 2 additions & 2 deletions Examples/Models/SkyboxDemo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,9 @@ private static unsafe Texture2D GenTextureCubemap(Shader shader, Texture2D panor
// STEP 1: Setup framebuffer
//------------------------------------------------------------------------------------------
uint rbo = Rlgl.LoadTextureDepth(size, size, true);
cubemap.Id = Rlgl.LoadTextureCubemap(null, size, format);
cubemap.Id = Rlgl.LoadTextureCubemap(null, size, format, 1);

uint fbo = Rlgl.LoadFramebuffer(size, size);
uint fbo = Rlgl.LoadFramebuffer();
Rlgl.FramebufferAttach(
fbo,
rbo,
Expand Down
2 changes: 1 addition & 1 deletion Examples/Shaders/HybridRender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ private static unsafe RenderTexture2D LoadRenderTextureDepthTex(int width, int h
RenderTexture2D target = new();

// Load an empty framebuffer
target.Id = Rlgl.LoadFramebuffer(width, height);
target.Id = Rlgl.LoadFramebuffer();

if (target.Id > 0)
{
Expand Down
2 changes: 1 addition & 1 deletion Examples/Shaders/WriteDepth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ private static unsafe RenderTexture2D LoadRenderTextureDepthTex(int width, int h
RenderTexture2D target = new();

// Load an empty framebuffer
target.Id = Rlgl.LoadFramebuffer(width, height);
target.Id = Rlgl.LoadFramebuffer();

if (target.Id > 0)
{
Expand Down
2 changes: 1 addition & 1 deletion Examples/Shapes/DrawRectangleRounded.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public static int Main()
}
if (drawRoundedLines)
{
DrawRectangleRoundedLines(rec, roundness, segments, (float)lineThick, ColorAlpha(Color.Maroon, 0.4f));
DrawRectangleRoundedLinesEx(rec, roundness, segments, (float)lineThick, ColorAlpha(Color.Maroon, 0.4f));
}

// Draw GUI controls
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ C# bindings for raylib, a simple and easy-to-use library to learn videogames pro
[![GitHub stars](https://img.shields.io/github/stars/chrisdill/raylib-cs?style=social)](https://github.com/chrisdill/raylib-cs/stargazers)
[![Build](https://github.com/chrisdill/raylib-cs/workflows/Build/badge.svg)](https://github.com/chrisdill/raylib-cs/actions?query=workflow%3ABuild)

Raylib-cs targets net6.0 and uses the [official 5.0 release](https://github.com/raysan5/raylib/releases/tag/5.0) to build the native libraries.
Raylib-cs targets net6.0 and uses the [official 5.5 release](https://github.com/raysan5/raylib/releases/tag/5.5) to build the native libraries.

## Status

Expand Down
8 changes: 4 additions & 4 deletions Raylib-cs/Build.props
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<Project>

<PropertyGroup>
<TargetRaylibTag>5.0</TargetRaylibTag>
<Version>6.1.1</Version>
<PackageVersion>6.1.1</PackageVersion>
<TargetRaylibTag>5.5</TargetRaylibTag>
<Version>7.0.0</Version>
<PackageVersion>7.0.0</PackageVersion>
</PropertyGroup>

</Project>
</Project>
2 changes: 1 addition & 1 deletion Raylib-cs/Raylib-cs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="System.Numerics.Vectors" Version="4.5.0" />
<PackageReference Include="System.Numerics.Vectors" Version="4.6.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/>
</ItemGroup>

Expand Down
Loading
Loading