在Visual C ++上使用opengl的前提条件是什么 [英] what is the prerequisites for using opengl on visual C++

查看:116
本文介绍了在Visual C ++上使用opengl的前提条件是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习opengl的基础知识,每次我想训练和输入一些代码时,编译器似乎都不熟悉gl/gl.h和gl/glu.h库.

在哪里可以下载编译器执行我的代码所需的内容,使我的代码顺畅流畅?

还有一个愚蠢的问题-但我真的必须知道它的答案-这是:
我应该使用控制台应用程序吗?


我只是想知道...
为什么这里的人听起来对我来说很重要,尽管只想学习很少的东西..认为此站点将帮助我提高技能,但是我看到的完全相反,这使我感到失望. .

您就像向导一样...不想教导普通人或最终用户事情的真实运行方式,只是向他们展示他们有多薄弱,所以他们不能像您那样做.

如果删除此评论,则证明我对你们是正确的,并说明您如何真正向人们隐藏真实信息.

感谢您的收听.
[/edit]

I''m learning the basics of opengl, and each time I want to train and enter some code, the compiler seems unfamiliar with gl/gl.h & gl/glu.h library.

Where can I download what it needs for the compiler to execute me code nice and smooth?

and another silly question -but I really must know it''s answer- which is:
should I use console application?

[edit OP''s answer moved to here]
I''m just wondering...
why people here sounds mean to me, despite of just wanting to learn few things..thinking that this site is going to help me to improve my skills, but I see it''s totally the opposite -that made me disappointed-...

You just like the wizards...don''t want to teach ordinary people or end-users how things really work.You just show them how criple & weak they are, so they can''t do as you.

If this comment is deleted, then that proves That I''m right about you guys, and shows how you really hide the TRUE information from people.

Thanks for listening.
[/edit]

推荐答案

您将需要opengl SDK开头.

http://www.opengl.org/sdk/ [
You''ll need the opengl SDK to start with.

http://www.opengl.org/sdk/[^]


您是否考虑过使用Google查找所需的信息? OpenGL是一个广泛的话题.
Did you consider using google to find the info you need? OpenGL is a broad topic.


(我假设您在Windows上并且正在使用现代视觉工作室)

-OpenGL库应包含在Visual Studio发行版中.
-gl.h和glu.h包括在内.
-您应该使用SDI或MDI(或多个顶级)应用程序类型;不是控制台应用程序.

我刚刚使用VS2008创建了一个虚拟应用程序(多个顶级窗口),并包含了头文件:

( I assume you are on windows and using a modern visual studio)

- OpenGL libraries should be included in the Visual Studio distribution.
- The gl.h and glu.h includes should be there.
- you should use a SDI or MDI (or multiple top level) application type; NOT a console application.

I just created a dummy application ( multiple top level windows ) with VS2008 and inluded the header files :

// OpenGL headers
#include "gl\gl.h"
#include "gl\glu.h"



和所有看起来花花公子...
如果其中没有包含,请在硬盘驱动器上搜索文件,然后再次检查Visual Studio的安装.

另外,不要忘记与
链接



And all looks dandy...
If the include are not there, search for the files on your hard-drive and check again the installation of Visual Studio.

also, don''t forget to link with

opengl32.lib
glu32.lib



最多



Max.


这篇关于在Visual C ++上使用opengl的前提条件是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆