X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FFont.h;h=86448025992fcbd509e30c1996738a9e8adaba20;hb=93cd8cb0f16c1809d76faa33ed6f281a3276140b;hp=c48ea16a8410269b075fbb801c4d1c17cb921921;hpb=1162be37102b24df11f469495c0184f3f9a26ba0;p=l2e.git diff --git a/src/graphics/Font.h b/src/graphics/Font.h index c48ea16..8644802 100644 --- a/src/graphics/Font.h +++ b/src/graphics/Font.h @@ -9,7 +9,7 @@ #define GRAPHICS_FONT_H_ #include "Sprite.h" -#include "../geometry/Point.h" +#include "../geometry/Vector.h" #include @@ -26,10 +26,10 @@ public: public: int CharWidth() const { return sprite->Width(); } int CharHeight() const { return sprite->Height(); } - void DrawChar(char c, SDL_Surface *dest, const geometry::Point &position) const; - void DrawString(const char *s, SDL_Surface *dest, const geometry::Point &position, int maxChars = 0) const; - void DrawDigit(int d, SDL_Surface *dest, const geometry::Point &position) const; - void DrawNumber(int n, SDL_Surface *dest, const geometry::Point &position, int digits = 0) const; + void DrawChar(char c, SDL_Surface *dest, const geometry::Vector &position) const; + void DrawString(const char *s, SDL_Surface *dest, const geometry::Vector &position, int maxChars = 0) const; + void DrawDigit(int d, SDL_Surface *dest, const geometry::Vector &position) const; + void DrawNumber(int n, SDL_Surface *dest, const geometry::Vector &position, int digits = 0) const; private: const Sprite *sprite;