A
download TextHelp.cpp
Language: C++
LOC: 18
Project Info
TableHockey3D(tablehockey)
Server: SourceForge
Type: cvs
...ey\CVSROOT\tablehockey\src\
   Application.cpp
   Application.h
   Camera.cpp
   Camera.h
   Cube.cpp
   Cube.h
   Data.cpp
   Data.h
   Disk.cpp
   Disk.h
   FloatingText.cpp
   FloatingText.h
   Floor.cpp
   Floor.h
   Input.cpp
   Input.h
   Light.cpp
   Light.h
   log.cpp
   log.h
   main.cpp
   mmgr.cpp
   mmgr.h
   Model.cpp
   Model.h
   nommgr.h
   Puck.cpp
   Puck.h
   Pyramid.cpp
   Pyramid.h
   scene.cpp
   scene.h
   SmartPtr.h
   Sound.cpp
   Sound.h
   TableHockey.dsp
   TableHockey.dsw
   TestScene.cpp
   TestScene.h
   text.cpp
   text.h
   TextHelp.cpp
   TextHelp.h
   texture.cpp
   texture.h
   TexturedCube.cpp
   TexturedCube.h
   timer.cpp
   timer.h
   View.cpp
   View.h

// 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();

}

About Koders | Resources | Downloads | Support | Black Duck | Terms of Service | DMCA | Privacy Policy | Contact Us