mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
1521 lines
41 KiB
C#
1521 lines
41 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.Sdl.Generate; do not edit by hand.
|
|
#nullable enable
|
|
|
|
namespace Brutal.SdlApi
|
|
{
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlAssertData
|
|
{
|
|
public byte always_ignore;
|
|
public uint trigger_count;
|
|
public byte* condition;
|
|
public byte* filename;
|
|
public int linenum;
|
|
public byte* function;
|
|
public SdlAssertData* next;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlAsyncIOOutcome
|
|
{
|
|
public nint asyncio;
|
|
public SdlAsyncIOTaskType type;
|
|
public SdlAsyncIOResult result;
|
|
public void* buffer;
|
|
public ulong offset;
|
|
public ulong bytes_requested;
|
|
public ulong bytes_transferred;
|
|
public void* userdata;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlAtomicInt
|
|
{
|
|
public int value;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlAtomicU32
|
|
{
|
|
public uint value;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlInitState
|
|
{
|
|
public SdlAtomicInt status;
|
|
public ulong thread;
|
|
public void* reserved;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlIOStreamInterface
|
|
{
|
|
public uint version;
|
|
public delegate* unmanaged[Cdecl]<void*, long> size;
|
|
public delegate* unmanaged[Cdecl]<void*, long, SdlIOWhence, long> seek;
|
|
public delegate* unmanaged[Cdecl]<void*, void*, nuint, SdlIOStatus*, nuint> read;
|
|
public delegate* unmanaged[Cdecl]<void*, void*, nuint, SdlIOStatus*, nuint> write;
|
|
public delegate* unmanaged[Cdecl]<void*, SdlIOStatus*, byte> flush;
|
|
public delegate* unmanaged[Cdecl]<void*, byte> close;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlAudioSpec
|
|
{
|
|
public SdlAudioFormat format;
|
|
public int channels;
|
|
public int freq;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlColor
|
|
{
|
|
public byte r;
|
|
public byte g;
|
|
public byte b;
|
|
public byte a;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlFColor
|
|
{
|
|
public float r;
|
|
public float g;
|
|
public float b;
|
|
public float a;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlPalette
|
|
{
|
|
public int ncolors;
|
|
public SdlColor* colors;
|
|
public uint version;
|
|
public int refcount;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlPixelFormatDetails
|
|
{
|
|
public SdlPixelFormat format;
|
|
public byte bits_per_pixel;
|
|
public byte bytes_per_pixel;
|
|
public fixed byte padding[2];
|
|
public uint Rmask;
|
|
public uint Gmask;
|
|
public uint Bmask;
|
|
public uint Amask;
|
|
public byte Rbits;
|
|
public byte Gbits;
|
|
public byte Bbits;
|
|
public byte Abits;
|
|
public byte Rshift;
|
|
public byte Gshift;
|
|
public byte Bshift;
|
|
public byte Ashift;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlPoint
|
|
{
|
|
public int x;
|
|
public int y;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlFPoint
|
|
{
|
|
public float x;
|
|
public float y;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlRect
|
|
{
|
|
public int x;
|
|
public int y;
|
|
public int w;
|
|
public int h;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlFRect
|
|
{
|
|
public float x;
|
|
public float y;
|
|
public float w;
|
|
public float h;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlSurface
|
|
{
|
|
public SdlSurfaceFlags flags;
|
|
public SdlPixelFormat format;
|
|
public int w;
|
|
public int h;
|
|
public int pitch;
|
|
public void* pixels;
|
|
public int refcount;
|
|
public void* reserved;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlCameraSpec
|
|
{
|
|
public SdlPixelFormat format;
|
|
public SdlColorspace colorspace;
|
|
public int width;
|
|
public int height;
|
|
public int framerate_numerator;
|
|
public int framerate_denominator;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlDisplayMode
|
|
{
|
|
public uint displayID;
|
|
public SdlPixelFormat format;
|
|
public int w;
|
|
public int h;
|
|
public float pixel_density;
|
|
public float refresh_rate;
|
|
public int refresh_rate_numerator;
|
|
public int refresh_rate_denominator;
|
|
public nint @internal;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlDialogFileFilter
|
|
{
|
|
public byte* name;
|
|
public byte* pattern;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlGuid
|
|
{
|
|
public fixed byte data[16];
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlVirtualJoystickTouchpadDesc
|
|
{
|
|
public ushort nfingers;
|
|
public fixed ushort padding[3];
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlVirtualJoystickSensorDesc
|
|
{
|
|
public SdlSensorType type;
|
|
public float rate;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlVirtualJoystickDesc
|
|
{
|
|
public uint version;
|
|
public ushort type;
|
|
public ushort padding;
|
|
public ushort vendor_id;
|
|
public ushort product_id;
|
|
public ushort naxes;
|
|
public ushort nbuttons;
|
|
public ushort nballs;
|
|
public ushort nhats;
|
|
public ushort ntouchpads;
|
|
public ushort nsensors;
|
|
public fixed ushort padding2[2];
|
|
public uint button_mask;
|
|
public uint axis_mask;
|
|
public byte* name;
|
|
public SdlVirtualJoystickTouchpadDesc* touchpads;
|
|
public SdlVirtualJoystickSensorDesc* sensors;
|
|
public void* userdata;
|
|
public delegate* unmanaged[Cdecl]<void*, void> Update;
|
|
public delegate* unmanaged[Cdecl]<void*, int, void> SetPlayerIndex;
|
|
public delegate* unmanaged[Cdecl]<void*, ushort, ushort, byte> Rumble;
|
|
public delegate* unmanaged[Cdecl]<void*, ushort, ushort, byte> RumbleTriggers;
|
|
public delegate* unmanaged[Cdecl]<void*, byte, byte, byte, byte> SetLED;
|
|
public delegate* unmanaged[Cdecl]<void*, void*, int, byte> SendEffect;
|
|
public delegate* unmanaged[Cdecl]<void*, byte, byte> SetSensorsEnabled;
|
|
public delegate* unmanaged[Cdecl]<void*, void> Cleanup;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlCursorFrameInfo
|
|
{
|
|
public SdlSurface* surface;
|
|
public uint duration;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlFinger
|
|
{
|
|
public ulong id;
|
|
public float x;
|
|
public float y;
|
|
public float pressure;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlCommonEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlDisplayEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public uint displayID;
|
|
public int data1;
|
|
public int data2;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlWindowEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public uint windowID;
|
|
public int data1;
|
|
public int data2;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlKeyboardDeviceEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public uint which;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlKeyboardEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public uint windowID;
|
|
public uint which;
|
|
public SdlScancode scancode;
|
|
public SdlKeycode key;
|
|
public ushort mod;
|
|
public ushort raw;
|
|
public byte down;
|
|
public byte repeat;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlTextEditingEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public uint windowID;
|
|
public byte* text;
|
|
public int start;
|
|
public int length;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlTextEditingCandidatesEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public uint windowID;
|
|
public byte** candidates;
|
|
public int num_candidates;
|
|
public int selected_candidate;
|
|
public byte horizontal;
|
|
public byte padding1;
|
|
public byte padding2;
|
|
public byte padding3;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlTextInputEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public uint windowID;
|
|
public byte* text;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlMouseDeviceEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public uint which;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlMouseMotionEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public uint windowID;
|
|
public uint which;
|
|
public SdlMouseButtonFlags state;
|
|
public float x;
|
|
public float y;
|
|
public float xrel;
|
|
public float yrel;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlMouseButtonEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public uint windowID;
|
|
public uint which;
|
|
public byte button;
|
|
public byte down;
|
|
public byte clicks;
|
|
public byte padding;
|
|
public float x;
|
|
public float y;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlMouseWheelEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public uint windowID;
|
|
public uint which;
|
|
public float x;
|
|
public float y;
|
|
public SdlMouseWheelDirection direction;
|
|
public float mouse_x;
|
|
public float mouse_y;
|
|
public int integer_x;
|
|
public int integer_y;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlJoyAxisEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public uint which;
|
|
public byte axis;
|
|
public byte padding1;
|
|
public byte padding2;
|
|
public byte padding3;
|
|
public short value;
|
|
public ushort padding4;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlJoyBallEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public uint which;
|
|
public byte ball;
|
|
public byte padding1;
|
|
public byte padding2;
|
|
public byte padding3;
|
|
public short xrel;
|
|
public short yrel;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlJoyHatEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public uint which;
|
|
public byte hat;
|
|
public byte value;
|
|
public byte padding1;
|
|
public byte padding2;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlJoyButtonEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public uint which;
|
|
public byte button;
|
|
public byte down;
|
|
public byte padding1;
|
|
public byte padding2;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlJoyDeviceEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public uint which;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlJoyBatteryEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public uint which;
|
|
public SdlPowerState state;
|
|
public int percent;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGamepadAxisEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public uint which;
|
|
public byte axis;
|
|
public byte padding1;
|
|
public byte padding2;
|
|
public byte padding3;
|
|
public short value;
|
|
public ushort padding4;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGamepadButtonEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public uint which;
|
|
public byte button;
|
|
public byte down;
|
|
public byte padding1;
|
|
public byte padding2;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGamepadDeviceEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public uint which;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGamepadTouchpadEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public uint which;
|
|
public int touchpad;
|
|
public int finger;
|
|
public float x;
|
|
public float y;
|
|
public float pressure;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlGamepadSensorEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public uint which;
|
|
public int sensor;
|
|
public fixed float data[3];
|
|
public ulong sensor_timestamp;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlAudioDeviceEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public uint which;
|
|
public byte recording;
|
|
public byte padding1;
|
|
public byte padding2;
|
|
public byte padding3;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlCameraDeviceEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public uint which;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlRenderEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public uint windowID;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlTouchFingerEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public ulong touchID;
|
|
public ulong fingerID;
|
|
public float x;
|
|
public float y;
|
|
public float dx;
|
|
public float dy;
|
|
public float pressure;
|
|
public uint windowID;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlPinchFingerEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public float scale;
|
|
public uint windowID;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlPenProximityEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public uint windowID;
|
|
public uint which;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlPenMotionEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public uint windowID;
|
|
public uint which;
|
|
public SdlPenInputFlags pen_state;
|
|
public float x;
|
|
public float y;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlPenTouchEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public uint windowID;
|
|
public uint which;
|
|
public SdlPenInputFlags pen_state;
|
|
public float x;
|
|
public float y;
|
|
public byte eraser;
|
|
public byte down;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlPenButtonEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public uint windowID;
|
|
public uint which;
|
|
public SdlPenInputFlags pen_state;
|
|
public float x;
|
|
public float y;
|
|
public byte button;
|
|
public byte down;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlPenAxisEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public uint windowID;
|
|
public uint which;
|
|
public SdlPenInputFlags pen_state;
|
|
public float x;
|
|
public float y;
|
|
public SdlPenAxis axis;
|
|
public float value;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlDropEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public uint windowID;
|
|
public float x;
|
|
public float y;
|
|
public byte* source;
|
|
public byte* data;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlClipboardEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public byte owner;
|
|
public int num_mime_types;
|
|
public byte** mime_types;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlSensorEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public uint which;
|
|
public fixed float data[6];
|
|
public ulong sensor_timestamp;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlQuitEvent
|
|
{
|
|
public SdlEventType type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlUserEvent
|
|
{
|
|
public uint type;
|
|
public uint reserved;
|
|
public ulong timestamp;
|
|
public uint windowID;
|
|
public int code;
|
|
public void* data1;
|
|
public void* data2;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Explicit)]
|
|
public unsafe partial struct SdlEvent
|
|
{
|
|
[FieldOffset(0)]
|
|
public SdlEventType type;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlCommonEvent common;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlDisplayEvent display;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlWindowEvent window;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlKeyboardDeviceEvent kdevice;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlKeyboardEvent key;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlTextEditingEvent edit;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlTextEditingCandidatesEvent edit_candidates;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlTextInputEvent text;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlMouseDeviceEvent mdevice;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlMouseMotionEvent motion;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlMouseButtonEvent button;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlMouseWheelEvent wheel;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlJoyDeviceEvent jdevice;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlJoyAxisEvent jaxis;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlJoyBallEvent jball;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlJoyHatEvent jhat;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlJoyButtonEvent jbutton;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlJoyBatteryEvent jbattery;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlGamepadDeviceEvent gdevice;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlGamepadAxisEvent gaxis;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlGamepadButtonEvent gbutton;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlGamepadTouchpadEvent gtouchpad;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlGamepadSensorEvent gsensor;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlAudioDeviceEvent adevice;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlCameraDeviceEvent cdevice;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlSensorEvent sensor;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlQuitEvent quit;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlUserEvent user;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlTouchFingerEvent tfinger;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlPinchFingerEvent pinch;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlPenProximityEvent pproximity;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlPenTouchEvent ptouch;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlPenMotionEvent pmotion;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlPenButtonEvent pbutton;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlPenAxisEvent paxis;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlRenderEvent render;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlDropEvent drop;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlClipboardEvent clipboard;
|
|
|
|
[FieldOffset(0)]
|
|
public fixed byte padding[128];
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlPathInfo
|
|
{
|
|
public SdlPathType type;
|
|
public ulong size;
|
|
public long create_time;
|
|
public long modify_time;
|
|
public long access_time;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGpuViewport
|
|
{
|
|
public float x;
|
|
public float y;
|
|
public float w;
|
|
public float h;
|
|
public float min_depth;
|
|
public float max_depth;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGpuTextureTransferInfo
|
|
{
|
|
public nint transfer_buffer;
|
|
public uint offset;
|
|
public uint pixels_per_row;
|
|
public uint rows_per_layer;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGpuTransferBufferLocation
|
|
{
|
|
public nint transfer_buffer;
|
|
public uint offset;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGpuTextureLocation
|
|
{
|
|
public nint texture;
|
|
public uint mip_level;
|
|
public uint layer;
|
|
public uint x;
|
|
public uint y;
|
|
public uint z;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGpuTextureRegion
|
|
{
|
|
public nint texture;
|
|
public uint mip_level;
|
|
public uint layer;
|
|
public uint x;
|
|
public uint y;
|
|
public uint z;
|
|
public uint w;
|
|
public uint h;
|
|
public uint d;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGpuBlitRegion
|
|
{
|
|
public nint texture;
|
|
public uint mip_level;
|
|
public uint layer_or_depth_plane;
|
|
public uint x;
|
|
public uint y;
|
|
public uint w;
|
|
public uint h;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGpuBufferLocation
|
|
{
|
|
public nint buffer;
|
|
public uint offset;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGpuBufferRegion
|
|
{
|
|
public nint buffer;
|
|
public uint offset;
|
|
public uint size;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGpuIndirectDrawCommand
|
|
{
|
|
public uint num_vertices;
|
|
public uint num_instances;
|
|
public uint first_vertex;
|
|
public uint first_instance;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGpuIndexedIndirectDrawCommand
|
|
{
|
|
public uint num_indices;
|
|
public uint num_instances;
|
|
public uint first_index;
|
|
public int vertex_offset;
|
|
public uint first_instance;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGpuIndirectDispatchCommand
|
|
{
|
|
public uint groupcount_x;
|
|
public uint groupcount_y;
|
|
public uint groupcount_z;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGpuSamplerCreateInfo
|
|
{
|
|
public SdlGpuFilter min_filter;
|
|
public SdlGpuFilter mag_filter;
|
|
public SdlGpuSamplerMipmapMode mipmap_mode;
|
|
public SdlGpuSamplerAddressMode address_mode_u;
|
|
public SdlGpuSamplerAddressMode address_mode_v;
|
|
public SdlGpuSamplerAddressMode address_mode_w;
|
|
public float mip_lod_bias;
|
|
public float max_anisotropy;
|
|
public SdlGpuCompareOp compare_op;
|
|
public float min_lod;
|
|
public float max_lod;
|
|
public byte enable_anisotropy;
|
|
public byte enable_compare;
|
|
public byte padding1;
|
|
public byte padding2;
|
|
public uint props;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGpuVertexBufferDescription
|
|
{
|
|
public uint slot;
|
|
public uint pitch;
|
|
public SdlGpuVertexInputRate input_rate;
|
|
public uint instance_step_rate;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGpuVertexAttribute
|
|
{
|
|
public uint location;
|
|
public uint buffer_slot;
|
|
public SdlGpuVertexElementFormat format;
|
|
public uint offset;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlGpuVertexInputState
|
|
{
|
|
public SdlGpuVertexBufferDescription* vertex_buffer_descriptions;
|
|
public uint num_vertex_buffers;
|
|
public SdlGpuVertexAttribute* vertex_attributes;
|
|
public uint num_vertex_attributes;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGpuStencilOpState
|
|
{
|
|
public SdlGpuStencilOp fail_op;
|
|
public SdlGpuStencilOp pass_op;
|
|
public SdlGpuStencilOp depth_fail_op;
|
|
public SdlGpuCompareOp compare_op;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGpuColorTargetBlendState
|
|
{
|
|
public SdlGpuBlendFactor src_color_blendfactor;
|
|
public SdlGpuBlendFactor dst_color_blendfactor;
|
|
public SdlGpuBlendOp color_blend_op;
|
|
public SdlGpuBlendFactor src_alpha_blendfactor;
|
|
public SdlGpuBlendFactor dst_alpha_blendfactor;
|
|
public SdlGpuBlendOp alpha_blend_op;
|
|
public SdlGpuColorComponentFlags color_write_mask;
|
|
public byte enable_blend;
|
|
public byte enable_color_write_mask;
|
|
public byte padding1;
|
|
public byte padding2;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlGpuShaderCreateInfo
|
|
{
|
|
public nuint code_size;
|
|
public byte* code;
|
|
public byte* entrypoint;
|
|
public uint format;
|
|
public SdlGpuShaderStage stage;
|
|
public uint num_samplers;
|
|
public uint num_storage_textures;
|
|
public uint num_storage_buffers;
|
|
public uint num_uniform_buffers;
|
|
public uint props;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGpuTextureCreateInfo
|
|
{
|
|
public SdlGpuTextureType type;
|
|
public SdlGpuTextureFormat format;
|
|
public SdlGpuTextureUsageFlags usage;
|
|
public uint width;
|
|
public uint height;
|
|
public uint layer_count_or_depth;
|
|
public uint num_levels;
|
|
public SdlGpuSampleCount sample_count;
|
|
public uint props;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGpuBufferCreateInfo
|
|
{
|
|
public SdlGpuBufferUsageFlags usage;
|
|
public uint size;
|
|
public uint props;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGpuTransferBufferCreateInfo
|
|
{
|
|
public SdlGpuTransferBufferUsage usage;
|
|
public uint size;
|
|
public uint props;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGpuRasterizerState
|
|
{
|
|
public SdlGpuFillMode fill_mode;
|
|
public SdlGpuCullMode cull_mode;
|
|
public SdlGpuFrontFace front_face;
|
|
public float depth_bias_constant_factor;
|
|
public float depth_bias_clamp;
|
|
public float depth_bias_slope_factor;
|
|
public byte enable_depth_bias;
|
|
public byte enable_depth_clip;
|
|
public byte padding1;
|
|
public byte padding2;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGpuMultisampleState
|
|
{
|
|
public SdlGpuSampleCount sample_count;
|
|
public uint sample_mask;
|
|
public byte enable_mask;
|
|
public byte enable_alpha_to_coverage;
|
|
public byte padding2;
|
|
public byte padding3;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGpuDepthStencilState
|
|
{
|
|
public SdlGpuCompareOp compare_op;
|
|
public SdlGpuStencilOpState back_stencil_state;
|
|
public SdlGpuStencilOpState front_stencil_state;
|
|
public byte compare_mask;
|
|
public byte write_mask;
|
|
public byte enable_depth_test;
|
|
public byte enable_depth_write;
|
|
public byte enable_stencil_test;
|
|
public byte padding1;
|
|
public byte padding2;
|
|
public byte padding3;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGpuColorTargetDescription
|
|
{
|
|
public SdlGpuTextureFormat format;
|
|
public SdlGpuColorTargetBlendState blend_state;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlGpuGraphicsPipelineTargetInfo
|
|
{
|
|
public SdlGpuColorTargetDescription* color_target_descriptions;
|
|
public uint num_color_targets;
|
|
public SdlGpuTextureFormat depth_stencil_format;
|
|
public byte has_depth_stencil_target;
|
|
public byte padding1;
|
|
public byte padding2;
|
|
public byte padding3;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGpuGraphicsPipelineCreateInfo
|
|
{
|
|
public nint vertex_shader;
|
|
public nint fragment_shader;
|
|
public SdlGpuVertexInputState vertex_input_state;
|
|
public SdlGpuPrimitiveType primitive_type;
|
|
public SdlGpuRasterizerState rasterizer_state;
|
|
public SdlGpuMultisampleState multisample_state;
|
|
public SdlGpuDepthStencilState depth_stencil_state;
|
|
public SdlGpuGraphicsPipelineTargetInfo target_info;
|
|
public uint props;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlGpuComputePipelineCreateInfo
|
|
{
|
|
public nuint code_size;
|
|
public byte* code;
|
|
public byte* entrypoint;
|
|
public uint format;
|
|
public uint num_samplers;
|
|
public uint num_readonly_storage_textures;
|
|
public uint num_readonly_storage_buffers;
|
|
public uint num_readwrite_storage_textures;
|
|
public uint num_readwrite_storage_buffers;
|
|
public uint num_uniform_buffers;
|
|
public uint threadcount_x;
|
|
public uint threadcount_y;
|
|
public uint threadcount_z;
|
|
public uint props;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGpuColorTargetInfo
|
|
{
|
|
public nint texture;
|
|
public uint mip_level;
|
|
public uint layer_or_depth_plane;
|
|
public SdlFColor clear_color;
|
|
public SdlGpuLoadOp load_op;
|
|
public SdlGpuStoreOp store_op;
|
|
public nint resolve_texture;
|
|
public uint resolve_mip_level;
|
|
public uint resolve_layer;
|
|
public byte cycle;
|
|
public byte cycle_resolve_texture;
|
|
public byte padding1;
|
|
public byte padding2;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGpuDepthStencilTargetInfo
|
|
{
|
|
public nint texture;
|
|
public float clear_depth;
|
|
public SdlGpuLoadOp load_op;
|
|
public SdlGpuStoreOp store_op;
|
|
public SdlGpuLoadOp stencil_load_op;
|
|
public SdlGpuStoreOp stencil_store_op;
|
|
public byte cycle;
|
|
public byte clear_stencil;
|
|
public byte mip_level;
|
|
public byte layer;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGpuBlitInfo
|
|
{
|
|
public SdlGpuBlitRegion source;
|
|
public SdlGpuBlitRegion destination;
|
|
public SdlGpuLoadOp load_op;
|
|
public SdlFColor clear_color;
|
|
public SdlFlipMode flip_mode;
|
|
public SdlGpuFilter filter;
|
|
public byte cycle;
|
|
public byte padding1;
|
|
public byte padding2;
|
|
public byte padding3;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGpuBufferBinding
|
|
{
|
|
public nint buffer;
|
|
public uint offset;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGpuTextureSamplerBinding
|
|
{
|
|
public nint texture;
|
|
public nint sampler;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGpuStorageBufferReadWriteBinding
|
|
{
|
|
public nint buffer;
|
|
public byte cycle;
|
|
public byte padding1;
|
|
public byte padding2;
|
|
public byte padding3;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlGpuStorageTextureReadWriteBinding
|
|
{
|
|
public nint texture;
|
|
public uint mip_level;
|
|
public uint layer;
|
|
public byte cycle;
|
|
public byte padding1;
|
|
public byte padding2;
|
|
public byte padding3;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlGpuVulkanOptions
|
|
{
|
|
public uint vulkan_api_version;
|
|
public void* feature_list;
|
|
public void* vulkan_10_physical_device_features;
|
|
public uint device_extension_count;
|
|
public byte** device_extension_names;
|
|
public uint instance_extension_count;
|
|
public byte** instance_extension_names;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlHapticDirection
|
|
{
|
|
public byte type;
|
|
public fixed int dir[3];
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlHapticConstant
|
|
{
|
|
public ushort type;
|
|
public SdlHapticDirection direction;
|
|
public uint length;
|
|
public ushort delay;
|
|
public ushort button;
|
|
public ushort interval;
|
|
public short level;
|
|
public ushort attack_length;
|
|
public ushort attack_level;
|
|
public ushort fade_length;
|
|
public ushort fade_level;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlHapticPeriodic
|
|
{
|
|
public ushort type;
|
|
public SdlHapticDirection direction;
|
|
public uint length;
|
|
public ushort delay;
|
|
public ushort button;
|
|
public ushort interval;
|
|
public ushort period;
|
|
public short magnitude;
|
|
public short offset;
|
|
public ushort phase;
|
|
public ushort attack_length;
|
|
public ushort attack_level;
|
|
public ushort fade_length;
|
|
public ushort fade_level;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlHapticCondition
|
|
{
|
|
public ushort type;
|
|
public SdlHapticDirection direction;
|
|
public uint length;
|
|
public ushort delay;
|
|
public ushort button;
|
|
public ushort interval;
|
|
public fixed ushort right_sat[3];
|
|
public fixed ushort left_sat[3];
|
|
public fixed short right_coeff[3];
|
|
public fixed short left_coeff[3];
|
|
public fixed ushort deadband[3];
|
|
public fixed short center[3];
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlHapticRamp
|
|
{
|
|
public ushort type;
|
|
public SdlHapticDirection direction;
|
|
public uint length;
|
|
public ushort delay;
|
|
public ushort button;
|
|
public ushort interval;
|
|
public short start;
|
|
public short end;
|
|
public ushort attack_length;
|
|
public ushort attack_level;
|
|
public ushort fade_length;
|
|
public ushort fade_level;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlHapticLeftRight
|
|
{
|
|
public ushort type;
|
|
public uint length;
|
|
public ushort large_magnitude;
|
|
public ushort small_magnitude;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlHapticCustom
|
|
{
|
|
public ushort type;
|
|
public SdlHapticDirection direction;
|
|
public uint length;
|
|
public ushort delay;
|
|
public ushort button;
|
|
public ushort interval;
|
|
public byte channels;
|
|
public ushort period;
|
|
public ushort samples;
|
|
public ushort* data;
|
|
public ushort attack_length;
|
|
public ushort attack_level;
|
|
public ushort fade_length;
|
|
public ushort fade_level;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Explicit)]
|
|
public partial struct SdlHapticEffect
|
|
{
|
|
[FieldOffset(0)]
|
|
public ushort type;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlHapticConstant constant;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlHapticPeriodic periodic;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlHapticCondition condition;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlHapticRamp ramp;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlHapticLeftRight leftright;
|
|
|
|
[FieldOffset(0)]
|
|
public SdlHapticCustom custom;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlHidDeviceInfo
|
|
{
|
|
public byte* path;
|
|
public ushort vendor_id;
|
|
public ushort product_id;
|
|
public int* serial_number;
|
|
public ushort release_number;
|
|
public int* manufacturer_string;
|
|
public int* product_string;
|
|
public ushort usage_page;
|
|
public ushort usage;
|
|
public int interface_number;
|
|
public int interface_class;
|
|
public int interface_subclass;
|
|
public int interface_protocol;
|
|
public SdlHidBusType bus_type;
|
|
public SdlHidDeviceInfo* next;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlLocale
|
|
{
|
|
public byte* language;
|
|
public byte* country;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlMessageBoxButtonData
|
|
{
|
|
public SdlMessageBoxButtonFlags flags;
|
|
public int buttonID;
|
|
public byte* text;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlMessageBoxColor
|
|
{
|
|
public byte r;
|
|
public byte g;
|
|
public byte b;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlMessageBoxData
|
|
{
|
|
public SdlMessageBoxFlags flags;
|
|
public SdlWindow window;
|
|
public byte* title;
|
|
public byte* message;
|
|
public int numbuttons;
|
|
public SdlMessageBoxButtonData* buttons;
|
|
public nint colorScheme;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlVertex
|
|
{
|
|
public SdlFPoint position;
|
|
public SdlFColor color;
|
|
public SdlFPoint tex_coord;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlGpuRenderStateCreateInfo
|
|
{
|
|
public nint fragment_shader;
|
|
public int num_sampler_bindings;
|
|
public SdlGpuTextureSamplerBinding* sampler_bindings;
|
|
public int num_storage_textures;
|
|
public nint* storage_textures;
|
|
public int num_storage_buffers;
|
|
public nint* storage_buffers;
|
|
public uint props;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct SdlStorageInterface
|
|
{
|
|
public uint version;
|
|
public delegate* unmanaged[Cdecl]<void*, byte> close;
|
|
public delegate* unmanaged[Cdecl]<void*, byte> ready;
|
|
public delegate* unmanaged[Cdecl]<
|
|
void*,
|
|
byte*,
|
|
delegate* unmanaged[Cdecl]<void*, byte*, byte*, SdlEnumerationResult>,
|
|
void*,
|
|
byte> enumerate;
|
|
public delegate* unmanaged[Cdecl]<void*, byte*, SdlPathInfo*, byte> info;
|
|
public delegate* unmanaged[Cdecl]<void*, byte*, void*, ulong, byte> read_file;
|
|
public delegate* unmanaged[Cdecl]<void*, byte*, void*, ulong, byte> write_file;
|
|
public delegate* unmanaged[Cdecl]<void*, byte*, byte> mkdir;
|
|
public delegate* unmanaged[Cdecl]<void*, byte*, byte> remove;
|
|
public delegate* unmanaged[Cdecl]<void*, byte*, byte*, byte> rename;
|
|
public delegate* unmanaged[Cdecl]<void*, byte*, byte*, byte> copy;
|
|
public delegate* unmanaged[Cdecl]<void*, ulong> space_remaining;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct SdlDateTime
|
|
{
|
|
public int year;
|
|
public int month;
|
|
public int day;
|
|
public int hour;
|
|
public int minute;
|
|
public int second;
|
|
public int nanosecond;
|
|
public int day_of_week;
|
|
public int utc_offset;
|
|
}
|
|
}
|