Remove obsolete unmanaged type (#154)

This commit is contained in:
George Nemes 2019-02-16 14:26:08 +00:00 committed by Ethan Lee
parent 859737b1e1
commit cd4064203f

View file

@ -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
); );
@ -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,