// TextHelp.cpp: implementation of the CTextHelp class.
//
//////////////////////////////////////////////////////////////////////
#include "TextHelp.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CTextHelp::CTextHelp()
{
strText = "Press SPACE to toggle textures, H to toggle help, ESC to exit";
BuildFont();
}
CTextHelp::~CTextHelp()
{
}
void CTextHelp::Draw()
{
glPushMatrix();
glColor3f(0.5, 1.0, 0.5);
//glOrtho(.0f, 640.0f, 480.0f, 0.0f, -1.0f, 1.0f);
glRasterPos2f(-0.5f, -0.4f);
glTranslatef(0.0f, 0.0f,-1.0f); // Move One Unit Into The Screen
// Print GL Text To The Screen with the current FPS
glPrint(strText.c_str());
glPopMatrix();
}