| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 3256 人关注过本帖
标题:VC6.0中如何使用openGL
只看楼主 加入收藏
holy_pigh
Rank: 1
等 级:新手上路
帖 子:17
专家分:5
注 册:2010-12-8
结帖率:100%
收藏
已结贴  问题点数:30 回复次数:17 
VC6.0中如何使用openGL
最近去图书馆找了本openGL的书看看,但是不知道如何在vc6.0中使用openGL,求详细步骤,万分感谢!
搜索更多相关主题的帖子: 图书馆 
2011-03-10 13:40
hellovfp
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:禁止访问
威 望:30
帖 子:2976
专家分:7697
注 册:2009-7-21
收藏
得分:0 
你的这本OpenGL的书没有讲么?真的没有讲的话,换一本吧,把自己有限的时间投入到经典的书籍中去。

我们都在路上。。。。。
2011-03-10 14:29
BlueGuy
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:29
帖 子:4476
专家分:4055
注 册:2009-4-18
收藏
得分:0 
如果不出意外的话, 下周一本人的作品就可以亮相 bccn,
顺便教教 EasyX的作者 Vc6.0中如何使用openGL~~
不过,这次跟以往不同, 这次只会有可执行程序
收到的鲜花
  • 卧龙孔明2011-03-11 09:33 送鲜花  -1朵   附言:-,-

我就是真命天子,顺我者生,逆我者死!
2011-03-10 21:30
刘定邦
Rank: 10Rank: 10Rank: 10
等 级:青峰侠
帖 子:687
专家分:1570
注 册:2010-9-21
收藏
得分:0 
期待别出意外.....
2011-03-10 21:41
qq1023569223
Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19
来 自:湖南科技大学
等 级:贵宾
威 望:26
帖 子:2753
专家分:13404
注 册:2010-12-22
收藏
得分:20 
glutdlls37beta.zip (145.94 KB)

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. )

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)
   For example,window XP is "C:\Windows\system32".
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

   唯实惟新 至诚致志
2011-03-10 21:53
BlueGuy
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:29
帖 子:4476
专家分:4055
注 册:2009-4-18
收藏
得分:0 
回复 4楼 刘定邦
不是问题的问题都已经解决, 剩下的就是时间问题了,相信两天内可以搞定。
唉, 也就你在期待了,

[ 本帖最后由 BlueGuy 于 2011-3-10 22:07 编辑 ]

我就是真命天子,顺我者生,逆我者死!
2011-03-10 22:00
BlueGuy
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:29
帖 子:4476
专家分:4055
注 册:2009-4-18
收藏
得分:10 
图片附件: 游客没有浏览图片的权限,请 登录注册

这是一张 opengl的字体测试程序,字体绘制的难度远高于 图像,
因为其涉及编码转换。你可以自己试想一下纯手工绘制文字的难度,别动不动叫板 ACM,
收到的鲜花
  • 卧龙孔明2011-03-11 09:32 送鲜花  -1朵   附言:-,-

我就是真命天子,顺我者生,逆我者死!
2011-03-10 23:19
windlove
Rank: 1
等 级:新手上路
帖 子:7
专家分:9
注 册:2011-3-9
收藏
得分:0 
路过支持中
2011-03-11 03:25
卧龙孔明
Rank: 9Rank: 9Rank: 9
等 级:贵宾
威 望:59
帖 子:3872
专家分:684
注 册:2006-10-13
收藏
得分:0 
以下是引用BlueGuy在2011-3-10 23:19:13的发言:


这是一张 opengl的字体测试程序,字体绘制的难度远高于 图像,
因为其涉及编码转换。你可以自己试想一下纯手工绘制文字的难度,别动不动叫板 ACM,


绘制文字没什么难度。
要绘制ASCII(包括换行符)+汉字只需要17行(或更短)。
收到的鲜花
  • 观弈寒儒2011-03-11 16:32 送鲜花  5朵   附言:代码能不能展示一下?

My Blog: www.aiexp.info
虽然我的路是从这里开始的,但是这里不再是乐土.感谢曾经影响过,引导过,帮助过我的董凯,飞燕,leeco,starwing,Rockcarry,soft_wind等等等等.别了,BCCN.
2011-03-11 09:39
BlueGuy
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:29
帖 子:4476
专家分:4055
注 册:2009-4-18
收藏
得分:0 
以下是引用卧龙孔明在2011-3-11 09:39:18的发言:

 
 
绘制文字没什么难度。
要绘制ASCII(包括换行符)+汉字只需要17行(或更短)。
御姐是开发图形库的, 你问问她是不是17行就能搞定的?
1700 行还差不多,

我就是真命天子,顺我者生,逆我者死!
2011-03-11 11:00
快速回复:VC6.0中如何使用openGL
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.021936 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved