Provide Set*Mod with default values, such so no-arg call will reset modifier to default

This commit is contained in:
Dmitry Marakasov 2013-12-18 05:52:57 +04:00
parent 96576e112d
commit 4c46058a4b

View File

@ -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;
};