Imported graphics updates from Codebase

This commit is contained in:
Kayne Ruse
2013-06-04 05:05:40 +10:00
parent 6a16e341ec
commit 783e8928d6
9 changed files with 98 additions and 116 deletions
+13 -10
View File
@@ -26,18 +26,21 @@
#include <string>
class RasterFont : protected Image {
class RasterFont {
public:
RasterFont() {}
RasterFont(SDL_Surface* p) {SetSurface(p);}
virtual ~RasterFont() {}
virtual void DrawStringTo(std::string, SDL_Surface* const, Sint16 x, Sint16 y);
virtual SDL_Surface* SetSurface(SDL_Surface*) override;
RasterFont() = default;
RasterFont(SDL_Surface* p);
~RasterFont() = default;
using Image::GetSurface;
using Image::GetClip;
using Image::GetClipW;
using Image::GetClipH;
void DrawStringTo(std::string, SDL_Surface* const, Sint16 x, Sint16 y);
//Accessors and Mutators
SDL_Surface* SetSurface(SDL_Surface*);
SDL_Surface* GetSurface() const { return image.GetSurface(); }
Uint16 GetCharW() { return image.GetClipW(); }
Uint16 GetCharH() { return image.GetClipH(); }
private:
Image image;
};
#endif