TTFRenderedText Class Reference

#include <TTFRenderedText.h>

Inheritance diagram for TTFRenderedText:

RenderedText List of all members.

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

Texturetexture
TTFontfont

Detailed Description

Definition at line 28 of file TTFRenderedText.h.


Constructor & Destructor Documentation

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]

Definition at line 38 of file TTFRenderedText.cpp.

References texture.


Member Function Documentation

void TTFRenderedText::draw ( RenderSurface surface,
int  x,
int  y,
bool  destmasked = false 
) [virtual]

Draw self to a rendersurface.

Parameters:
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.


Member Data Documentation

TTFont* TTFRenderedText::font [protected]

Definition at line 44 of file TTFRenderedText.h.

Referenced by draw(), and drawBlended().

Texture* TTFRenderedText::texture [protected]

Definition at line 43 of file TTFRenderedText.h.

Referenced by draw(), drawBlended(), and ~TTFRenderedText().


The documentation for this class was generated from the following files:
Generated on Fri Jul 27 22:30:04 2007 for pentagram by  doxygen 1.4.7