X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Ftile.h;h=a94a19c36db043026e75c57410d58b41b3df88f6;hb=157cef71aeb9ae25b7bb90f37dda11bc09329d11;hp=4d4f0082bd8ec66c91de6be2fcfa75cb999d0e3e;hpb=c11b04d0525c1566260b02bacd78fd7faa7be8f1;p=supertux.git diff --git a/src/tile.h b/src/tile.h index 4d4f0082b..a94a19c36 100644 --- a/src/tile.h +++ b/src/tile.h @@ -28,6 +28,7 @@ #include "globals.h" #include "lispreader.h" #include "setup.h" +#include "vector.h" /** Tile Class @@ -86,6 +87,11 @@ public: /** Draw a tile on the screen: */ static void draw(float x, float y, unsigned int c, Uint8 alpha = 255); static void draw_stretched(float x, float y, int w, int h, unsigned int c, Uint8 alpha = 255); + + static void draw(const Vector& pos, unsigned int c, Uint8 alpha = 255) + { + draw(pos.x, pos.y, c, alpha); + } }; struct TileGroup