From 3d57457a3386fb0f132c63ac06e934996aac3aa3 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Wed, 18 Dec 2013 05:55:39 +0400 Subject: [PATCH] Provide default arguments for Copy() --- SDL2pp/Renderer.hh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/SDL2pp/Renderer.hh b/SDL2pp/Renderer.hh index 9d0e95e..430caa2 100644 --- a/SDL2pp/Renderer.hh +++ b/SDL2pp/Renderer.hh @@ -24,6 +24,9 @@ #include +#include +#include + struct SDL_Renderer; namespace SDL2pp { @@ -54,8 +57,8 @@ public: void GetInfo(SDL_RendererInfo* info); - void Copy(Texture& texture, const Rect& srcrect, const Rect& dstrect); - void Copy(Texture& texture, const Rect& srcrect, const Rect& dstrect, double angle, const Point& center, int flip); + void Copy(Texture& texture, const Rect& srcrect = Rect::Null(), const Rect& dstrect = Rect::Null()); + void Copy(Texture& texture, const Rect& srcrect, const Rect& dstrect, double angle, const Point& center = Point::Null(), int flip = 0); void SetDrawColor(Uint8 r, Uint8 g, Uint8 b, Uint8 a = 255); void SetTarget();