Initial commit. Not even a game yet :P
[cToan.git] / src / SDLWrap_FontSurface.cpp
blob3e207034c2533c6298e5e07e48789d8c54aab985
1 #include "SDLWrap_FontSurface.hpp"
3 namespace SDLWrap {
5 FontSurface::FontSurface(std::string Text, Font_SPtr Font, Color ColorOfText)
7 this->SurfaceText = Text;
8 this->meFont = Font;
9 this->TextColor = ColorOfText;
12 FontSurface::~FontSurface()
16 void
17 FontSurface::RenderTextSolid()
19 this->me = TTF_RenderText_Solid(meFont->me, SurfaceText.c_str(), TextColor.me);