diff --git a/src/SDL2.cs b/src/SDL2.cs index d1b479f..cddfd68 100644 --- a/src/SDL2.cs +++ b/src/SDL2.cs @@ -192,7 +192,7 @@ namespace SDL2 public const uint SDL_INIT_SENSOR = 0x00008000; public const uint SDL_INIT_NOPARACHUTE = 0x00100000; 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_GAMECONTROLLER | SDL_INIT_SENSOR ); @@ -1477,7 +1477,7 @@ namespace SDL2 SDL_GLattr attr, int value ); - + public static int SDL_GL_SetAttribute( SDL_GLattr attr, SDL_GLprofile profile @@ -1670,8 +1670,7 @@ namespace SDL2 [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern int SDL_UpdateWindowSurfaceRects( IntPtr window, - [In()] [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.Struct, SizeParamIndex = 2)] - SDL_Rect[] rects, + [In] SDL_Rect[] rects, int numrects ); @@ -2188,8 +2187,7 @@ namespace SDL2 [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern int SDL_RenderDrawLines( IntPtr renderer, - [In()] [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.Struct, SizeParamIndex = 2)] - SDL_Point[] points, + [In] SDL_Point[] points, int count ); @@ -2205,8 +2203,7 @@ namespace SDL2 [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern int SDL_RenderDrawPoints( IntPtr renderer, - [In()] [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.Struct, SizeParamIndex = 2)] - SDL_Point[] points, + [In] SDL_Point[] points, int count ); @@ -2230,8 +2227,7 @@ namespace SDL2 [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern int SDL_RenderDrawRects( IntPtr renderer, - [In()] [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.Struct, SizeParamIndex = 2)] - SDL_Rect[] rects, + [In] SDL_Rect[] rects, int count ); @@ -2255,8 +2251,7 @@ namespace SDL2 [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern int SDL_RenderFillRects( IntPtr renderer, - [In()] [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.Struct, SizeParamIndex = 2)] - SDL_Rect[] rects, + [In] SDL_Rect[] rects, int count ); @@ -2410,7 +2405,7 @@ namespace SDL2 IntPtr pixels, int pitch ); - + /* texture refers to an SDL_Texture* */ [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern int SDL_UpdateTexture( @@ -2419,7 +2414,7 @@ namespace SDL2 IntPtr pixels, int pitch ); - + /* texture refers to an SDL_Texture* */ /* Available in 2.0.1 or higher */ [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] @@ -2976,8 +2971,7 @@ namespace SDL2 [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern int SDL_SetPaletteColors( IntPtr palette, - [In()] [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.Struct)] - SDL_Color[] colors, + [In] SDL_Color[] colors, int firstcolor, int ncolors ); @@ -3022,8 +3016,7 @@ namespace SDL2 [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern SDL_bool SDL_EnclosePoints( - [In()] [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.Struct, SizeParamIndex = 1)] - SDL_Point[] points, + [In] SDL_Point[] points, int count, ref SDL_Rect clip, out SDL_Rect result @@ -3314,8 +3307,7 @@ namespace SDL2 [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern int SDL_FillRects( IntPtr dst, - [In()] [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.Struct, SizeParamIndex = 2)] - SDL_Rect[] rects, + [In] SDL_Rect[] rects, int count, uint color ); @@ -4093,8 +4085,7 @@ namespace SDL2 [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern int SDL_PeepEvents( - [Out()] [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.Struct, SizeParamIndex = 1)] - SDL_Event[] events, + [Out] SDL_Event[] events, int numevents, SDL_eventaction action, SDL_EventType minType, @@ -6383,7 +6374,7 @@ namespace SDL2 ref SDL_AudioSpec desired, out SDL_AudioSpec obtained ); - + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern int SDL_OpenAudio( ref SDL_AudioSpec desired,