mirror of
https://github.com/Ryujinx/SDL2-CS.git
synced 2025-03-04 13:19:44 +00:00
The union is a separate entity.
This commit is contained in:
parent
28ad7c171c
commit
0b7cd87083
22
src/SDL2.cs
22
src/SDL2.cs
|
@ -5147,25 +5147,29 @@ namespace SDL2
|
|||
}
|
||||
|
||||
[StructLayout(LayoutKind.Explicit)]
|
||||
public struct SDL_SysWMinfo
|
||||
public struct INTERNAL_SysWMDriverUnion
|
||||
{
|
||||
[FieldOffset(0)]
|
||||
public SDL_version version;
|
||||
[FieldOffset(3)]
|
||||
public SDL_SYSWM_TYPE subsystem;
|
||||
[FieldOffset(7)]
|
||||
public INTERNAL_windows_wminfo win;
|
||||
[FieldOffset(7)]
|
||||
[FieldOffset(0)]
|
||||
public INTERNAL_x11_wminfo x11;
|
||||
[FieldOffset(7)]
|
||||
[FieldOffset(0)]
|
||||
public INTERNAL_directfb_wminfo dfb;
|
||||
[FieldOffset(7)]
|
||||
[FieldOffset(0)]
|
||||
public INTERNAL_cocoa_wminfo cocoa;
|
||||
[FieldOffset(7)]
|
||||
[FieldOffset(0)]
|
||||
public INTERNAL_uikit_wminfo uikit;
|
||||
// private int dummy;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct SDL_SysWMinfo
|
||||
{
|
||||
public SDL_version version;
|
||||
public SDL_SYSWM_TYPE subsystem;
|
||||
public INTERNAL_SysWMDriverUnion info;
|
||||
}
|
||||
|
||||
/* window refers to an SDL_Window* */
|
||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern SDL_bool SDL_GetWindowWMInfo(
|
||||
|
|
Loading…
Reference in a new issue