mirror of
https://github.com/raylib-cs/raylib-cs
synced 2025-09-09 03:01:41 -04:00
Multi-target net5.0
This commit is contained in:
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@@ -20,9 +20,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
dotnet-version: 6.0.x
|
dotnet-version: 6.0.x
|
||||||
- name: Build project
|
- name: Build project
|
||||||
run: dotnet build -c Release
|
run: dotnet build -c Release -f net6.0
|
||||||
- name: Test project
|
- name: Test project
|
||||||
run: dotnet test
|
run: dotnet test -c Release -f net6.0
|
||||||
publish:
|
publish:
|
||||||
name: Build Release Package
|
name: Build Release Package
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@@ -12,7 +12,7 @@ C# bindings for raylib 4.0.0, a simple and easy-to-use library to learn videogam
|
|||||||
|
|
||||||
[](https://github.com/ChrisDill/Raylib-cs/actions?query=workflow%3ABuild)
|
[](https://github.com/ChrisDill/Raylib-cs/actions?query=workflow%3ABuild)
|
||||||
|
|
||||||
Raylib-cs targets net6.0.
|
Raylib-cs targets net5.0 and net6.0.
|
||||||
|
|
||||||
## Installation - NuGet
|
## Installation - NuGet
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net6.0</TargetFramework>
|
<TargetFrameworks>net5.0;net6.0</TargetFrameworks>
|
||||||
<EnableDefaultItems>false</EnableDefaultItems>
|
<EnableDefaultItems>false</EnableDefaultItems>
|
||||||
<AssemblyName>Raylib-cs</AssemblyName>
|
<AssemblyName>Raylib-cs</AssemblyName>
|
||||||
<RootNamespace>Raylib_cs</RootNamespace>
|
<RootNamespace>Raylib_cs</RootNamespace>
|
||||||
|
@@ -274,6 +274,24 @@ namespace Raylib_cs
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc cref="ImageDrawPixel(Image*, int, int, Color)"/>
|
||||||
|
public static void ImageDrawPixel(ref Image dst, int posX, int posY, Color color)
|
||||||
|
{
|
||||||
|
fixed (Image* p = &dst)
|
||||||
|
{
|
||||||
|
ImageDrawPixel(p, posX, posY, color);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc cref="ImageDrawPixelV(Image*, Vector2, Color)"/>
|
||||||
|
public static void ImageDrawPixelV(ref Image dst, Vector2 position, Color color)
|
||||||
|
{
|
||||||
|
fixed (Image* p = &dst)
|
||||||
|
{
|
||||||
|
ImageDrawPixelV(p, position, color);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <inheritdoc cref="ImageDrawText(Image*, byte*, int, int, int, Color)"/>
|
/// <inheritdoc cref="ImageDrawText(Image*, byte*, int, int, int, Color)"/>
|
||||||
public static void ImageDrawText(ref Image dst, Utf8String text, int x, int y, int fontSize, Color color)
|
public static void ImageDrawText(ref Image dst, Utf8String text, int x, int y, int fontSize, Color color)
|
||||||
{
|
{
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs;
|
namespace Raylib_cs
|
||||||
|
{
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public readonly struct CBool
|
public readonly struct CBool
|
||||||
{
|
{
|
||||||
@@ -28,3 +28,4 @@ public readonly struct CBool
|
|||||||
return Convert.ToBoolean(value).ToString();
|
return Convert.ToBoolean(value).ToString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Raylib_cs;
|
namespace Raylib_cs
|
||||||
|
{
|
||||||
#region LICENSE
|
#region LICENSE
|
||||||
|
|
||||||
// ** -- TAKEN FROM SQLitePCL.raw -- ** \\
|
// ** -- TAKEN FROM SQLitePCL.raw -- ** \\
|
||||||
@@ -207,3 +207,4 @@ public static class Utf8StringUtils
|
|||||||
return byteArray;
|
return byteArray;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user