SDL_ttf++
C++wrapperfortheSDL_ttflibrary.
|
Renders a font as shaded. More...
#include <RenderModes.h>
Public Member Functions | |
Shaded (const Color &fg, const Color &bg) | |
Surface | render (const Font &font, char c) const |
template<int Encoding> | |
Surface | render (const Font &font, const string &text) const |
Renders a font as shaded.
Definition at line 103 of file RenderModes.h.
sdl::ttf::Shaded::Shaded | ( | const Color & | fg, |
const Color & | bg | ||
) | [inline] |
Constructs a Shaded font renderer with the specified foreground and background colors.
fg | The foreground Color. |
bg | The background Color. |
Definition at line 110 of file RenderModes.h.
Surface sdl::ttf::Shaded::render | ( | const Font & | font, |
char | c | ||
) | const [inline] |
Returns a Surface containing c rendered in font.
font | The Font to use. |
c | The character to render. |
Definition at line 120 of file RenderModes.h.
Surface sdl::ttf::Shaded::render< UNICODE > | ( | const Font & | font, |
const string & | text | ||
) | const [inline] |
Returns a Surface containg text rendered in font.
Encoding | The string encoding. |
font | The font to use. |
text | The string to render. |
Definition at line 135 of file RenderModes.h.