Random tab sanitization

This commit is contained in:
Ethan Lee 2019-10-23 10:14:09 -04:00
parent 0b6091c655
commit 99a3123c42

View file

@ -148,14 +148,14 @@ namespace SDL2
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate long SDLRWopsSizeCallback(IntPtr context); public delegate long SDLRWopsSizeCallback(IntPtr context);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate long SDLRWopsSeekCallback( public delegate long SDLRWopsSeekCallback(
IntPtr context, IntPtr context,
long offset, long offset,
int whence int whence
); );
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate IntPtr SDLRWopsReadCallback( public delegate IntPtr SDLRWopsReadCallback(
IntPtr context, IntPtr context,
@ -163,7 +163,7 @@ namespace SDL2
IntPtr size, IntPtr size,
IntPtr maxnum IntPtr maxnum
); );
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate IntPtr SDLRWopsWriteCallback( public delegate IntPtr SDLRWopsWriteCallback(
IntPtr context, IntPtr context,
@ -171,12 +171,12 @@ namespace SDL2
IntPtr size, IntPtr size,
IntPtr num IntPtr num
); );
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate int SDLRWopsCloseCallback( public delegate int SDLRWopsCloseCallback(
IntPtr context IntPtr context
); );
[StructLayout(LayoutKind.Sequential)] [StructLayout(LayoutKind.Sequential)]
public struct SDL_RWops public struct SDL_RWops
{ {
@ -210,7 +210,7 @@ namespace SDL2
UTF8_ToNative(mode) UTF8_ToNative(mode)
); );
} }
/* IntPtr refers to an SDL_RWops* */ /* IntPtr refers to an SDL_RWops* */
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr SDL_AllocRW(); public static extern IntPtr SDL_AllocRW();
@ -226,7 +226,7 @@ namespace SDL2
/* mem refers to a void*, IntPtr to an SDL_RWops* */ /* mem refers to a void*, IntPtr to an SDL_RWops* */
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr SDL_RWFromMem(IntPtr mem, int size); public static extern IntPtr SDL_RWFromMem(IntPtr mem, int size);
/* mem refers to a const void*, IntPtr to an SDL_RWops* */ /* mem refers to a const void*, IntPtr to an SDL_RWops* */
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr SDL_RWFromConstMem(IntPtr mem, int size); public static extern IntPtr SDL_RWFromConstMem(IntPtr mem, int size);
@ -345,7 +345,7 @@ namespace SDL2
SDL_main_func mainFunction, SDL_main_func mainFunction,
IntPtr reserved IntPtr reserved
); );
/* Use this function with iOS to call your C# Main() function! /* Use this function with iOS to call your C# Main() function!
* Only available in SDL 2.0.10 or higher. * Only available in SDL 2.0.10 or higher.
*/ */
@ -523,7 +523,7 @@ namespace SDL2
"SDL_WINDOWS_INTRESOURCE_ICON"; "SDL_WINDOWS_INTRESOURCE_ICON";
public const string SDL_HINT_WINDOWS_INTRESOURCE_ICON_SMALL = public const string SDL_HINT_WINDOWS_INTRESOURCE_ICON_SMALL =
"SDL_WINDOWS_INTRESOURCE_ICON_SMALL"; "SDL_WINDOWS_INTRESOURCE_ICON_SMALL";
/* Only available in 2.0.8 or higher */ /* Only available in 2.0.8 or higher */
public const string SDL_HINT_IOS_HIDE_HOME_INDICATOR = public const string SDL_HINT_IOS_HIDE_HOME_INDICATOR =
"SDL_IOS_HIDE_HOME_INDICATOR"; "SDL_IOS_HIDE_HOME_INDICATOR";
@ -551,7 +551,7 @@ namespace SDL2
"SDL_ENABLE_STEAM_CONTROLLERS"; "SDL_ENABLE_STEAM_CONTROLLERS";
public const string SDL_HINT_ANDROID_TRAP_BACK_BUTTON = public const string SDL_HINT_ANDROID_TRAP_BACK_BUTTON =
"SDL_ANDROID_TRAP_BACK_BUTTON"; "SDL_ANDROID_TRAP_BACK_BUTTON";
/* Only available in 2.0.10 or higher */ /* Only available in 2.0.10 or higher */
public const string SDL_HINT_MOUSE_TOUCH_EVENTS = public const string SDL_HINT_MOUSE_TOUCH_EVENTS =
"SDL_MOUSE_TOUCH_EVENTS"; "SDL_MOUSE_TOUCH_EVENTS";
@ -2468,11 +2468,11 @@ namespace SDL2
[In] SDL_Rect[] rects, [In] SDL_Rect[] rects,
int count int count
); );
#region Floating Point Render Functions #region Floating Point Render Functions
/* This region only available in SDL 2.0.10 or higher. */ /* This region only available in SDL 2.0.10 or higher. */
/* renderer refers to an SDL_Renderer*, texture to an SDL_Texture* */ /* renderer refers to an SDL_Renderer*, texture to an SDL_Texture* */
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int SDL_RenderCopyF( public static extern int SDL_RenderCopyF(
@ -2520,7 +2520,7 @@ namespace SDL2
IntPtr srcrect, IntPtr srcrect,
IntPtr dstrect IntPtr dstrect
); );
/* renderer refers to an SDL_Renderer*, texture to an SDL_Texture* */ /* renderer refers to an SDL_Renderer*, texture to an SDL_Texture* */
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int SDL_RenderCopyEx( public static extern int SDL_RenderCopyEx(
@ -2648,7 +2648,7 @@ namespace SDL2
IntPtr center, IntPtr center,
SDL_RendererFlip flip SDL_RendererFlip flip
); );
/* renderer refers to an SDL_Renderer* */ /* renderer refers to an SDL_Renderer* */
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int SDL_RenderDrawPointF( public static extern int SDL_RenderDrawPointF(
@ -2656,7 +2656,7 @@ namespace SDL2
float x, float x,
float y float y
); );
/* renderer refers to an SDL_Renderer* */ /* renderer refers to an SDL_Renderer* */
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int SDL_RenderDrawPointsF( public static extern int SDL_RenderDrawPointsF(
@ -2664,7 +2664,7 @@ namespace SDL2
[In] SDL_FPoint[] points, [In] SDL_FPoint[] points,
int count int count
); );
/* renderer refers to an SDL_Renderer* */ /* renderer refers to an SDL_Renderer* */
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int SDL_RenderDrawLineF( public static extern int SDL_RenderDrawLineF(
@ -2730,7 +2730,7 @@ namespace SDL2
[In] SDL_FRect[] rects, [In] SDL_FRect[] rects,
int count int count
); );
#endregion #endregion
/* renderer refers to an SDL_Renderer* */ /* renderer refers to an SDL_Renderer* */
@ -2916,14 +2916,14 @@ namespace SDL2
/* IntPtr refers to an SDL_Texture*, renderer to an SDL_Renderer* */ /* IntPtr refers to an SDL_Texture*, renderer to an SDL_Renderer* */
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr SDL_GetRenderTarget(IntPtr renderer); public static extern IntPtr SDL_GetRenderTarget(IntPtr renderer);
/* renderer refers to an SDL_Renderer* */ /* renderer refers to an SDL_Renderer* */
/* Available in 2.0.8 or higher */ /* Available in 2.0.8 or higher */
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr SDL_RenderGetMetalLayer( public static extern IntPtr SDL_RenderGetMetalLayer(
IntPtr renderer IntPtr renderer
); );
/* renderer refers to an SDL_Renderer* */ /* renderer refers to an SDL_Renderer* */
/* Available in 2.0.8 or higher */ /* Available in 2.0.8 or higher */
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
@ -3499,7 +3499,7 @@ namespace SDL2
public int w; public int w;
public int h; public int h;
} }
/* Only available in 2.0.10 or higher. */ /* Only available in 2.0.10 or higher. */
[StructLayout(LayoutKind.Sequential)] [StructLayout(LayoutKind.Sequential)]
public struct SDL_FPoint public struct SDL_FPoint
@ -5583,7 +5583,7 @@ namespace SDL2
public float y; public float y;
public float pressure; public float pressure;
} }
/* Only available in SDL 2.0.10 or higher. */ /* Only available in SDL 2.0.10 or higher. */
public enum SDL_TouchDeviceType public enum SDL_TouchDeviceType
{ {
@ -7357,53 +7357,53 @@ namespace SDL2
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int SDL_GetCPUCount(); public static extern int SDL_GetCPUCount();
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int SDL_GetCPUCacheLineSize(); public static extern int SDL_GetCPUCacheLineSize();
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern SDL_bool SDL_HasRDTSC(); public static extern SDL_bool SDL_HasRDTSC();
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern SDL_bool SDL_HasAltiVec(); public static extern SDL_bool SDL_HasAltiVec();
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern SDL_bool SDL_HasMMX(); public static extern SDL_bool SDL_HasMMX();
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern SDL_bool SDL_Has3DNow(); public static extern SDL_bool SDL_Has3DNow();
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern SDL_bool SDL_HasSSE(); public static extern SDL_bool SDL_HasSSE();
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern SDL_bool SDL_HasSSE2(); public static extern SDL_bool SDL_HasSSE2();
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern SDL_bool SDL_HasSSE3(); public static extern SDL_bool SDL_HasSSE3();
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern SDL_bool SDL_HasSSE41(); public static extern SDL_bool SDL_HasSSE41();
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern SDL_bool SDL_HasSSE42(); public static extern SDL_bool SDL_HasSSE42();
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern SDL_bool SDL_HasAVX(); public static extern SDL_bool SDL_HasAVX();
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern SDL_bool SDL_HasAVX2(); public static extern SDL_bool SDL_HasAVX2();
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern SDL_bool SDL_HasAVX512F(); public static extern SDL_bool SDL_HasAVX512F();
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern SDL_bool SDL_HasNEON(); public static extern SDL_bool SDL_HasNEON();
/* Only available in 2.0.1 */ /* Only available in 2.0.1 */
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int SDL_GetSystemRAM(); public static extern int SDL_GetSystemRAM();
/* Only available in SDL 2.0.10 or higher. */ /* Only available in SDL 2.0.10 or higher. */
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern uint SDL_SIMDGetAlignment(); public static extern uint SDL_SIMDGetAlignment();