diff --git a/Raylib-cs/Raylib-cs.csproj b/Raylib-cs/Raylib-cs.csproj index 2b8a716..ce191c3 100644 --- a/Raylib-cs/Raylib-cs.csproj +++ b/Raylib-cs/Raylib-cs.csproj @@ -7,7 +7,6 @@ true false $(NoWarn);1591 - diff --git a/Raylib-cs/Raylib.cs b/Raylib-cs/Raylib.cs index 12ffbab..89e25cd 100644 --- a/Raylib-cs/Raylib.cs +++ b/Raylib-cs/Raylib.cs @@ -11,7 +11,7 @@ namespace Raylib_cs // Used by DllImport to load the native library. public const string nativeLibName = "raylib"; - public const string RAYLIB_VERSION = "3.7"; + public const string RAYLIB_VERSION = "4.0"; public const float DEG2RAD = MathF.PI / 180.0f; public const float RAD2DEG = 180.0f / MathF.PI; diff --git a/Raylib-cs/types/Audio.cs b/Raylib-cs/types/Audio.cs index a6a11d5..5709ee5 100644 --- a/Raylib-cs/types/Audio.cs +++ b/Raylib-cs/types/Audio.cs @@ -3,7 +3,9 @@ using System.Runtime.InteropServices; namespace Raylib_cs { - /// Wave type, defines audio wave data + /// + /// Wave type, defines audio wave data + /// [StructLayout(LayoutKind.Sequential)] public struct Wave { @@ -33,8 +35,10 @@ namespace Raylib_cs public IntPtr data; } - /// Audio stream type - /// NOTE: Useful to create custom audio streams not bound to a specific file + /// + /// Audio stream type + /// NOTE: Useful to create custom audio streams not bound to a specific file + /// [StructLayout(LayoutKind.Sequential)] public struct AudioStream { @@ -59,7 +63,9 @@ namespace Raylib_cs public uint channels; } - /// Sound source type + /// + /// Sound source type + /// [StructLayout(LayoutKind.Sequential)] public struct Sound { @@ -74,8 +80,10 @@ namespace Raylib_cs public uint frameCount; } - /// Music stream type (audio file streaming from memory) - /// NOTE: Anything longer than ~10 seconds should be streamed + /// + /// Music stream type (audio file streaming from memory) + /// NOTE: Anything longer than ~10 seconds should be streamed + /// [StructLayout(LayoutKind.Sequential)] public struct Music { diff --git a/Raylib-cs/types/Camera.cs b/Raylib-cs/types/Camera.cs index 09f499e..c51ba46 100644 --- a/Raylib-cs/types/Camera.cs +++ b/Raylib-cs/types/Camera.cs @@ -3,7 +3,9 @@ using System.Runtime.InteropServices; namespace Raylib_cs { - /// Camera2D, defines position/orientation in 2d space + /// + /// Camera2D, defines position/orientation in 2d space + /// [StructLayout(LayoutKind.Sequential)] public struct Camera2D { diff --git a/Raylib-cs/types/Color.cs b/Raylib-cs/types/Color.cs index 01ce6b5..243f8bd 100644 --- a/Raylib-cs/types/Color.cs +++ b/Raylib-cs/types/Color.cs @@ -1,5 +1,4 @@ using System; -using System.Numerics; using System.Runtime.InteropServices; namespace Raylib_cs diff --git a/Raylib-cs/types/Image.cs b/Raylib-cs/types/Image.cs index 4e77382..e5e1f9f 100644 --- a/Raylib-cs/types/Image.cs +++ b/Raylib-cs/types/Image.cs @@ -114,9 +114,7 @@ namespace Raylib_cs } /// - /// Image type, bpp always RGBA (32bit) - ///
- /// NOTE: Data stored in CPU memory (RAM) + /// Image, pixel data stored in CPU memory (RAM) ///
[StructLayout(LayoutKind.Sequential)] public struct Image diff --git a/Raylib-cs/types/Model.cs b/Raylib-cs/types/Model.cs index 6d44978..91638d3 100644 --- a/Raylib-cs/types/Model.cs +++ b/Raylib-cs/types/Model.cs @@ -73,7 +73,9 @@ namespace Raylib_cs public IntPtr bindPose; } - /// Model animation + /// + /// Model animation + /// [StructLayout(LayoutKind.Sequential)] public struct ModelAnimation { diff --git a/Raylib-cs/types/Shapes.cs b/Raylib-cs/types/Shapes.cs index 15684c6..07a292c 100644 --- a/Raylib-cs/types/Shapes.cs +++ b/Raylib-cs/types/Shapes.cs @@ -44,7 +44,9 @@ namespace Raylib_cs } } - /// Ray, ray for raycasting + /// + /// Ray, ray for raycasting + /// [StructLayout(LayoutKind.Sequential)] public struct Ray { @@ -65,7 +67,9 @@ namespace Raylib_cs } } - /// Raycast hit information + /// + /// Raycast hit information + /// [StructLayout(LayoutKind.Sequential)] public struct RayCollision {