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:
tuxuser 2018-10-25 19:59:34 +02:00 committed by Ethan Lee
parent 48621907a2
commit 93acf5457b

View file

@ -2374,6 +2374,20 @@ namespace SDL2
IntPtr pixels,
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* */
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]