Merge branch 'master' into 4.2
This commit is contained in:
commit
c94b9437ac
5 changed files with 21 additions and 17 deletions
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
|
@ -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}}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
```
|
||||
|
||||
[](https://www.nuget.org/packages/Raylib-cs/)
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue