From 2354d4a736a7c26fb3d317a79902ca5f484bcfc7 Mon Sep 17 00:00:00 2001 From: Chris Dill Date: Wed, 15 Apr 2026 20:09:44 +0100 Subject: [PATCH] Update version and bindings --- Raylib-cs/Build.props | 4 ++-- Raylib-cs/interop/Raylib.cs | 27 ++------------------------- 2 files changed, 4 insertions(+), 27 deletions(-) diff --git a/Raylib-cs/Build.props b/Raylib-cs/Build.props index d3da2b2..8f2213c 100644 --- a/Raylib-cs/Build.props +++ b/Raylib-cs/Build.props @@ -1,7 +1,7 @@ 5.5 - 7.0.2 - 7.0.2 + 8.0.0 + 8.0.0 diff --git a/Raylib-cs/interop/Raylib.cs b/Raylib-cs/interop/Raylib.cs index db56c5b..b1149fb 100644 --- a/Raylib-cs/interop/Raylib.cs +++ b/Raylib-cs/interop/Raylib.cs @@ -1,4 +1,5 @@ using System.Runtime.InteropServices; +using System.Runtime.Versioning; using System.Numerics; using System.Security; using System; @@ -211,6 +212,7 @@ public static unsafe partial class Raylib public static extern sbyte* GetClipboardText(); /// Get clipboard image content (only works on Windows) + [UnsupportedOSPlatform("browser")] [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern Image GetClipboardImage(); @@ -1054,27 +1056,6 @@ public static unsafe partial class Raylib [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern void DrawLineBezier(Vector2 startPos, Vector2 endPos, float thick, Color color); - /// Draw line using quadratic bezier curves with a control point - [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] - public static extern void DrawLineBezierQuad( - Vector2 startPos, - Vector2 endPos, - Vector2 controlPos, - float thick, - Color color - ); - - /// Draw line using cubic bezier curves with 2 control points - [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] - public static extern void DrawLineBezierCubic( - Vector2 startPos, - Vector2 endPos, - Vector2 startControlPos, - Vector2 endControlPos, - float thick, - Color color - ); - /// Draw lines sequence [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern void DrawLineStrip(Vector2* points, int pointCount, Color color); @@ -2761,10 +2742,6 @@ public static unsafe partial class Raylib [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern void ResumeSound(Sound sound); - /// Get number of sounds playing in the multichannel - [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] - public static extern int GetSoundsPlaying(); - /// Check if a sound is currently playing [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern CBool IsSoundPlaying(Sound sound);