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

4.2.0-rc.2

This commit is contained in:
Rgebee 2022-09-26 07:10:47 +01:00
commit 82550f66fe
3 changed files with 26 additions and 26 deletions

View file

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

View file

@ -19,7 +19,7 @@ namespace Raylib_cs
public const float RAD2DEG = 180.0f / MathF.PI; public const float RAD2DEG = 180.0f / MathF.PI;
/// <summary> /// <summary>
/// Returns color with alpha applied, alpha goes from 0.0f to 1.0f<br/> /// Get color with alpha applied, alpha goes from 0.0f to 1.0f<br/>
/// NOTE: Added for compatability with previous versions /// NOTE: Added for compatability with previous versions
/// </summary> /// </summary>
public static Color Fade(Color color, float alpha) => ColorAlpha(color, alpha); public static Color Fade(Color color, float alpha) => ColorAlpha(color, alpha);
@ -373,31 +373,31 @@ namespace Raylib_cs
// Screen-space-related functions // Screen-space-related functions
/// <summary>Returns a ray trace from mouse position</summary> /// <summary>Get a ray trace from mouse position</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Ray GetMouseRay(Vector2 mousePosition, Camera3D camera); public static extern Ray GetMouseRay(Vector2 mousePosition, Camera3D camera);
/// <summary>Returns camera transform matrix (view matrix)</summary> /// <summary>Get camera transform matrix (view matrix)</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Matrix4x4 GetCameraMatrix(Camera3D camera); public static extern Matrix4x4 GetCameraMatrix(Camera3D camera);
/// <summary>Returns camera 2d transform matrix</summary> /// <summary>Get camera 2d transform matrix</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Matrix4x4 GetCameraMatrix2D(Camera2D camera); public static extern Matrix4x4 GetCameraMatrix2D(Camera2D camera);
/// <summary>Returns the screen space position for a 3d world space position</summary> /// <summary>Get the screen space position for a 3d world space position</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Vector2 GetWorldToScreen(Vector3 position, Camera3D camera); public static extern Vector2 GetWorldToScreen(Vector3 position, Camera3D camera);
/// <summary>Returns size position for a 3d world space position</summary> /// <summary>Get size position for a 3d world space position</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Vector2 GetWorldToScreenEx(Vector3 position, Camera3D camera, int width, int height); public static extern Vector2 GetWorldToScreenEx(Vector3 position, Camera3D camera, int width, int height);
/// <summary>Returns the screen space position for a 2d camera world space position</summary> /// <summary>Get the screen space position for a 2d camera world space position</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Vector2 GetWorldToScreen2D(Vector2 position, Camera2D camera); public static extern Vector2 GetWorldToScreen2D(Vector2 position, Camera2D camera);
/// <summary>Returns the world space position for a 2d camera screen space position</summary> /// <summary>Get the world space position for a 2d camera screen space position</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Vector2 GetScreenToWorld2D(Vector2 position, Camera2D camera); public static extern Vector2 GetScreenToWorld2D(Vector2 position, Camera2D camera);
@ -408,22 +408,22 @@ namespace Raylib_cs
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void SetTargetFPS(int fps); public static extern void SetTargetFPS(int fps);
/// <summary>Returns current FPS</summary> /// <summary>Get current FPS</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int GetFPS(); public static extern int GetFPS();
/// <summary>Returns time in seconds for last frame drawn</summary> /// <summary>Get time in seconds for last frame drawn</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern float GetFrameTime(); public static extern float GetFrameTime();
/// <summary>Returns elapsed time in seconds since InitWindow()</summary> /// <summary>Get elapsed time in seconds since InitWindow()</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern double GetTime(); public static extern double GetTime();
// Misc. functions // Misc. functions
/// <summary>Returns a random value between min and max (both included)</summary> /// <summary>Get a random value between min and max (both included)</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int GetRandomValue(int min, int max); public static extern int GetRandomValue(int min, int max);
@ -654,7 +654,7 @@ namespace Raylib_cs
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern CBool IsGamepadAvailable(int gamepad); public static extern CBool IsGamepadAvailable(int gamepad);
/// <summary>Return gamepad internal name id</summary> /// <summary>Get gamepad internal name id</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern sbyte* GetGamepadName(int gamepad); public static extern sbyte* GetGamepadName(int gamepad);
@ -678,11 +678,11 @@ namespace Raylib_cs
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int GetGamepadButtonPressed(); public static extern int GetGamepadButtonPressed();
/// <summary>Return gamepad axis count for a gamepad</summary> /// <summary>Get gamepad axis count for a gamepad</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int GetGamepadAxisCount(int gamepad); public static extern int GetGamepadAxisCount(int gamepad);
/// <summary>Return axis movement value for a gamepad axis</summary> /// <summary>Get axis movement value for a gamepad axis</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern float GetGamepadAxisMovement(int gamepad, GamepadAxis axis); public static extern float GetGamepadAxisMovement(int gamepad, GamepadAxis axis);
@ -709,15 +709,15 @@ namespace Raylib_cs
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern CBool IsMouseButtonUp(MouseButton button); public static extern CBool IsMouseButtonUp(MouseButton button);
/// <summary>Returns mouse position X</summary> /// <summary>Get mouse position X</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int GetMouseX(); public static extern int GetMouseX();
/// <summary>Returns mouse position Y</summary> /// <summary>Get mouse position Y</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int GetMouseY(); public static extern int GetMouseY();
/// <summary>Returns mouse position XY</summary> /// <summary>Get mouse position XY</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Vector2 GetMousePosition(); public static extern Vector2 GetMousePosition();
@ -752,15 +752,15 @@ namespace Raylib_cs
// Input-related functions: touch // Input-related functions: touch
/// <summary>Returns touch position X for touch point 0 (relative to screen size)</summary> /// <summary>Get touch position X for touch point 0 (relative to screen size)</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int GetTouchX(); public static extern int GetTouchX();
/// <summary>Returns touch position Y for touch point 0 (relative to screen size)</summary> /// <summary>Get touch position Y for touch point 0 (relative to screen size)</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int GetTouchY(); public static extern int GetTouchY();
/// <summary>Returns touch position XY for a touch point index (relative to screen size)</summary> /// <summary>Get touch position XY for a touch point index (relative to screen size)</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Vector2 GetTouchPosition(int index); public static extern Vector2 GetTouchPosition(int index);
@ -1559,7 +1559,7 @@ namespace Raylib_cs
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int GetCodepointCount(sbyte* text); public static extern int GetCodepointCount(sbyte* text);
/// <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>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int GetCodepoint(sbyte* text, int* bytesProcessed); public static extern int GetCodepoint(sbyte* text, int* bytesProcessed);

View file

@ -258,11 +258,11 @@ namespace Raylib_cs
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Vector3 Vector3Reflect(Vector3 v, Vector3 normal); public static extern Vector3 Vector3Reflect(Vector3 v, Vector3 normal);
/// <summary>Return min value for each pair of components</summary> /// <summary>Get min value for each pair of components</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Vector3 Vector3Min(Vector3 v1, Vector3 v2); public static extern Vector3 Vector3Min(Vector3 v1, Vector3 v2);
/// <summary>Return max value for each pair of components</summary> /// <summary>Get max value for each pair of components</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Vector3 Vector3Max(Vector3 v1, Vector3 v2); public static extern Vector3 Vector3Max(Vector3 v1, Vector3 v2);