mirror of
https://github.com/Ryujinx/SDL2-CS.git
synced 2024-12-31 22:45:43 +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
|
@ -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)]
|
||||
|
|
Loading…
Reference in a new issue