X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Ftexture.h;h=0e68e700073c1ce85c0041bc75c8d9f32483567a;hb=5dba61177d71c5572fd29af172fcdab7b1f9a561;hp=da4c8dc063d98b54e7b1faa00cadc02cc40d1bd3;hpb=835fe9710c67ec76af43e74ec601955693924c2a;p=supertux.git diff --git a/src/texture.h b/src/texture.h index da4c8dc06..0e68e7000 100644 --- a/src/texture.h +++ b/src/texture.h @@ -95,9 +95,9 @@ public: void resize(int w_, int h_); /// conveniance function - void draw(const Vector& pos, Uint8 alpha = 255, bool update = false) + void draw(const Vector& pos, Uint8 alpha = 255, bool upside_down = false, bool update = false) { - draw(pos.x, pos.y, alpha, update); + draw(pos.x, pos.y, alpha, upside_down, update); } }; @@ -117,7 +117,7 @@ public: virtual ~SurfaceImpl(); /** Return 0 on success, -2 if surface needs to be reloaded */ - virtual int draw(float x, float y, Uint8 alpha, bool update) = 0; + virtual int draw(float x, float y, Uint8 alpha, bool upside_down, bool update) = 0; virtual int draw_bg(Uint8 alpha, bool update) = 0; virtual int draw_part(float sx, float sy, float x, float y, float w, float h, Uint8 alpha, bool update) = 0; virtual int draw_stretched(float x, float y, int w, int h, Uint8 alpha, bool update) = 0; @@ -134,7 +134,7 @@ public: SurfaceSDL(const std::string& file, int x, int y, int w, int h, int use_alpha); virtual ~SurfaceSDL(); - int draw(float x, float y, Uint8 alpha, bool update); + int draw(float x, float y, Uint8 alpha, bool upside_down, bool update); int draw_bg(Uint8 alpha, bool update); int draw_part(float sx, float sy, float x, float y, float w, float h, Uint8 alpha, bool update); int draw_stretched(float x, float y, int w, int h, Uint8 alpha, bool update); @@ -152,7 +152,7 @@ public: SurfaceOpenGL(const std::string& file, int x, int y, int w, int h, int use_alpha); virtual ~SurfaceOpenGL(); - int draw(float x, float y, Uint8 alpha, bool update); + int draw(float x, float y, Uint8 alpha, bool upside_down, bool update); int draw_bg(Uint8 alpha, bool update); int draw_part(float sx, float sy, float x, float y, float w, float h, Uint8 alpha, bool update); int draw_stretched(float x, float y, int w, int h, Uint8 alpha, bool update);