Add SetWindowFocused
This commit is contained in:
parent
e009520be3
commit
8872f3624f
3 changed files with 7 additions and 3 deletions
|
|
@ -26,8 +26,8 @@ public class ImageGeneration
|
||||||
|
|
||||||
InitWindow(screenWidth, screenHeight, "raylib [textures] example - procedural images generation");
|
InitWindow(screenWidth, screenHeight, "raylib [textures] example - procedural images generation");
|
||||||
|
|
||||||
Image verticalGradient = GenImageGradientV(screenWidth, screenHeight, Color.RED, Color.BLUE);
|
Image verticalGradient = GenImageGradientLinear(screenWidth, screenHeight, 0, Color.RED, Color.BLUE);
|
||||||
Image horizontalGradient = GenImageGradientH(screenWidth, screenHeight, 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 radialGradient = GenImageGradientRadial(screenWidth, screenHeight, 0.0f, Color.WHITE, Color.BLACK);
|
||||||
Image isChecked = GenImageChecked(screenWidth, screenHeight, 32, 32, Color.RED, Color.BLUE);
|
Image isChecked = GenImageChecked(screenWidth, screenHeight, 32, 32, Color.RED, Color.BLUE);
|
||||||
Image whiteNoise = GenImageWhiteNoise(screenWidth, screenHeight, 0.5f);
|
Image whiteNoise = GenImageWhiteNoise(screenWidth, screenHeight, 0.5f);
|
||||||
|
|
|
||||||
|
|
@ -138,6 +138,10 @@ public static unsafe partial class Raylib
|
||||||
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern void SetWindowOpacity(float opacity);
|
public static extern void SetWindowOpacity(float opacity);
|
||||||
|
|
||||||
|
/// <summary>Set window focused (only PLATFORM_DESKTOP)</summary>
|
||||||
|
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern void SetWindowFocused();
|
||||||
|
|
||||||
/// <summary>Get native window handle</summary>
|
/// <summary>Get native window handle</summary>
|
||||||
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern void* GetWindowHandle();
|
public static extern void* GetWindowHandle();
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,7 @@ public readonly unsafe partial struct ModelAnimation
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Animation name
|
/// Animation name
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public readonly string Name; // TODO (CHECK IF IT REALLY OK TO USE STRING)
|
public readonly char Name; // TODO CHECK IF IT WORKS
|
||||||
|
|
||||||
/// <inheritdoc cref="FramePoses"/>
|
/// <inheritdoc cref="FramePoses"/>
|
||||||
public FramePosesCollection FramePosesColl => new(FramePoses, FrameCount, BoneCount);
|
public FramePosesCollection FramePosesColl => new(FramePoses, FrameCount, BoneCount);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue