mirror of
https://github.com/raylib-cs/raylib-cs
synced 2025-09-09 03:01:41 -04:00
Minor fixes
- Rename Gestures enum to Gesture - Update tests to net6.0
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>net5.0</TargetFrameworks>
|
<TargetFrameworks>net6.0</TargetFrameworks>
|
||||||
<ApplicationIcon>../Logo/raylib-cs.ico</ApplicationIcon>
|
<ApplicationIcon>../Logo/raylib-cs.ico</ApplicationIcon>
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
@@ -27,6 +27,7 @@ namespace Raylib_cs
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||||
public delegate void TraceLogCallback(TraceLogLevel logLevel, string text, IntPtr args);
|
public delegate void TraceLogCallback(TraceLogLevel logLevel, string text, IntPtr args);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// FileIO: Load binary data
|
/// FileIO: Load binary data
|
||||||
/// WARNING: This callback is intended for advance users
|
/// WARNING: This callback is intended for advance users
|
||||||
@@ -776,16 +777,16 @@ namespace Raylib_cs
|
|||||||
|
|
||||||
/// <summary>Enable a set of gestures using flags</summary>
|
/// <summary>Enable a set of gestures using flags</summary>
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern void SetGesturesEnabled(Gestures flags);
|
public static extern void SetGesturesEnabled(Gesture flags);
|
||||||
|
|
||||||
/// <summary>Check if a gesture have been detected</summary>
|
/// <summary>Check if a gesture have been detected</summary>
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
[return: MarshalAs(UnmanagedType.I1)]
|
[return: MarshalAs(UnmanagedType.I1)]
|
||||||
public static extern bool IsGestureDetected(Gestures gesture);
|
public static extern bool IsGestureDetected(Gesture gesture);
|
||||||
|
|
||||||
/// <summary>Get latest detected gesture</summary>
|
/// <summary>Get latest detected gesture</summary>
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern Gestures GetGestureDetected();
|
public static extern Gesture GetGestureDetected();
|
||||||
|
|
||||||
/// <summary>Get touch points count</summary>
|
/// <summary>Get touch points count</summary>
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
@@ -1449,7 +1450,7 @@ namespace Raylib_cs
|
|||||||
|
|
||||||
/// <summary>Set color formatted into destination pixel pointer</summary>
|
/// <summary>Set color formatted into destination pixel pointer</summary>
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern void SetPixelColor(IntPtr srcPtr, Color color, PixelFormat format);
|
public static extern void SetPixelColor(IntPtr dstPtr, Color color, PixelFormat format);
|
||||||
|
|
||||||
/// <summary>Get pixel data size in bytes for certain format</summary>
|
/// <summary>Get pixel data size in bytes for certain format</summary>
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
@@ -1854,7 +1855,7 @@ namespace Raylib_cs
|
|||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern void DrawBillboardRec(Camera3D camera, Texture2D texture, Rectangle source, Vector3 center, float size, Color tint);
|
public static extern void DrawBillboardRec(Camera3D camera, Texture2D texture, Rectangle source, Vector3 center, float size, Color tint);
|
||||||
|
|
||||||
// Draw a billboard texture defined by source and rotation
|
/// <summary>Draw a billboard texture defined by source and rotation</summary>
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern void DrawBillboardPro(Camera3D camera, Texture2D texture, Rectangle source, Vector3 position, Vector3 up, Vector2 size, Vector2 origin, float rotation, Color tint);
|
public static extern void DrawBillboardPro(Camera3D camera, Texture2D texture, Rectangle source, Vector3 position, Vector3 up, Vector2 size, Vector2 origin, float rotation, Color tint);
|
||||||
|
|
||||||
|
@@ -350,10 +350,10 @@ namespace Raylib_cs
|
|||||||
GAMEPAD_BUTTON_RIGHT_THUMB
|
GAMEPAD_BUTTON_RIGHT_THUMB
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Gestures
|
/// <summary>Gesture
|
||||||
/// NOTE: It could be used as flags to enable only some gestures</summary>
|
/// NOTE: It could be used as flags to enable only some gestures</summary>
|
||||||
[Flags]
|
[Flags]
|
||||||
public enum Gestures
|
public enum Gesture
|
||||||
{
|
{
|
||||||
GESTURE_NONE = 0,
|
GESTURE_NONE = 0,
|
||||||
GESTURE_TAP = 1,
|
GESTURE_TAP = 1,
|
||||||
|
Reference in New Issue
Block a user