mirror of
https://github.com/Ryujinx/SDL2-CS.git
synced 2025-01-06 13:55:41 +00:00
Add SDL_UpdateYUVTexture
Add YUV specific UpdateYUVTexture function, available since SDL2 v2.0.1 (https://wiki.libsdl.org/SDL_UpdateYUVTexture)
This commit is contained in:
parent
48621907a2
commit
93acf5457b
14
src/SDL2.cs
14
src/SDL2.cs
|
@ -2375,6 +2375,20 @@ namespace SDL2
|
||||||
int pitch
|
int pitch
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/* texture refers to an SDL_Texture* */
|
||||||
|
/* Available in 2.0.1 or higher */
|
||||||
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int SDL_UpdateYUVTexture(
|
||||||
|
IntPtr texture,
|
||||||
|
ref SDL_Rect rect,
|
||||||
|
IntPtr yPlane,
|
||||||
|
int yPitch,
|
||||||
|
IntPtr uPlane,
|
||||||
|
int uPitch,
|
||||||
|
IntPtr vPlane,
|
||||||
|
int vPitch
|
||||||
|
);
|
||||||
|
|
||||||
/* 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 SDL_bool SDL_RenderTargetSupported(
|
public static extern SDL_bool SDL_RenderTargetSupported(
|
||||||
|
|
Loading…
Reference in a new issue