Skip to content

Commit 6b3c7f1

Browse files
committed
Update raylib to latest version
Signed-off-by: Tomas Slusny <[email protected]>
1 parent 530e62f commit 6b3c7f1

File tree

7 files changed

+65
-28
lines changed

7 files changed

+65
-28
lines changed

lib/raylib

Submodule raylib updated 323 files

src/Raylib.NET/Enums/GuiIconName.cs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -237,22 +237,22 @@ public enum GuiIconName
237237
ICON_SLICING = 231,
238238
ICON_MANUAL_CONTROL = 232,
239239
ICON_COLLISION = 233,
240-
ICON_234 = 234,
241-
ICON_235 = 235,
242-
ICON_236 = 236,
243-
ICON_237 = 237,
244-
ICON_238 = 238,
245-
ICON_239 = 239,
246-
ICON_240 = 240,
247-
ICON_241 = 241,
248-
ICON_242 = 242,
249-
ICON_243 = 243,
250-
ICON_244 = 244,
251-
ICON_245 = 245,
252-
ICON_246 = 246,
253-
ICON_247 = 247,
254-
ICON_248 = 248,
255-
ICON_249 = 249,
240+
ICON_CIRCLE_ADD = 234,
241+
ICON_CIRCLE_ADD_FILL = 235,
242+
ICON_CIRCLE_WARNING = 236,
243+
ICON_CIRCLE_WARNING_FILL = 237,
244+
ICON_BOX_MORE = 238,
245+
ICON_BOX_MORE_FILL = 239,
246+
ICON_BOX_MINUS = 240,
247+
ICON_BOX_MINUS_FILL = 241,
248+
ICON_UNION = 242,
249+
ICON_INTERSECTION = 243,
250+
ICON_DIFFERENCE = 244,
251+
ICON_SPHERE = 245,
252+
ICON_CYLINDER = 246,
253+
ICON_CONE = 247,
254+
ICON_ELLIPSOID = 248,
255+
ICON_CAPSULE = 249,
256256
ICON_250 = 250,
257257
ICON_251 = 251,
258258
ICON_252 = 252,

src/Raylib.NET/Raylib.cs

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ public static unsafe partial class Raylib
10231023
/// </summary>
10241024
[LibraryImport(LIBRARY, StringMarshalling = StringMarshalling.Utf8)]
10251025
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
1026-
public static partial NativeBool ChangeDirectory(string dir);
1026+
public static partial NativeBool ChangeDirectory(string dirPath);
10271027

10281028
/// <summary>
10291029
/// Check if a given path is a file or a directory
@@ -1130,6 +1130,13 @@ public static unsafe partial class Raylib
11301130
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
11311131
public static unsafe partial uint* ComputeSHA1(byte* data, int dataSize);
11321132

1133+
/// <summary>
1134+
/// Compute SHA256 hash code, returns static int[8] (32 bytes)
1135+
/// </summary>
1136+
[LibraryImport(LIBRARY, StringMarshalling = StringMarshalling.Utf8)]
1137+
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
1138+
public static unsafe partial uint* ComputeSHA256(byte* data, int dataSize);
1139+
11331140
/// <summary>
11341141
/// Load automation events list from file, NULL for empty list, capacity = MAX_AUTOMATION_EVENTS
11351142
/// </summary>
@@ -1599,6 +1606,13 @@ public static unsafe partial class Raylib
15991606
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
16001607
public static partial void DrawLineBezier(Vector2 startPos, Vector2 endPos, float thick, Color color);
16011608

1609+
/// <summary>
1610+
/// Draw a dashed line
1611+
/// </summary>
1612+
[LibraryImport(LIBRARY, StringMarshalling = StringMarshalling.Utf8)]
1613+
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
1614+
public static partial void DrawLineDashed(Vector2 startPos, Vector2 endPos, int dashSize, int spaceSize, Color color);
1615+
16021616
/// <summary>
16031617
/// Draw a color-filled circle
16041618
/// </summary>
@@ -3812,7 +3826,7 @@ public static unsafe partial class Raylib
38123826
public static partial NativeBool IsSoundValid(Sound sound);
38133827

38143828
/// <summary>
3815-
/// Update sound buffer with new data (data and frame count should fit in sound)
3829+
/// Update sound buffer with new data (default data format: 32 bit float, stereo)
38163830
/// </summary>
38173831
[LibraryImport(LIBRARY, StringMarshalling = StringMarshalling.Utf8)]
38183832
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
@@ -3903,7 +3917,7 @@ public static unsafe partial class Raylib
39033917
public static partial void SetSoundPitch(Sound sound, float pitch);
39043918

39053919
/// <summary>
3906-
/// Set pan for a sound (0.5 is center)
3920+
/// Set pan for a sound (-1.0 left, 0.0 center, 1.0 right)
39073921
/// </summary>
39083922
[LibraryImport(LIBRARY, StringMarshalling = StringMarshalling.Utf8)]
39093923
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
@@ -4036,7 +4050,7 @@ public static unsafe partial class Raylib
40364050
public static partial void SetMusicPitch(Music music, float pitch);
40374051

40384052
/// <summary>
4039-
/// Set pan for a music (0.5 is center)
4053+
/// Set pan for a music (-1.0 left, 0.0 center, 1.0 right)
40404054
/// </summary>
40414055
[LibraryImport(LIBRARY, StringMarshalling = StringMarshalling.Utf8)]
40424056
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]

src/Raylib.NET/Raymath.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,8 +1025,17 @@ public static unsafe partial class Raymath
10251025
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
10261026
public static partial int QuaternionEquals(Vector4 p, Vector4 q);
10271027

1028+
/// <summary>
1029+
/// Compose a transformation matrix from rotational, translational and scaling components
1030+
/// TODO: This function is not following raymath conventions defined in header: NOT self-contained
1031+
/// </summary>
1032+
[LibraryImport(LIBRARY, StringMarshalling = StringMarshalling.Utf8)]
1033+
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
1034+
public static partial Matrix4x4 MatrixCompose(Vector3 translation, Vector4 rotation, Vector3 scale);
1035+
10281036
/// <summary>
10291037
/// Decompose a transformation matrix into its rotational, translational and scaling components and remove shear
1038+
/// TODO: This function is not following raymath conventions defined in header: NOT self-contained
10301039
/// </summary>
10311040
[LibraryImport(LIBRARY, StringMarshalling = StringMarshalling.Utf8)]
10321041
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]

src/Raylib.NET/Rlgl.cs

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,6 +1066,20 @@ public static unsafe partial class Rlgl
10661066
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
10671067
public static partial void UnloadFramebuffer(uint id);
10681068

1069+
/// <summary>
1070+
/// Copy framebuffer pixel data to internal buffer
1071+
/// </summary>
1072+
[LibraryImport(LIBRARY, EntryPoint = "rlCopyFramebuffer", StringMarshalling = StringMarshalling.Utf8)]
1073+
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
1074+
public static unsafe partial void CopyFramebuffer(int x, int y, int width, int height, int format, void* pixels);
1075+
1076+
/// <summary>
1077+
/// Resize internal framebuffer
1078+
/// </summary>
1079+
[LibraryImport(LIBRARY, EntryPoint = "rlResizeFramebuffer", StringMarshalling = StringMarshalling.Utf8)]
1080+
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
1081+
public static partial void ResizeFramebuffer(int width, int height);
1082+
10691083
/// <summary>
10701084
/// Load shader from code strings
10711085
/// </summary>
@@ -1095,14 +1109,14 @@ public static unsafe partial class Rlgl
10951109
public static partial void UnloadShaderProgram(uint id);
10961110

10971111
/// <summary>
1098-
/// Get shader location uniform
1112+
/// Get shader location uniform, requires shader program id
10991113
/// </summary>
11001114
[LibraryImport(LIBRARY, EntryPoint = "rlGetLocationUniform", StringMarshalling = StringMarshalling.Utf8)]
11011115
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
11021116
public static partial int GetLocationUniform(uint shaderId, string uniformName);
11031117

11041118
/// <summary>
1105-
/// Get shader location attribute
1119+
/// Get shader location attribute, requires shader program id
11061120
/// </summary>
11071121
[LibraryImport(LIBRARY, EntryPoint = "rlGetLocationAttrib", StringMarshalling = StringMarshalling.Utf8)]
11081122
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]

src/Raylib.NET/Types/Camera2D.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ namespace RaylibNET;
99
public partial struct Camera2D
1010
{
1111
/// <summary>
12-
/// Camera offset (displacement from target)
12+
/// Camera offset (screen space offset from window origin)
1313
/// </summary>
1414
public Vector2 Offset;
1515
/// <summary>
16-
/// Camera target (rotation and zoom origin)
16+
/// Camera target (world space target point that is mapped to screen space offset)
1717
/// </summary>
1818
public Vector2 Target;
1919
/// <summary>
20-
/// Camera rotation in degrees
20+
/// Camera rotation in degrees (pivots around target)
2121
/// </summary>
2222
public float Rotation;
2323
/// <summary>
24-
/// Camera zoom (scaling), should be 1.0f by default
24+
/// Camera zoom (scaling around target), must not be set to 0, set to 1.0f for no scale
2525
/// </summary>
2626
public float Zoom;
2727

0 commit comments

Comments
 (0)