diff --git a/Raylib-cs/Raylib-cs.csproj b/Raylib-cs/Raylib-cs.csproj index d7df1ca..5fd47b9 100644 --- a/Raylib-cs/Raylib-cs.csproj +++ b/Raylib-cs/Raylib-cs.csproj @@ -12,8 +12,8 @@ 4.2.0 - 4.2.0-rc.1 - 4.2.0-rc.1 + 4.2.0-rc.2 + 4.2.0-rc.2 Chris Dill, Raysan5 true Zlib diff --git a/Raylib-cs/interop/Raylib.cs b/Raylib-cs/interop/Raylib.cs index c9aad17..81ad262 100644 --- a/Raylib-cs/interop/Raylib.cs +++ b/Raylib-cs/interop/Raylib.cs @@ -19,7 +19,7 @@ namespace Raylib_cs public const float RAD2DEG = 180.0f / MathF.PI; /// - /// Returns color with alpha applied, alpha goes from 0.0f to 1.0f
+ /// Get color with alpha applied, alpha goes from 0.0f to 1.0f
/// NOTE: Added for compatability with previous versions ///
public static Color Fade(Color color, float alpha) => ColorAlpha(color, alpha); @@ -373,31 +373,31 @@ namespace Raylib_cs // Screen-space-related functions - /// Returns a ray trace from mouse position + /// Get a ray trace from mouse position [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern Ray GetMouseRay(Vector2 mousePosition, Camera3D camera); - /// Returns camera transform matrix (view matrix) + /// Get camera transform matrix (view matrix) [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern Matrix4x4 GetCameraMatrix(Camera3D camera); - /// Returns camera 2d transform matrix + /// Get camera 2d transform matrix [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern Matrix4x4 GetCameraMatrix2D(Camera2D camera); - /// Returns the screen space position for a 3d world space position + /// Get the screen space position for a 3d world space position [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern Vector2 GetWorldToScreen(Vector3 position, Camera3D camera); - /// Returns size position for a 3d world space position + /// Get size position for a 3d world space position [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern Vector2 GetWorldToScreenEx(Vector3 position, Camera3D camera, int width, int height); - /// Returns the screen space position for a 2d camera world space position + /// Get the screen space position for a 2d camera world space position [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern Vector2 GetWorldToScreen2D(Vector2 position, Camera2D camera); - /// Returns the world space position for a 2d camera screen space position + /// Get the world space position for a 2d camera screen space position [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern Vector2 GetScreenToWorld2D(Vector2 position, Camera2D camera); @@ -408,22 +408,22 @@ namespace Raylib_cs [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern void SetTargetFPS(int fps); - /// Returns current FPS + /// Get current FPS [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern int GetFPS(); - /// Returns time in seconds for last frame drawn + /// Get time in seconds for last frame drawn [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern float GetFrameTime(); - /// Returns elapsed time in seconds since InitWindow() + /// Get elapsed time in seconds since InitWindow() [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern double GetTime(); // Misc. functions - /// Returns a random value between min and max (both included) + /// Get a random value between min and max (both included) [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern int GetRandomValue(int min, int max); @@ -654,7 +654,7 @@ namespace Raylib_cs [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern CBool IsGamepadAvailable(int gamepad); - /// Return gamepad internal name id + /// Get gamepad internal name id [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern sbyte* GetGamepadName(int gamepad); @@ -678,11 +678,11 @@ namespace Raylib_cs [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern int GetGamepadButtonPressed(); - /// Return gamepad axis count for a gamepad + /// Get gamepad axis count for a gamepad [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern int GetGamepadAxisCount(int gamepad); - /// Return axis movement value for a gamepad axis + /// Get axis movement value for a gamepad axis [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern float GetGamepadAxisMovement(int gamepad, GamepadAxis axis); @@ -709,15 +709,15 @@ namespace Raylib_cs [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern CBool IsMouseButtonUp(MouseButton button); - /// Returns mouse position X + /// Get mouse position X [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern int GetMouseX(); - /// Returns mouse position Y + /// Get mouse position Y [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern int GetMouseY(); - /// Returns mouse position XY + /// Get mouse position XY [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern Vector2 GetMousePosition(); @@ -752,15 +752,15 @@ namespace Raylib_cs // Input-related functions: touch - /// Returns touch position X for touch point 0 (relative to screen size) + /// Get touch position X for touch point 0 (relative to screen size) [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern int GetTouchX(); - /// Returns touch position Y for touch point 0 (relative to screen size) + /// Get touch position Y for touch point 0 (relative to screen size) [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern int GetTouchY(); - /// Returns touch position XY for a touch point index (relative to screen size) + /// Get touch position XY for a touch point index (relative to screen size) [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern Vector2 GetTouchPosition(int index); @@ -1559,7 +1559,7 @@ namespace Raylib_cs [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern int GetCodepointCount(sbyte* text); - /// Returns next codepoint in a UTF8 encoded string; 0x3f('?') is returned on failure + /// Get next codepoint in a UTF8 encoded string; 0x3f('?') is returned on failure [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern int GetCodepoint(sbyte* text, int* bytesProcessed); diff --git a/Raylib-cs/interop/Raymath.cs b/Raylib-cs/interop/Raymath.cs index 22a050b..1767e3f 100644 --- a/Raylib-cs/interop/Raymath.cs +++ b/Raylib-cs/interop/Raymath.cs @@ -258,11 +258,11 @@ namespace Raylib_cs [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern Vector3 Vector3Reflect(Vector3 v, Vector3 normal); - /// Return min value for each pair of components + /// Get min value for each pair of components [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern Vector3 Vector3Min(Vector3 v1, Vector3 v2); - /// Return max value for each pair of components + /// Get max value for each pair of components [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern Vector3 Vector3Max(Vector3 v1, Vector3 v2);