基于VC++与OpenGL的三维图形环境的构建 |
| |
引用本文: | 李长春,戴国洪. 基于VC++与OpenGL的三维图形环境的构建[J]. 电脑开发与应用, 2004, 17(6): 10-12 |
| |
作者姓名: | 李长春 戴国洪 |
| |
作者单位: | 苏州大学,苏州,215006;江苏技术师范学院,常州,213001 |
| |
基金项目: | 江苏省高校自然科学研究计划项目 (项目批准号 :0 2 KJB4 6 0 0 11)资助。 |
| |
摘 要: | 介绍了 Open GL绘图与 Windows编程的联系 ,阐述了实现 VC+ + 6 .0和 Open GL图形接口主要的两步工作是像素格式设置和关联 DC和 RC;在 VC+ + 6 .0下通过创建工程并加入支持 Open GL的连接库和头文件、设置 Open GL支持的 Windows窗口风格、设置像素格式、关联 RC(Rendering Contexts)和 DC(DeviceContexts) ,从而实现与 Open GL在 Windows操作系统下的图形接口 ,以构建三维图形开发环境。
|
关 键 词: | 三维图形 环境构建 接口 VC++6.0 OpenGL |
修稿时间: | 2003-09-10 |
Construction for 3D Graphic Environment based on VC++ and OpenGL |
| |
Abstract: | This paper introduces the relation between Ope nG L graphic and programming in Windows.The two steps,pixel format setting and conn ecting DC (Device Contexts)and RC(Rendering Contexts),for realizing the graphic interface of VC++6.0,are expounded.By establishing project,loading linking bas e and head file for OpenGL,setting the windows style for OpenGL,the pixel format and connecting DC and RC,the graphical interface is realized for VC++ and Ope nGL under Windows operation system,and 3D graphic developing environment is cons tructed. |
| |
Keywords: | D graphic environment environment constr uction interface VC++6.0 OpenGL |
本文献已被 CNKI 维普 万方数据 等数据库收录! |
|