mirror of
https://github.com/Ryujinx/SDL2-CS.git
synced 2024-12-23 12:55:35 +00:00
Durr, that is a macro, flibit.
This commit is contained in:
parent
26e5d0662d
commit
5238ccd88e
13
src/SDL2.cs
13
src/SDL2.cs
|
@ -1789,6 +1789,11 @@ namespace SDL2
|
||||||
|
|
||||||
#region SDL_surface.h
|
#region SDL_surface.h
|
||||||
|
|
||||||
|
public const uint SDL_SWSURFACE = 0x00000000;
|
||||||
|
public const uint SDL_PREALLOC = 0x00000001;
|
||||||
|
public const uint SDL_RLEACCEL = 0x00000002;
|
||||||
|
public const uint SDL_DONTFREE = 0x00000004;
|
||||||
|
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public struct SDL_Surface
|
public struct SDL_Surface
|
||||||
{
|
{
|
||||||
|
@ -1806,6 +1811,11 @@ namespace SDL2
|
||||||
public int refcount;
|
public int refcount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static bool SDL_MUSTLOCK(ref SDL_Surface surface)
|
||||||
|
{
|
||||||
|
return (surface.flags & SDL_RLEACCEL) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern int SDL_BlitSurface(
|
public static extern int SDL_BlitSurface(
|
||||||
ref SDL_Surface src,
|
ref SDL_Surface src,
|
||||||
|
@ -2047,9 +2057,6 @@ namespace SDL2
|
||||||
ref SDL_Rect dstrect
|
ref SDL_Rect dstrect
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName)]
|
|
||||||
public static extern SDL_bool SDL_MUSTLOCK(ref SDL_Surface surface);
|
|
||||||
|
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern int SDL_SaveBMP(
|
public static extern int SDL_SaveBMP(
|
||||||
ref SDL_Surface surface,
|
ref SDL_Surface surface,
|
||||||
|
|
Loading…
Reference in a new issue