Watch
2
0
Fork
You've already forked raylib-cs
0

Merge branch 'master' into 4.2

This commit is contained in:
Ben Parsons 2022-09-04 00:21:31 +10:00 committed by GitHub
commit c94b9437ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 17 deletions

View file

@ -138,3 +138,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
with:
files: Raylib-cs/bin/Release/Raylib-cs.${{steps.get-nuget-version.outputs.info}}.nupkg
- name: Publish to NuGet
if: startsWith(github.ref, 'refs/tags/')
run: dotnet nuget push Raylib-cs/bin/Release/Raylib-cs.${{steps.get-nuget-version.outputs.info}}.nupkg --api-key ${{secrets.NUGET_API_KEY}}

View file

@ -19,7 +19,7 @@ Raylib-cs targets net5.0 and net6.0.
This is the prefered method to get started - The package is still new so please report any [issues](https://github.com/ChrisDill/Raylib-cs/issues).
```
dotnet add package Raylib-cs --version 4.0.0.1
dotnet add package Raylib-cs --version 4.0.0.2
```
[![NuGet](https://img.shields.io/nuget/dt/raylib-cs)](https://www.nuget.org/packages/Raylib-cs/)

View file

@ -12,8 +12,8 @@
<PropertyGroup>
<TargetRaylibTag>4.2.0</TargetRaylibTag>
<Version>4.0.0.1</Version>
<PackageVersion>4.0.0.1</PackageVersion>
<Version>4.2.0</Version>
<PackageVersion>4.2.0</PackageVersion>
<Authors>Chris Dill, Raysan5</Authors>
<PackProject>true</PackProject>
<PackageLicenseExpression>Zlib</PackageLicenseExpression>

View file

@ -112,9 +112,9 @@ namespace Raylib_cs
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Vector2 Vector2Lerp(Vector2 v1, Vector2 v2, float amount);
/// <summary>Calculate linear interpolation between two vectors</summary>
/// <summary>Rotate vector by angle</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Vector2 Vector2Rotate(Vector2 v, float degs);
public static extern Vector2 Vector2Rotate(Vector2 v, float angle);
/// <summary>Vector with components value 0.0f</summary>

View file

@ -106,27 +106,27 @@ namespace Raylib_cs
}
/// <summary>Load image sequence from file (frames appended to image.data)</summary>
public static Image LoadImageAnim(string fileName, int[] frames)
public static Image LoadImageAnim(string fileName, out int frames)
{
using var str1 = fileName.ToUTF8Buffer();
fixed (int* p = frames)
fixed (int* p = &frames)
{
return LoadImageAnim(str1.AsPointer(), p);
}
}
/// <summary>Export image data to file</summary>
public static void ExportImage(Image image, string fileName)
public static CBool ExportImage(Image image, string fileName)
{
using var str1 = fileName.ToUTF8Buffer();
ExportImage(image, str1.AsPointer());
return ExportImage(image, str1.AsPointer());
}
/// <summary>Export image as code file defining an array of bytes</summary>
public static void ExportImageAsCode(Image image, string fileName)
public static CBool ExportImageAsCode(Image image, string fileName)
{
using var str1 = fileName.ToUTF8Buffer();
ExportImageAsCode(image, str1.AsPointer());
return ExportImageAsCode(image, str1.AsPointer());
}
/// <summary>Show trace log messages (LOG_DEBUG, LOG_INFO, LOG_WARNING, LOG_ERROR)</summary>
@ -202,7 +202,7 @@ namespace Raylib_cs
return files;
}
/// <summary>Return gamepad internal name id</summary>
/// <summary>Get gamepad internal name id</summary>
public static string GetGamepadName_(int gamepad)
{
return Utf8StringUtils.GetUTF8String(GetGamepadName(gamepad));
@ -795,7 +795,7 @@ namespace Raylib_cs
return GetCodepointCount(str1.AsPointer());
}
/// <summary>Returns next codepoint in a UTF8 encoded string; 0x3f('?') is returned on failure</summary>
/// <summary>Get next codepoint in a UTF8 encoded string; 0x3f('?') is returned on failure</summary>
/// <returns>single codepoint / "char"</returns>
public static int GetCodepoint(string text, ref int bytesProcessed)
{
@ -875,17 +875,17 @@ namespace Raylib_cs
}
/// <summary>Export wave data to file</summary>
public static void ExportWave(Wave wave, string fileName)
public static CBool ExportWave(Wave wave, string fileName)
{
using var str1 = fileName.ToUTF8Buffer();
ExportWave(wave, str1.AsPointer());
return ExportWave(wave, str1.AsPointer());
}
/// <summary>Export wave sample data to code (.h)</summary>
public static void ExportWaveAsCode(Wave wave, string fileName)
public static CBool ExportWaveAsCode(Wave wave, string fileName)
{
using var str1 = fileName.ToUTF8Buffer();
ExportWaveAsCode(wave, str1.AsPointer());
return ExportWaveAsCode(wave, str1.AsPointer());
}
/// <summary>Load music stream from file</summary>