摘要
MFC的视图没有提供直接的OpenGL操作支持.在分析OpenGL特点的基础上,提出一套方法,将OpenGL的各种功能进行适当改造后封装到视图的派生类中,使OpenGL支持面向对象编程,而支持MFC调用,易于开发出功能强大的真实感显示图形平台.此方法可供图形编程人员借鉴.
The CView class of MFC (Microsoft Foundation Class) did not directly support OpenGL operation. On the basis of analyzing the characteristics of OpenGL software package, a series of technique to reform OpenGL were described in detail. As a result, various functions of OpenGL have been encapsulated to the derived class of CView. Then OpenGL was able to support OOP(Object Oriented Programming), and that supporting MFC. Then realistic display graphics platforms with high performance could be easily developed. Methods in the article may be used for reference to graphics programmers.
出处
《北京工商大学学报(自然科学版)》
CAS
2004年第2期42-46,共5页
Journal of Beijing Technology and Business University:Natural Science Edition