diff --git a/src/SDL2.cs b/src/SDL2.cs index 5bf3ba8..3a990aa 100644 --- a/src/SDL2.cs +++ b/src/SDL2.cs @@ -1246,6 +1246,15 @@ namespace SDL2 ref SDL_Rect srcrect, 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* */ [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]