diff --git a/Examples/Textures/ImageGeneration.cs b/Examples/Textures/ImageGeneration.cs index 8295d1b..43c4366 100644 --- a/Examples/Textures/ImageGeneration.cs +++ b/Examples/Textures/ImageGeneration.cs @@ -26,8 +26,8 @@ public class ImageGeneration InitWindow(screenWidth, screenHeight, "raylib [textures] example - procedural images generation"); - Image verticalGradient = GenImageGradientV(screenWidth, screenHeight, Color.RED, Color.BLUE); - Image horizontalGradient = GenImageGradientH(screenWidth, screenHeight, Color.RED, Color.BLUE); + Image verticalGradient = GenImageGradientLinear(screenWidth, screenHeight, 0, Color.RED, Color.BLUE); + Image horizontalGradient = GenImageGradientLinear(screenWidth, screenHeight, 90, Color.RED, Color.BLUE); Image radialGradient = GenImageGradientRadial(screenWidth, screenHeight, 0.0f, Color.WHITE, Color.BLACK); Image isChecked = GenImageChecked(screenWidth, screenHeight, 32, 32, Color.RED, Color.BLUE); Image whiteNoise = GenImageWhiteNoise(screenWidth, screenHeight, 0.5f); diff --git a/Raylib-cs/interop/Raylib.cs b/Raylib-cs/interop/Raylib.cs index 32ef55c..1810cf8 100644 --- a/Raylib-cs/interop/Raylib.cs +++ b/Raylib-cs/interop/Raylib.cs @@ -138,6 +138,10 @@ public static unsafe partial class Raylib [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern void SetWindowOpacity(float opacity); + /// Set window focused (only PLATFORM_DESKTOP) + [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] + public static extern void SetWindowFocused(); + /// Get native window handle [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern void* GetWindowHandle(); diff --git a/Raylib-cs/types/Model.cs b/Raylib-cs/types/Model.cs index 6e2b714..5ee312c 100644 --- a/Raylib-cs/types/Model.cs +++ b/Raylib-cs/types/Model.cs @@ -107,7 +107,7 @@ public readonly unsafe partial struct ModelAnimation /// /// Animation name /// - public readonly string Name; // TODO (CHECK IF IT REALLY OK TO USE STRING) + public readonly char Name; // TODO CHECK IF IT WORKS /// public FramePosesCollection FramePosesColl => new(FramePoses, FrameCount, BoneCount);