Windows 上的 OpenGL SDK

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3272831/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 14:51:33  来源:igfitidea点击:

OpenGL SDK on Windows

windowsopenglsdk

提问by luiscubal

I'm trying to write an OpenGL application so I installed the Windows 7 SDK. However, it appears that it is OpenGL 1.1...

我正在尝试编写一个 OpenGL 应用程序,所以我安装了 Windows 7 SDK。但是,它似乎是 OpenGL 1.1 ...

#define GL_VERSION_1_1                    1

How can I find which version of OpenGL I have installed(*.dll) and where can I find the newer *.lib/*.h files?

如何找到我安装了哪个版本的 OpenGL (*.dll) 以及在哪里可以找到更新的 *.lib/*.h 文件?

回答by Jerry Coffin

Microsoft hasn't updated their OpenGL headers/libraries for quite a while. To use newer features, you normally want to use GLEWor GLEE.

微软已经有一段时间没有更新他们的 OpenGL 头文件/库了。要使用更新的功能,您通常要使用GLEWGLEE

回答by shadeglare

There is no new version of OpenGL in Win7. You must download new headers form opengl.org and use extension techniques of OpenGL to obtain advanced functionality. For version of OpenGL use this function glGetString

Win7中没有新版本的OpenGL。您必须从 opengl.org 下载新的头文件并使用 OpenGL 的扩展技术来获得高级功能。对于 OpenGL 版本,请使用此函数glGetString

回答by Robert Basler

I wrote my own OpenGL extension loader (like GLEE or GLEW) because I didn't like the licenses for the other available libraries. I don't think anyone should ever have to do this again, so I've made mine public domain, do with it as you will. I'd like to hear if you use it in something, but that's not a requirement. It supports up to OpenGL 4.1 at the moment.

我编写了自己的 OpenGL 扩展加载程序(如 GLEE 或 GLEW),因为我不喜欢其他可用库的许可证。我认为任何人都不应该再这样做了,所以我已经将我的公共领域设为了公共领域,您可以随意使用它。我想听听您是否在某些方面使用它,但这不是必需的。目前它最多支持 OpenGL 4.1。

http://www.onemanmmo.com/index.php?cmd=newsitem&comment=news.1.28.0

http://www.onemanmmo.com/index.php?cmd=newsitem&comment=news.1.28.0

回答by Divakar

If you have NVIDIA graphics, download NVIDIA OpenGL SDK. You get the latest compliant with OpenGL 4.4.

如果您有 NVIDIA 显卡,请下载 NVIDIA OpenGL SDK。您将获得与 OpenGL 4.4 兼容的最新版本。

First demo application is available from: http://msdn.microsoft.com/en-us/library/windows/desktop/dd369065%28v=vs.85%29.aspx

第一个演示应用程序可从:http: //msdn.microsoft.com/en-us/library/windows/desktop/dd369065%28v=vs.85%29.aspx