mirror of
https://github.com/Ryujinx/SDL2-CS.git
synced 2025-01-03 20:05:40 +00:00
Remove obsolete unmanaged type (#154)
This commit is contained in:
parent
859737b1e1
commit
cd4064203f
37
src/SDL2.cs
37
src/SDL2.cs
|
@ -192,7 +192,7 @@ namespace SDL2
|
||||||
public const uint SDL_INIT_SENSOR = 0x00008000;
|
public const uint SDL_INIT_SENSOR = 0x00008000;
|
||||||
public const uint SDL_INIT_NOPARACHUTE = 0x00100000;
|
public const uint SDL_INIT_NOPARACHUTE = 0x00100000;
|
||||||
public const uint SDL_INIT_EVERYTHING = (
|
public const uint SDL_INIT_EVERYTHING = (
|
||||||
SDL_INIT_TIMER | SDL_INIT_AUDIO | SDL_INIT_VIDEO |
|
SDL_INIT_TIMER | SDL_INIT_AUDIO | SDL_INIT_VIDEO |
|
||||||
SDL_INIT_EVENTS | SDL_INIT_JOYSTICK | SDL_INIT_HAPTIC |
|
SDL_INIT_EVENTS | SDL_INIT_JOYSTICK | SDL_INIT_HAPTIC |
|
||||||
SDL_INIT_GAMECONTROLLER | SDL_INIT_SENSOR
|
SDL_INIT_GAMECONTROLLER | SDL_INIT_SENSOR
|
||||||
);
|
);
|
||||||
|
@ -1477,7 +1477,7 @@ namespace SDL2
|
||||||
SDL_GLattr attr,
|
SDL_GLattr attr,
|
||||||
int value
|
int value
|
||||||
);
|
);
|
||||||
|
|
||||||
public static int SDL_GL_SetAttribute(
|
public static int SDL_GL_SetAttribute(
|
||||||
SDL_GLattr attr,
|
SDL_GLattr attr,
|
||||||
SDL_GLprofile profile
|
SDL_GLprofile profile
|
||||||
|
@ -1670,8 +1670,7 @@ namespace SDL2
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern int SDL_UpdateWindowSurfaceRects(
|
public static extern int SDL_UpdateWindowSurfaceRects(
|
||||||
IntPtr window,
|
IntPtr window,
|
||||||
[In()] [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.Struct, SizeParamIndex = 2)]
|
[In] SDL_Rect[] rects,
|
||||||
SDL_Rect[] rects,
|
|
||||||
int numrects
|
int numrects
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -2188,8 +2187,7 @@ namespace SDL2
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern int SDL_RenderDrawLines(
|
public static extern int SDL_RenderDrawLines(
|
||||||
IntPtr renderer,
|
IntPtr renderer,
|
||||||
[In()] [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.Struct, SizeParamIndex = 2)]
|
[In] SDL_Point[] points,
|
||||||
SDL_Point[] points,
|
|
||||||
int count
|
int count
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -2205,8 +2203,7 @@ namespace SDL2
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern int SDL_RenderDrawPoints(
|
public static extern int SDL_RenderDrawPoints(
|
||||||
IntPtr renderer,
|
IntPtr renderer,
|
||||||
[In()] [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.Struct, SizeParamIndex = 2)]
|
[In] SDL_Point[] points,
|
||||||
SDL_Point[] points,
|
|
||||||
int count
|
int count
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -2230,8 +2227,7 @@ namespace SDL2
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern int SDL_RenderDrawRects(
|
public static extern int SDL_RenderDrawRects(
|
||||||
IntPtr renderer,
|
IntPtr renderer,
|
||||||
[In()] [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.Struct, SizeParamIndex = 2)]
|
[In] SDL_Rect[] rects,
|
||||||
SDL_Rect[] rects,
|
|
||||||
int count
|
int count
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -2255,8 +2251,7 @@ namespace SDL2
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern int SDL_RenderFillRects(
|
public static extern int SDL_RenderFillRects(
|
||||||
IntPtr renderer,
|
IntPtr renderer,
|
||||||
[In()] [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.Struct, SizeParamIndex = 2)]
|
[In] SDL_Rect[] rects,
|
||||||
SDL_Rect[] rects,
|
|
||||||
int count
|
int count
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -2410,7 +2405,7 @@ namespace SDL2
|
||||||
IntPtr pixels,
|
IntPtr pixels,
|
||||||
int pitch
|
int pitch
|
||||||
);
|
);
|
||||||
|
|
||||||
/* texture refers to an SDL_Texture* */
|
/* texture refers to an SDL_Texture* */
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern int SDL_UpdateTexture(
|
public static extern int SDL_UpdateTexture(
|
||||||
|
@ -2419,7 +2414,7 @@ namespace SDL2
|
||||||
IntPtr pixels,
|
IntPtr pixels,
|
||||||
int pitch
|
int pitch
|
||||||
);
|
);
|
||||||
|
|
||||||
/* texture refers to an SDL_Texture* */
|
/* texture refers to an SDL_Texture* */
|
||||||
/* Available in 2.0.1 or higher */
|
/* Available in 2.0.1 or higher */
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
@ -2976,8 +2971,7 @@ namespace SDL2
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern int SDL_SetPaletteColors(
|
public static extern int SDL_SetPaletteColors(
|
||||||
IntPtr palette,
|
IntPtr palette,
|
||||||
[In()] [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.Struct)]
|
[In] SDL_Color[] colors,
|
||||||
SDL_Color[] colors,
|
|
||||||
int firstcolor,
|
int firstcolor,
|
||||||
int ncolors
|
int ncolors
|
||||||
);
|
);
|
||||||
|
@ -3022,8 +3016,7 @@ namespace SDL2
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern SDL_bool SDL_EnclosePoints(
|
public static extern SDL_bool SDL_EnclosePoints(
|
||||||
[In()] [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.Struct, SizeParamIndex = 1)]
|
[In] SDL_Point[] points,
|
||||||
SDL_Point[] points,
|
|
||||||
int count,
|
int count,
|
||||||
ref SDL_Rect clip,
|
ref SDL_Rect clip,
|
||||||
out SDL_Rect result
|
out SDL_Rect result
|
||||||
|
@ -3314,8 +3307,7 @@ namespace SDL2
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern int SDL_FillRects(
|
public static extern int SDL_FillRects(
|
||||||
IntPtr dst,
|
IntPtr dst,
|
||||||
[In()] [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.Struct, SizeParamIndex = 2)]
|
[In] SDL_Rect[] rects,
|
||||||
SDL_Rect[] rects,
|
|
||||||
int count,
|
int count,
|
||||||
uint color
|
uint color
|
||||||
);
|
);
|
||||||
|
@ -4093,8 +4085,7 @@ namespace SDL2
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern int SDL_PeepEvents(
|
public static extern int SDL_PeepEvents(
|
||||||
[Out()] [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.Struct, SizeParamIndex = 1)]
|
[Out] SDL_Event[] events,
|
||||||
SDL_Event[] events,
|
|
||||||
int numevents,
|
int numevents,
|
||||||
SDL_eventaction action,
|
SDL_eventaction action,
|
||||||
SDL_EventType minType,
|
SDL_EventType minType,
|
||||||
|
@ -6383,7 +6374,7 @@ namespace SDL2
|
||||||
ref SDL_AudioSpec desired,
|
ref SDL_AudioSpec desired,
|
||||||
out SDL_AudioSpec obtained
|
out SDL_AudioSpec obtained
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern int SDL_OpenAudio(
|
public static extern int SDL_OpenAudio(
|
||||||
ref SDL_AudioSpec desired,
|
ref SDL_AudioSpec desired,
|
||||||
|
|
Loading…
Reference in a new issue