Home | All Classes | Grouped Classes | Index | Search
Insert glyphs and the font into a CL_GlyphBuffer.
CL_Font::PrintInfo draw_to_gb(
int x, int y, const std::string& str, CL_GlyphBuffer& gb);
CL_Font::PrintInfo draw_to_gb(
const CL_Rect& dest, const std::string& str, CL_GlyphBuffer& gb, const std::string& delim = std::string(" "));
CL_Font::PrintInfo draw_to_gb(
int x, int y, const std::string::const_iterator& start, const std::string::const_iterator& end, CL_GlyphBuffer& gb);
CL_Font::PrintInfo draw_to_gb(
const CL_Rect& dest, const std::string::const_iterator& start, const std::string::const_iterator& end, CL_GlyphBuffer& gb, const std::string& delim = std::string(" "));
Parameters:
Return value:
A CL_Font::PrintInfo, containing stats about the text that was inserted.
Detailed description:
You can specify a dest rectangle with a width or height of zero or less to disable word wrapping or height truncating, respectively.
See also: