C++ 在 Windows 上开始使用 OpenGL ES 2.0
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1446461/
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
Getting started with OpenGL ES 2.0 on Windows
提问by Buggieboy
This is a very specific questions about the steps necessary to Build a simple OpenGL ES 2.0 program on the Windows platform. The environment is Visual Studio with unmanaged C++.
这是一个关于在 Windows 平台上构建简单 OpenGL ES 2.0 程序所需步骤的非常具体的问题。环境是带有非托管 C++ 的 Visual Studio。
I go to the Khronos.org site and, frankly, find it a bit opaque because it reads like something written by a standards body. I don't want to download a "reference" or a "specification", etc.
我访问了 Khronos.org 站点,坦率地说,发现它有点不透明,因为它读起来像是标准机构编写的东西。我不想下载“参考”或“规范”等。
All I'm looking for are the links and steps to get me from A to B. In other words, "Download these files or run this setup at this URL. Create a new Visual studio project with references to these libraries. Include this header file."
我正在寻找的只是让我从 A 到 B 的链接和步骤。换句话说,“下载这些文件或在此 URL 上运行此设置。创建一个新的 Visual Studio 项目并引用这些库。包括此标题文件。”
Again, I'm interested in ES 2.0.
同样,我对 ES 2.0 感兴趣。
采纳答案by bcowcher
After alot of digging around for the same thing. I found an emulator for openGL es 2 from PowerVR: http://www.imgtec.com/powervr/insider/sdkdownloads/index.asp
在为同样的事情进行了大量挖掘之后。我从 PowerVR 找到了一个用于 openGL es 2 的模拟器:http: //www.imgtec.com/powervr/insider/sdkdownloads/index.asp
The AMD one linked above is no longer available or supported.
上面链接的 AMD 不再可用或受支持。
回答by Paul Bruner
I have been using googles Angle Project. It converts opengles 2.0 to DirectX 9 calls for win32. It works fairly well and even has quite a few examples. Its also the BSD licence so anything you make you can use the source for your own projects.
我一直在使用谷歌角度项目。它将 opengles 2.0 转换为 Win32 的 DirectX 9 调用。它工作得相当好,甚至有很多例子。它也是 BSD 许可证,因此您可以将源代码用于您自己的项目。
回答by przemo_li
AMD bundle OpenGL ES with their normal Catalyst drivers (for Win & Lin).
AMD 将 OpenGL ES 与其正常的 Catalyst 驱动程序(用于 Win & Lin)捆绑在一起。
You just need to use EGL to get OpenGL ES context! (And have to use headers/includes from AMD OpenGL ES SDK).
你只需要使用 EGL 来获取 OpenGL ES 上下文!(并且必须使用来自 AMD OpenGL ES SDK 的头文件/包含文件)。
- AMD users already have everything they need to run your app.
Every doc about EGL and OGL ES is valid.
It work on AMD only.
- AMD 用户已经拥有运行您的应用程序所需的一切。
每个关于 EGL 和 OGL ES 的文档都是有效的。
它仅适用于 AMD。
PS Yes it is different from OLD/DEPRECATED OpenGL ES emulator. Because it is native!!!
PS 是的,它与 OLD/DEPRECATED OpenGL ES模拟器 不同。因为是国产!!!
回答by Tim Child
AMD now ship a desktop OpenGL ES 2.0 version with EGL library http://developer.amd.com/tools/graphics-development/amd-opengl-es-sdk/
AMD 现在发布带有 EGL 库的桌面 OpenGL ES 2.0 版本 http://developer.amd.com/tools/graphics-development/amd-opengl-es-sdk/
回答by eozgonul
You can have a look at Angle Project which brings OpenGL ES to desktops. It works pretty good and not that hard to setup: http://code.google.com/p/angleproject/
您可以查看将 OpenGL ES 引入桌面的 Angle Project。它工作得很好而且设置起来并不难:http: //code.google.com/p/angleproject/
回答by shoosh
OpenGL ES is not generally available for Desktop machines. It is intended for embedded systems, hence the name - ES: Embedded Systems.
OpenGL ES 通常不适用于台式机。它适用于嵌入式系统,因此得名 - ES:嵌入式系统。
回答by Andrew Khosravian
There isn't a native implementation available (the ES stands for Embedded Systems after all), but you could try ATI's OpenGL ES Emulator.
没有可用的本机实现(毕竟 ES 代表嵌入式系统),但您可以尝试 ATI 的OpenGL ES Emulator。
edit: 3/3/12 I got a down vote on this response, and it looks like AMD has discontinued their support of the simulator.
编辑:2012 年 3 月 3 日我对这个回复投了反对票,看起来 AMD 已经停止了对模拟器的支持。