FONT Class Reference

#include <font.h>

Collaboration diagram for FONT:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 FONT ()
 ~FONT ()
void Load ()
void Print (float px, float py, const char *string, int set, int size, float opacity)
void Print (float px, float py, const char *string, int set, int size, float r, float g, float b)
void Print (float px, float py, const char *string, int set, int size, float r, float g, float b, float trans)
float Width (const char *str, int set, int size)
float Height (const char *str, int set, int size)

Private Member Functions

void GetSizing (int size, int &sx, int &sy)

Private Attributes

GLuint base
TEXTURE_HANDLE texture
ofstream error_log
int spacing [2][128]
bool loaded

Detailed Description

Definition at line 42 of file font.h.


Constructor & Destructor Documentation

FONT::FONT  ) 
 

Definition at line 19 of file font.cpp.

References error_log, SETTINGS::GetSettingsDir(), loaded, and settings.

FONT::~FONT  ) 
 

Definition at line 26 of file font.cpp.

References base, error_log, loaded, texture, TEXTURE_HANDLE::Unload(), and verbose_output.


Member Function Documentation

void FONT::GetSizing int  size,
int &  sx,
int &  sy
[private]
 

Definition at line 415 of file font.cpp.

Referenced by Height(), Print(), and Width().

float FONT::Height const char *  str,
int  set,
int  size
 

Definition at line 397 of file font.cpp.

References GetSizing().

Referenced by VGUI::Toggle::Draw(), VGUI::TextBox::Draw(), VGUI::Slider::Draw(), VGUI::Label::Draw(), VGUI::Button::Draw(), VGUI::Wheel2< wheel_t1, wheel_t2 >::Draw(), and VGUI::Wheel< wheel_t >::Draw().

void FONT::Load  ) 
 

Definition at line 45 of file font.cpp.

References base, SETTINGS::GetFullDataPath(), loaded, settings, spacing, texture, and TEXTURE_HANDLE::Unload().

Referenced by ChangeDisplay(), and InitGL().

void FONT::Print float  px,
float  py,
const char *  string,
int  set,
int  size,
float  r,
float  g,
float  b,
float  trans
 

Definition at line 220 of file font.cpp.

References TEXTURE_HANDLE::Activate(), base, GetSizing(), and texture.

void FONT::Print float  px,
float  py,
const char *  string,
int  set,
int  size,
float  r,
float  g,
float  b
 

Definition at line 215 of file font.cpp.

References Print().

void FONT::Print float  px,
float  py,
const char *  string,
int  set,
int  size,
float  opacity
 

Definition at line 315 of file font.cpp.

Referenced by TIMER::Draw(), VGUI::Toggle::Draw(), VGUI::TextBox::Draw(), VGUI::Slider::Draw(), VGUI::Page::Draw(), VGUI::Label::Draw(), VGUI::Calibrate::Draw(), VGUI::Button::Draw(), VGUI::Wheel2< wheel_t1, wheel_t2 >::Draw(), VGUI::Wheel< wheel_t >::Draw(), Vamos_Body::Gl_Car::draw_string(), VAMOSWORLD::DrawHUD(), LoadingScreen(), and Print().

float FONT::Width const char *  str,
int  set,
int  size
 

Definition at line 320 of file font.cpp.

References GetSizing(), and spacing.

Referenced by VGUI::Button::Button(), VGUI::Toggle::Draw(), VGUI::TextBox::Draw(), VGUI::Slider::Draw(), VGUI::Page::Draw(), VGUI::Label::Draw(), VGUI::Calibrate::Draw(), VGUI::Button::Draw(), VGUI::Wheel2< wheel_t1, wheel_t2 >::Draw(), VGUI::Wheel< wheel_t >::Draw(), VGUI::TextBox::MousePress(), VGUI::TextBox::MouseRelease(), VGUI::TextBox::SetSpacing(), and VGUI::TextBox::TextBox().


Member Data Documentation

GLuint FONT::base [private]
 

Definition at line 45 of file font.h.

Referenced by Load(), Print(), and ~FONT().

ofstream FONT::error_log [private]
 

Definition at line 48 of file font.h.

Referenced by FONT(), and ~FONT().

bool FONT::loaded [private]
 

Definition at line 52 of file font.h.

Referenced by FONT(), Load(), and ~FONT().

int FONT::spacing[2][128] [private]
 

Definition at line 50 of file font.h.

Referenced by Load(), and Width().

TEXTURE_HANDLE FONT::texture [private]
 

Definition at line 46 of file font.h.

Referenced by Load(), Print(), and ~FONT().


The documentation for this class was generated from the following files:
Generated on Thu Oct 19 04:11:50 2006 by  doxygen 1.4.6