专栏中心

EEPW首页 > 专栏 > 基于VC++6.0的OpenGL开发环境的搭建

基于VC++6.0的OpenGL开发环境的搭建

发布人:0750long 时间:2009-07-22 来源:工程师 发布文章
基于VC++6.0的OpenGL开发环境的搭建

 

官方原文:

 With thanks to Kamil Saykali of the EdCenter:

This part will show how to install the glut libraries and dll's (to download it go to http://reality.sgi.com/opengl/glut3/glut3.html )

1. After you have downloaded the glut.zip file (you should get the latest ver 3.7) unzip it into a folder

2. Inside the folder you should have:

glut.dll

glut32.dll

glut.h

glut.lib

glut32.lib

3. Copy both glut.dll and glut32.dll into your windows directory (windows or winnt, depends on if you are using Windows95/98 or Windows NT)

4. Copy your glut.h to:

<drive>:\<VC++ path>\include\GL\glut.h

*** put the drive where you installed VC++ instead of the <drive> ***

*** put the directory where you installed VC++ instead of the <VC++ path>

5. Copy your glut.lib and glut32.lib to:

<drive>:\<VC++ path>\lib\glut.lib

<drive>:\<VC++ path>\lib\glut32.lib

*** put the drive where you installed VC++ instead of the <drive> ***

*** put the directory where you installed VC++ instead of the <VC++ path>

6. That should be it for installed the glut libraries. The rest of this letter shows you how to setup VC++ so that you can use the glut libraries.

This will show you how to start up an opengl project and setup the setting so that you will be able to compile and run the program. This is assuming that you have already downloaded the appropriate files and installed them in the directories that there documentation tell you to. If you have not done that you need to do it before you can run or write an opengl program.

1. Start VC++ and create a new project.

2. The project has to be a "Win32 Console Application"

3. Type in the name of the project and where it will be on your hard drive.

4. Chose an empty project and click next or finish

5. First thing you need to do when the project opens up is to click on the "Project" menu item from the top.

6. Chose "Settings" (a window will come up)

7. On the left side of the window there are tabs, chose the "Link" tab

8. The string field labeled "Object/library modules" has a few lib files already set in it

9. Go to the end of this string field and enter:

opengl32.lib glut32.lib glu32.lib

10. Chose "OK" and that will include all the opengl libraries that you need

11. Now all you need to do is include <gl\glut.h> and you are ready to go

专栏文章内容及配图由作者撰写发布,仅供工程师学习之用,如有侵权或者其他违规问题,请联系本站处理。 联系我们

关键词:

相关推荐

无贵金属镀层的智能集成电路基板

弥合差距:为何设计师与制造商的合作在PCB制造中至关重要

日本开发10纳米印记技术,有望解决极紫外(EUV)瓶颈问题

嵌入式系统 2025-12-29

RZ/A3M:功能强大的 1GHz MPU,内置 DDR3L SDRAM,用于高清 HMI

嵌入式系统 2025-12-29

通孔、顺序层压与电镀:在PCB设计中导航它们在信号完整性中的作用

集成隔离式 CAN 收发器 - ISO1050

视频 2010-03-18

锂电池的充电特点和 TI 最新充电管理技术

视频 2010-03-18

Innoviz推出InnovizThree LiDAR系统,采用更低成本、更纤薄的设计

理解四层PCBs:全面指南

48伏系统:传统与轻度混合动力车的最佳选择

吉利插电式混合动力车创下真实油耗纪录

模拟器件 - 时 钟: EMI 降低

视频 2010-03-18

可编程,低成本音频 DSP TAS3K系列

视频 2010-03-18

Cadence在台积电N3P上以64Gbps的速率对UCIe IP进行录送

开关电源基础介绍之 DC/DC 变换器

视频 2010-03-18
更多 培训课堂
更多 焦点
更多 视频

技术专区