OpenGL-ES 2.0 和 egl* 函数 (iOS)

发布于 2024-09-15 00:51:58 字数 632 浏览 1 评论 0原文

GLES 1.1 中有一组名为“egl”的定义: http:// /www.khronos.org/opengles/sdk/1.1/docs/man/

这是“本机平台图形接口层”: http://www.khronos.org/opengles/

但是,它们不在 GLES 2.0 中: http://www.khronos.org/opengles/sdk/docs/man/

所以我有一些问题:

  1. 这是与 GLES 分开的规范吗?还是GLES1.1的一部分?
  2. 他们去哪儿了(2.0)?或者仍然存在(2.0 中)?
  3. 手册(指南)在哪里?
  4. 我也应该在 GLES 2.0 中管理 eglContext 吗?

There're set of definition called "egl" in GLES 1.1: http://www.khronos.org/opengles/sdk/1.1/docs/man/

It's the "Native Platform Graphics Interface Layer":
http://www.khronos.org/opengles/

However, they're not in GLES 2.0: http://www.khronos.org/opengles/sdk/docs/man/

So I got some questions:

  1. Is this a separated spec from GLES? Or a part of GLES1.1?
  2. Where did they gone (in 2.0)? Or still exist (in 2.0)?
  3. Where is the manual (guide)?
  4. Should I manage eglContext in GLES 2.0 too?

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

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

发布评论

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

评论(2

七堇年 2024-09-22 00:51:58

EGL 是独立于 OpenGL ES 的规范,它可以管理 OpenGL ES 1.0/1.1 和 OpenGL ES 2.0(以及算法 OpenVG)的上下文,因此它并没有真正消失。

最新规范位于此处

EGL is a separate spec from OpenGL ES, it can manage contexts for OpenGL ES 1.0/1.1 and OpenGL ES 2.0 (and algo OpenVG), so it's not really gone.

The latest spec is here.

意中人 2024-09-22 00:51:58

我认为埃尼尔接受这个答案还为时过早。除非我一直缺少 Valdenegro 提供的“最新规格”中的东西。我发现,为了为当前上下文选择客户端 API,必须使用 EGL_CONTEXT_CLIENT_VERSION,它本身仅在 EGL 1.2 中受支持,而在我见过的任何 Android 手机上都不支持:它们都是 EGL 1.1。

在EGL 1.0或1.1中,只能使用默认客户端版本,即openGL ES。

I think eonil was premature to accept the answer. Unless I am consistently missing things at the "latest spec" Valdenegro provided. For what I find there is that in order to choose the client API for the current context, one must use EGL_CONTEXT_CLIENT_VERSION, which is itself supported only in EGL 1.2, which is not on any Android phone I have seen: they are all EGL 1.1.

In EGL 1.0 or 1.1, you can only use the default client version, which is openGL ES.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文