Added overload to SDL_RenderCopy method to allow SourceRectangle to be passed as an IntPtr. This allows developers to pass IntPtr.Zero to take advantage of internal SDL default values for null rectangles.
This commit is contained in:
parent
10e0d51f85
commit
796e0b9e54
@ -1246,6 +1246,15 @@ namespace SDL2
|
|||||||
ref SDL_Rect srcrect,
|
ref SDL_Rect srcrect,
|
||||||
ref SDL_Rect dstrect
|
ref SDL_Rect dstrect
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/* renderer refers to an SDL_Renderer*, texture to an SDL_Texture* */
|
||||||
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int SDL_RenderCopy(
|
||||||
|
IntPtr renderer,
|
||||||
|
IntPtr texture,
|
||||||
|
IntPtr srcrect,
|
||||||
|
ref SDL_Rect 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)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user