From 4c46058a4b6d0e6d65fb6a926a8a2edb64673ae0 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Wed, 18 Dec 2013 05:52:57 +0400 Subject: [PATCH] Provide Set*Mod with default values, such so no-arg call will reset modifier to default --- SDL2pp/Texture.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SDL2pp/Texture.hh b/SDL2pp/Texture.hh index 49953c5..af55895 100644 --- a/SDL2pp/Texture.hh +++ b/SDL2pp/Texture.hh @@ -50,8 +50,8 @@ public: void Update(const Rect& rect, const void* pixels, int pitch); void SetBlendMode(SDL_BlendMode blendMode); - void SetAlphaMod(Uint8 alpha); - void SetColorMod(Uint8 r, Uint8 g, Uint8 b); + void SetAlphaMod(Uint8 alpha = 255); + void SetColorMod(Uint8 r = 255, Uint8 g = 255, Uint8 b = 255); void Swap(Texture& other) noexcept; };