mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-03 19:05:59 -04:00
Use int type for flip argument, as it's a bitfield and not a real enum
This commit is contained in:
parent
4c46058a4b
commit
51aee70136
@ -69,8 +69,8 @@ void Renderer::Copy(Texture& texture, const Rect& srcrect, const Rect& dstrect)
|
||||
throw Exception("SDL_RenderCopy failed");
|
||||
}
|
||||
|
||||
void Renderer::Copy(Texture& texture, const Rect& srcrect, const Rect& dstrect, double angle, const Point& center, SDL_RendererFlip flip) {
|
||||
if (SDL_RenderCopyEx(renderer_, texture.Get(), srcrect.Get(), dstrect.Get(), angle, center.Get(), flip) != 0)
|
||||
void Renderer::Copy(Texture& texture, const Rect& srcrect, const Rect& dstrect, double angle, const Point& center, int flip) {
|
||||
if (SDL_RenderCopyEx(renderer_, texture.Get(), srcrect.Get(), dstrect.Get(), angle, center.Get(), static_cast<SDL_RendererFlip>(flip)) != 0)
|
||||
throw Exception("SDL_RenderCopyEx failed");
|
||||
}
|
||||
|
||||
|
@ -55,7 +55,7 @@ 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, SDL_RendererFlip flip);
|
||||
void Copy(Texture& texture, const Rect& srcrect, const Rect& dstrect, double angle, const Point& center, int flip);
|
||||
|
||||
void SetDrawColor(Uint8 r, Uint8 g, Uint8 b, Uint8 a = 255);
|
||||
void SetTarget();
|
||||
|
Loading…
x
Reference in New Issue
Block a user