#include <TTFRenderedText.h>
Inheritance diagram for TTFRenderedText:
Public Member Functions | |
TTFRenderedText (Texture *texture, int width, int height, int vlead, TTFont *font) | |
virtual | ~TTFRenderedText () |
virtual void | draw (RenderSurface *surface, int x, int y, bool destmasked=false) |
virtual void | drawBlended (RenderSurface *surface, int x, int y, uint32 col, bool destmasked=false) |
ENABLE_RUNTIME_CLASSTYPE () | |
Protected Attributes | |
Texture * | texture |
TTFont * | font |
Definition at line 28 of file TTFRenderedText.h.
TTFRenderedText::TTFRenderedText | ( | Texture * | texture, | |
int | width, | |||
int | height, | |||
int | vlead, | |||
TTFont * | font | |||
) |
Definition at line 29 of file TTFRenderedText.cpp.
References RenderedText::height, RenderedText::vlead, and RenderedText::width.
TTFRenderedText::~TTFRenderedText | ( | ) | [virtual] |
void TTFRenderedText::draw | ( | RenderSurface * | surface, | |
int | x, | |||
int | y, | |||
bool | destmasked = false | |||
) | [virtual] |
Draw self to a rendersurface.
surface | The surface to draw to | |
x | X coordinate of target | |
y | Y coordinate of target. This will be the top baseline. |
Implements RenderedText.
Definition at line 43 of file TTFRenderedText.cpp.
References RenderSurface::Blit(), font, TTFont::getBaseline(), RenderedText::height, TTFont::isAntialiased(), RenderSurface::MaskedBlit(), texture, and RenderedText::width.
void TTFRenderedText::drawBlended | ( | RenderSurface * | surface, | |
int | x, | |||
int | y, | |||
uint32 | col, | |||
bool | destmasked = false | |||
) | [virtual] |
Draw self to a rendersurface blended (0xAABBGGRR, alpha is blend level).
Implements RenderedText.
Definition at line 55 of file TTFRenderedText.cpp.
References RenderSurface::FadedBlit(), font, TTFont::getBaseline(), RenderedText::height, TTFont::isAntialiased(), RenderSurface::MaskedBlit(), texture, and RenderedText::width.
TTFRenderedText::ENABLE_RUNTIME_CLASSTYPE | ( | ) |
Reimplemented from RenderedText.
TTFont* TTFRenderedText::font [protected] |
Texture* TTFRenderedText::texture [protected] |
Definition at line 43 of file TTFRenderedText.h.
Referenced by draw(), drawBlended(), and ~TTFRenderedText().