X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FFont.h;fp=src%2Fgraphics%2FFont.h;h=86448025992fcbd509e30c1996738a9e8adaba20;hb=0542849dfccfec1ce1477265fa0fee2401a8fb23;hp=c48ea16a8410269b075fbb801c4d1c17cb921921;hpb=c20927cf8ab9bb7526f641850c3997f14c66f06e;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;