SDL_ttf++
C++wrapperfortheSDL_ttflibrary.

sdl::ttf::Solid Struct Reference

Renders a font as solid. More...

#include <RenderModes.h>

List of all members.

Public Member Functions

 Solid (const Color &color)
Surface render (const Font &font, char c) const
template<int Encoding>
Surface render (const Font &font, const string &text) const

Detailed Description

Renders a font as solid.

Definition at line 40 of file RenderModes.h.


Constructor & Destructor Documentation

sdl::ttf::Solid::Solid ( const Color &  color) [inline]

Constructs a Solid font renderer with the specified color mask.

Parameters:
colorThe color mask for the Font.

Definition at line 46 of file RenderModes.h.


Member Function Documentation

Surface sdl::ttf::Solid::render ( const Font font,
char  c 
) const [inline]

Returns a Surface containing c rendered in font.

Parameters:
fontThe Font to use.
cThe character to render.
Returns:
The rendered Surface.

Definition at line 56 of file RenderModes.h.

Surface sdl::ttf::Solid::render< UNICODE > ( const Font font,
const string &  text 
) const [inline]

Returns a Surface containg text rendered in font.

Template Parameters:
EncodingThe string encoding.
Parameters:
fontThe font to use.
textThe string to render.
Returns:
The rendered Surface.

Definition at line 71 of file RenderModes.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Enumerations Enumerator