RavBitmapFont Class Reference

Bitmap font class. More...

#include <RavBitmapFont.h>

List of all members.

Public Member Functions

 RavBitmapFont (char *tgafilename, char *defFilename)
 Construct based on an image file and family file. DEPRECATED.
 RavBitmapFont (char *sharedfilename)
 Construct based on the shared family ({sharedfilename}.png and {sharedfilename}.fnt).
virtual void print (string text, int x, int y)
 Print normally.
virtual void sprint (int x, int y, string text,...)
 Print with a format string.
virtual void shadowprint (int x, int y, string text,...)
 Print with a format string, and render drop shadows under the text.
virtual void rightAlignPrint (int x, int y, float alpha, string text,...)
 Print with a format string "right aligned" from X.
virtual void rightAlignPrint (int x, int y, string text,...)
 Print with a format string "right aligned" from X.
virtual void print (string text, int x, int y, float alpha)
 Print with alpha (translucency).
virtual void mathprint (int x, int y, float offset, float step, float amplitude, float(*function)(float), string text,...)
 Print using a mathematical function like sin; useful for cracktros.
virtual int getWidthForString (string text,...)
 Return the width (in pixels) that a theoretical string will have after being printed out.
void setFontColour (Uint8 r, Uint8 g, Uint8 b)
 Set the font colour using SDL-style unsigned RGB bytes.
void setFontColourf (float r, float g, float b)
 Set the font colour using OpenGL-style RGB single-precision floats.
void setDefaultColour (float r, float g, float b)
 Set the font colour that the font will reset to after using an inline colour.
virtual int getLineHeight ()
 Return the height of ONE line of text.
void debugPrint ()
 (DEBUG ONLY) Print some information about the font to stdout.
virtual ~RavBitmapFont ()
 Destroy the font.


Detailed Description

Bitmap font class.


The documentation for this class was generated from the following files:
Generated on Thu Aug 31 20:26:03 2006 for Propane Injector by  doxygen 1.4.7