www.pudn.com > glGraph.rar > glGraph.h


// glGraph.h: interface for the glGraph class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_GLGRAPH_H__D4AC420A_967C_404E_8EF9_4D571A1A6248__INCLUDED_) 
#define AFX_GLGRAPH_H__D4AC420A_967C_404E_8EF9_4D571A1A6248__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#define POIN 0 
#define LINE 1 
#define POLYGON 2 
 
class glGraph   
{ 
public: 
	int GetScale(); 
	void SetScale(int s); 
	float* GetColor(); 
	int GetType(); 
	void SetType(int t); 
	void SetColor(float* c); 
	glGraph(); 
	virtual ~glGraph(); 
	virtual void Draw() = 0; 
 
protected: 
	float color[3];	//图形的颜色 
	int type;	//图形的类型 
	int scale;//线的宽度 
}; 
 
#endif // !defined(AFX_GLGRAPH_H__D4AC420A_967C_404E_8EF9_4D571A1A6248__INCLUDED_)