首页> 中文期刊>沈阳工业大学学报 >OPenGL实用编程技巧两则

OPenGL实用编程技巧两则

     

摘要

The article briefly introduces the functions of OpenGL, then emphasizes on how to improve the traditional habit of 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.%对OpenGL及其基本功能做了简要介绍.着重讨论了在Visual C++环境下,如何运用面向对象的思想,对传统的OpenGL编程习惯进行改进,将OpenGL函数和代码进行封装、重载,创建了可重用的OpenGL的图形类,实现了对这部分代码的共享,大大减少了程序的冗余代码,增加了程序的可维护性.还介绍了如何利用OpenGL中的纹理映射和融合调整技术,在某一场景中生成具有真实感的任意形状的光栅图像,所生成的图像运行效果良好.

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号