摘要
对OpenGL及其基本功能做了简要介绍.着重讨论了在VisualC++环境下,如何运用面向对象的思想,对传统的mp L编程习惯进行改进,将OpenGL函数和代码进行封装、重载,创建了可重用的OpenGL的图形类,实现了对这部分代码的共享,大大减少了程序的冗余代码,增加了程序的可维护性.还介绍了如何利用OpeGL中的纹理映射和融合调整技术,在某一场景中生成具有真实感的任意形状的光栅图像,所生成的图像运行效果良好.
The article briefly introduces the functions of OpenGL, then emphasizes on how to improve the traditional habit or OpenGL programming under the environment of Visual C++. We encapsulate functions and codes of OpenGL and establish the reusable graphic class using the thinking of Object-Oriented, therefore, the share of these parts of codes is realized and the maintainability of program is improved. We also introduces the way how to produce the discretionary shape and living raster image using the texture mapping and blending adjustment technique of OpenGL in the virtual scene.
出处
《沈阳工业大学学报》
CAS
2000年第4期321-324,共4页
Journal of Shenyang University of Technology