src/font.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define _FONT_H_

Functions

void EnterTextMode (int width, int height)
void ExitTextMode ()


Define Documentation

#define _FONT_H_

Definition at line 7 of file font.h.


Function Documentation

void EnterTextMode ( int  width,
int  height 
)

Definition at line 16 of file font.cpp.

Referenced by IGameState::DisplaySplashScreen(), IGameState::Loop(), MainMenu::SwitchTo(), Map::SwitchTo(), StateBattle::SwitchTo(), StateDone::SwitchTo(), StateCity::SwitchTo(), and StateNewGame::SwitchTo().

00016                                           {
00017   glMatrixMode(GL_PROJECTION);
00018   glLoadIdentity();
00019 
00020   gluOrtho2D(0, width, height, 0);
00021 
00022   glMatrixMode(GL_MODELVIEW);
00023   glLoadIdentity();
00024 
00025   glBlendFunc(GL_SRC_ALPHA, GL_ONE);
00026   glEnable(GL_TEXTURE_2D);
00027   glEnable(GL_BLEND);
00028   glDisable(GL_LIGHTING);
00029   glDisable(GL_DEPTH_TEST);
00030   glDisable(GL_CULL_FACE);
00031 }

void ExitTextMode (  ) 

Definition at line 33 of file font.cpp.

00033                     {
00034   glEnable(GL_LIGHTING);
00035   glEnable(GL_DEPTH_TEST);
00036   glEnable(GL_CULL_FACE);
00037   glDisable(GL_BLEND);
00038 }


Generated on Mon Jan 8 22:34:13 2007 for CrownandCutlass by  doxygen 1.4.7