mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-04 03:15:59 -04:00
Added Color support for Renderer
This commit is contained in:
parent
ea43fbbbd7
commit
f9fa7a9d03
@ -197,8 +197,8 @@ Renderer& Renderer::SetDrawColor(Uint8 r, Uint8 g, Uint8 b, Uint8 a) {
|
||||
return *this;
|
||||
}
|
||||
|
||||
Renderer& Renderer::SetDrawColor(const Color& color) {
|
||||
return SetDrawColor(color.r, color.g, color.b, color.a);
|
||||
Renderer& Renderer::SetDrawColor(const Color color) {
|
||||
return SetDrawColor(color.r, color.g, color.b, color.a);
|
||||
}
|
||||
|
||||
Renderer& Renderer::SetTarget() {
|
||||
|
@ -314,7 +314,7 @@ public:
|
||||
/// \see http://wiki.libsdl.org/SDL_SetRenderDrawColor
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
Renderer& SetDrawColor(const Color& color);
|
||||
Renderer& SetDrawColor(const Color color);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Set current render target to default
|
||||
|
Loading…
x
Reference in New Issue
Block a user