Update version and bindings (#332)
This commit is contained in:
parent
723ef1b4b9
commit
d49c0f8474
3 changed files with 6 additions and 28 deletions
|
|
@ -90,7 +90,7 @@ public unsafe class TexturedCurve
|
||||||
{
|
{
|
||||||
if (showCurve)
|
if (showCurve)
|
||||||
{
|
{
|
||||||
DrawLineBezierCubic(
|
DrawSplineSegmentBezierCubic(
|
||||||
curveStartPosition,
|
curveStartPosition,
|
||||||
curveEndPosition,
|
curveEndPosition,
|
||||||
curveStartPositionTangent,
|
curveStartPositionTangent,
|
||||||
|
|
@ -102,6 +102,7 @@ public unsafe class TexturedCurve
|
||||||
|
|
||||||
// Draw the various control points and highlight where the mouse is
|
// Draw the various control points and highlight where the mouse is
|
||||||
DrawLineV(curveStartPosition, curveStartPositionTangent, Color.SkyBlue);
|
DrawLineV(curveStartPosition, curveStartPositionTangent, Color.SkyBlue);
|
||||||
|
DrawLineV(curveStartPositionTangent, curveEndPositionTangent, Fade(Color.LightGray, 0.4f));
|
||||||
DrawLineV(curveEndPosition, curveEndPositionTangent, Color.Purple);
|
DrawLineV(curveEndPosition, curveEndPositionTangent, Color.Purple);
|
||||||
Vector2 mouse = GetMousePosition();
|
Vector2 mouse = GetMousePosition();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<Project>
|
<Project>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetRaylibTag>5.5</TargetRaylibTag>
|
<TargetRaylibTag>5.5</TargetRaylibTag>
|
||||||
<Version>7.0.2</Version>
|
<Version>8.0.0</Version>
|
||||||
<PackageVersion>7.0.2</PackageVersion>
|
<PackageVersion>8.0.0</PackageVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
using System.Runtime.Versioning;
|
||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using System.Security;
|
using System.Security;
|
||||||
using System;
|
using System;
|
||||||
|
|
@ -211,6 +212,7 @@ public static unsafe partial class Raylib
|
||||||
public static extern sbyte* GetClipboardText();
|
public static extern sbyte* GetClipboardText();
|
||||||
|
|
||||||
/// <summary>Get clipboard image content (only works on Windows)</summary>
|
/// <summary>Get clipboard image content (only works on Windows)</summary>
|
||||||
|
[UnsupportedOSPlatform("browser")]
|
||||||
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern Image GetClipboardImage();
|
public static extern Image GetClipboardImage();
|
||||||
|
|
||||||
|
|
@ -1054,27 +1056,6 @@ public static unsafe partial class Raylib
|
||||||
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern void DrawLineBezier(Vector2 startPos, Vector2 endPos, float thick, Color color);
|
public static extern void DrawLineBezier(Vector2 startPos, Vector2 endPos, float thick, Color color);
|
||||||
|
|
||||||
/// <summary>Draw line using quadratic bezier curves with a control point</summary>
|
|
||||||
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
|
||||||
public static extern void DrawLineBezierQuad(
|
|
||||||
Vector2 startPos,
|
|
||||||
Vector2 endPos,
|
|
||||||
Vector2 controlPos,
|
|
||||||
float thick,
|
|
||||||
Color color
|
|
||||||
);
|
|
||||||
|
|
||||||
/// <summary>Draw line using cubic bezier curves with 2 control points</summary>
|
|
||||||
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
|
||||||
public static extern void DrawLineBezierCubic(
|
|
||||||
Vector2 startPos,
|
|
||||||
Vector2 endPos,
|
|
||||||
Vector2 startControlPos,
|
|
||||||
Vector2 endControlPos,
|
|
||||||
float thick,
|
|
||||||
Color color
|
|
||||||
);
|
|
||||||
|
|
||||||
/// <summary>Draw lines sequence</summary>
|
/// <summary>Draw lines sequence</summary>
|
||||||
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern void DrawLineStrip(Vector2* points, int pointCount, Color color);
|
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)]
|
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern void ResumeSound(Sound sound);
|
public static extern void ResumeSound(Sound sound);
|
||||||
|
|
||||||
/// <summary>Get number of sounds playing in the multichannel</summary>
|
|
||||||
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
|
||||||
public static extern int GetSoundsPlaying();
|
|
||||||
|
|
||||||
/// <summary>Check if a sound is currently playing</summary>
|
/// <summary>Check if a sound is currently playing</summary>
|
||||||
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern CBool IsSoundPlaying(Sound sound);
|
public static extern CBool IsSoundPlaying(Sound sound);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue