有没有一种快速方法可以在 Xcode 中检索 OpenGL ES 函数和符号的文档?

发布于 2024-11-25 22:47:01 字数 121 浏览 3 评论 0原文

在学习 OpenGL ES 2.0 时,我发现在线查找 OpenGL ES 相关符号(例如 glBindFramebuffer)很不方便。也许有更好的方法?有没有更好的 OpenGL ES 文档浏览器?

While learning OpenGL ES 2.0 I find it inconvenient to look up OpenGL ES related symbols like glBindFramebuffer online. Maybe there is a better way? Is there a better documentation browser for OpenGL ES?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

独自唱情﹋歌 2024-12-02 22:47:03

这是另一种方法。不完全适合 XCode,但我认为它仍然有用。

可以使用所有 OpenGL 文档的源代码克隆存储库。使用您最喜欢的 SVN 或 CVS 客户端:

svn co --username anonymous --password anonymous https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/docs/manglsl glsl
svn co --username anonymous --password anonymous https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/docs/man2 opengl_2
svn co --username anonymous --password anonymous https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/docs/man3 opengl_3
svn co --username anonymous --password anonymous https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/docs/man4 opengl_4
svn co --username anonymous --password anonymous https://cvs.khronos.org/svn/repos/ogles/trunk/sdk/docs opengl_es_2_3
svn co --username anonymous --password anonymous https://cvs.khronos.org/svn/repos/registry/trunk/public/egl/sdk/docs opengl_es_1

之后,您需要找到适当的“index.php”文件并在浏览器中打开它。
这样,您将获得左侧带有索引的手册页,就像脱机文档一样。

如果您愿意,您可以获取更多:“生态系统”存储库中至少有“超级圣经”书籍资源。只需向上导航一些级别即可。

详细信息请参见维基页面:
http://www.opengl.org/wiki/Getting_started/XML_Toolchain_and_Man_Pages

Here is one more way. Not exactly for XCode, but I think it is still useful.

It is possible to clone repository with source code of all OpenGL docs. Use your favorite SVN or CVS client:

svn co --username anonymous --password anonymous https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/docs/manglsl glsl
svn co --username anonymous --password anonymous https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/docs/man2 opengl_2
svn co --username anonymous --password anonymous https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/docs/man3 opengl_3
svn co --username anonymous --password anonymous https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/docs/man4 opengl_4
svn co --username anonymous --password anonymous https://cvs.khronos.org/svn/repos/ogles/trunk/sdk/docs opengl_es_2_3
svn co --username anonymous --password anonymous https://cvs.khronos.org/svn/repos/registry/trunk/public/egl/sdk/docs opengl_es_1

After that, you will need to find appropriate an 'index.php' file and open it in browser.
This way you will get man pages with an index on the left side, just like in offline docs.

You can grab more if you wish: there are at least "Super Bible" book sources at "ecosystem" repository. Just navigate some levels up.

See wiki page for details:
http://www.opengl.org/wiki/Getting_started/XML_Toolchain_and_Man_Pages

天冷不及心凉 2024-12-02 22:47:02

我找不到离线文档,因此我为 OpenGL ES 2.0 打包了 Dash Docsets 和1.1.如果您不使用 Dash,您仍然可以参考 HTML 文档。

I couldn't find offline documentation so I packaged Dash Docsets for OpenGL ES 2.0 and 1.1. If you dont use Dash, you can still refer to the HTML documentation.

怎会甘心 2024-12-02 22:47:02

嗯,我猜有 OpenGL ES 2.0 参考页 (http://www.khronos.org/opengles/sdk/docs/man/),但这是在线的。

您可以随时打印快速参考Card,这很有帮助,但前提是您对相关功能有一点了解。

最后,如果使用 C++,您可以尝试 GLES 模拟器。这是我的一位同事编写的,它包含 OpenGL ES 2.0 标头以及从在线文档中提取的文档注释。你可以:
- 直接在 Visual Studio 或 Eclipse 中使用它
- 生成 Doxygen,以获取 OpenGL 文档的离线版本
- 使用一些 bash 魔法将注释从“C”头文件传输到 NDK 类文件

希望这有帮助......
(对链接感到抱歉,我缺乏发布> 2个链接的声誉)

Well, I guess there are the OpenGL ES 2.0 Reference Pages (http://www.khronos.org/opengles/sdk/docs/man/), but that is online.

You could always print the Quick Reference Card, that is helpful, but only if you know a little bit about the functions in question.

And finally, if working in C++, you could give a try to GLES Emulator. This was written by a colleague of mine, it contains OpenGL ES 2.0 headers with documentation comments extracted from online documentation. You can:
- either use it directly in Visual Studio or Eclipse
- generate Doxygen out of it, to get offline version of the OpenGL documentation
- use some bash magic to transfer the comments from "C" header file to NDK class file

Hope this helps ...
(and sorry abouth the link, i lack reputation to post >2 links)

无敌元气妹 2024-12-02 22:47:02
$ wget -r -l 2 http://www.khronos.org/opengles/sdk/docs/man/xhtml/index.html
$ wget -r -l 2 http://www.khronos.org/opengles/sdk/docs/man/xhtml/index.html
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文