www.pudn.com > DEM_TDS.rar > OpenGLText.h, change:2007-05-30,size:1139b


// OpenGLText.h: interface for the COpenGLText class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_OPENGLTEXT_H__967BF93E_D201_4175_BF4D_A56609F4441C__INCLUDED_) 
#define AFX_OPENGLTEXT_H__967BF93E_D201_4175_BF4D_A56609F4441C__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
#include <string> 
 
class COpenGLText   
{ 
public: 
     //构造文字 
 	 COpenGLText(string str,double Height=1,char *strFontName="宋体", 
		 double dX=0,double dY=0,double dZ=0,double angle=0,float x=0,float y=0,float z=0); 
	 double m_angle,m_x,m_y,m_z; 
     virtual ~COpenGLText(); 
     //绘制制定字体的文字,字体只在第一次绘制时进行设置,之后可以传入空值 
     void Draw(); 
     //释放文字所占空间 
     void Free(); 
     //文字字符串 
     string m_str; 
     //字符串高度 
     double m_dHeight; 
     //字符串位置 
     double m_dX; 
     double m_dY; 
	 double m_dZ; 
	 char *strFontName; 
protected: 
     BOOL GenList(); 
     BOOL GenCharsLists(); 
     int m_iDisplayList; 
}; 
 
 
#endif // !defined(AFX_OPENGLTEXT_H__967BF93E_D201_4175_BF4D_A56609F4441C__INCLUDED_)