Initial update to 4.2
This commit is contained in:
parent
737062763d
commit
1a78bc3c53
8 changed files with 153 additions and 39 deletions
|
|
@ -70,6 +70,11 @@ namespace Raylib_cs
|
|||
/// </summary>
|
||||
FLAG_WINDOW_HIGHDPI = 0x00002000,
|
||||
|
||||
/// <summary>
|
||||
/// Set to support mouse passthrough, only supported when FLAG_WINDOW_UNDECORATED
|
||||
/// </summary>
|
||||
FLAG_WINDOW_MOUSE_PASSTHROUGH = 0x00004000,
|
||||
|
||||
/// <summary>
|
||||
/// Set to try enabling MSAA 4X
|
||||
/// </summary>
|
||||
|
|
@ -158,6 +163,11 @@ namespace Raylib_cs
|
|||
/// </summary>
|
||||
BLEND_SUBTRACT_COLORS,
|
||||
|
||||
/// <summary>
|
||||
/// Blend premultiplied textures considering alpha
|
||||
/// </summary>
|
||||
BLEND_ALPHA_PREMULTIPLY,
|
||||
|
||||
/// <summary>
|
||||
/// Blend textures using custom src/dst factors (use rlSetBlendMode())
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -190,14 +190,14 @@ namespace Raylib_cs
|
|||
/// <summary>Get dropped files names (memory should be freed)</summary>
|
||||
public static string[] GetDroppedFiles()
|
||||
{
|
||||
int count;
|
||||
var buffer = GetDroppedFiles(&count);
|
||||
var files = new string[count];
|
||||
var filePathList = LoadDroppedFiles();
|
||||
var files = new string[filePathList.count];
|
||||
|
||||
for (var i = 0; i < count; i++)
|
||||
for (var i = 0; i < filePathList.count; i++)
|
||||
{
|
||||
files[i] = Marshal.PtrToStringUTF8((IntPtr)buffer[i]);
|
||||
files[i] = Marshal.PtrToStringUTF8((IntPtr)filePathList.paths[i]);
|
||||
}
|
||||
UnloadDroppedFiles(filePathList);
|
||||
|
||||
return files;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ namespace Raylib_cs
|
|||
{
|
||||
return new CBool { value = (sbyte)(left.value - right.value) };
|
||||
}
|
||||
|
||||
|
||||
// ToString override
|
||||
public override string ToString()
|
||||
{
|
||||
|
|
|
|||
27
Raylib-cs/types/native/FilePathList.cs
Normal file
27
Raylib-cs/types/native/FilePathList.cs
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Raylib_cs
|
||||
{
|
||||
/// <summary>
|
||||
/// File path list
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public unsafe struct FilePathList
|
||||
{
|
||||
/// <summary>
|
||||
/// Filepaths max entries
|
||||
/// </summary>
|
||||
public uint capacity;
|
||||
|
||||
/// <summary>
|
||||
/// Filepaths entries count
|
||||
/// </summary>
|
||||
public uint count;
|
||||
|
||||
/// <summary>
|
||||
/// Filepaths entries
|
||||
/// </summary>
|
||||
public byte** paths;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue