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
c6b98ea051
commit
b0f09dac4e
@ -197,8 +197,8 @@ Renderer& Renderer::SetDrawColor(Uint8 r, Uint8 g, Uint8 b, Uint8 a) {
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
Renderer& Renderer::SetDrawColor(const Color& color) {
|
Renderer& Renderer::SetDrawColor(const Color color) {
|
||||||
return SetDrawColor(color.r, color.g, color.b, color.a);
|
return SetDrawColor(color.r, color.g, color.b, color.a);
|
||||||
}
|
}
|
||||||
|
|
||||||
Renderer& Renderer::SetTarget() {
|
Renderer& Renderer::SetTarget() {
|
||||||
|
@ -314,7 +314,7 @@ public:
|
|||||||
/// \see http://wiki.libsdl.org/SDL_SetRenderDrawColor
|
/// \see http://wiki.libsdl.org/SDL_SetRenderDrawColor
|
||||||
///
|
///
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
Renderer& SetDrawColor(const Color& color);
|
Renderer& SetDrawColor(const Color color);
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// \brief Set current render target to default
|
/// \brief Set current render target to default
|
||||||
|
Loading…
x
Reference in New Issue
Block a user