Text.h
上传用户:hkb425
上传日期:2007-06-16
资源大小:34191k
文件大小:1k
- // Text.h: interface for the CText class.
- //作者:吴雪平 2002-6-17日修改
- //显示文字、帧速率
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_TEXT_H__AE080081_DDA5_11D5_812C_5254AB37CDC9__INCLUDED_)
- #define AFX_TEXT_H__AE080081_DDA5_11D5_812C_5254AB37CDC9__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CText
- {
- public:
- CText();
- virtual ~CText();
- bool InitRasterText();
- void PrintString(char* string);
- void ShowInformation();
- private:
- bool makeRasterFont();
- unsigned int fontOffset;
- /////////////////////////Some variables of FPS counter/////////////////////////////
- int FrameTime0, FrameTime1, FrameCount0, FrameCount1, FrameRate;
- char infoStr[128];
- };
- #endif // !defined(AFX_TEXT_H__AE080081_DDA5_11D5_812C_5254AB37CDC9__INCLUDED_)