Namespaces | Functions

glut-font-effects.cpp File Reference

#include "glut-font-effects.h"
#include "glut/glut.h"
#include "perf/perf.h"
#include "util/parsing.h"
Include dependency graph for glut-font-effects.cpp:

Go to the source code of this file.

Namespaces

namespace  glut

Functions

smart_ptr< FontEffect > glut::getCharacterAdvanceEffect (smart_ptr< Font > &font,const char *lines,int millisecondsPerCharacter,const glut_color_t &color)
 this font effect will write out lines of text one character at a time.
void glut::breakLongString (const char *text,Font *font,int maxPixelWidth,std::string &output)
 given a long sequence of words in a given font, this routine returns the same words, only with line breaks inserted so that a single line is never longer than the specified width.