OpenGL-ES 2.0 和 egl* 函数 (iOS)
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/
所以我有一些问题:
- 这是与 GLES 分开的规范吗?还是GLES1.1的一部分?
- 他们去哪儿了(2.0)?或者仍然存在(2.0 中)?
- 手册(指南)在哪里?
- 我也应该在 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:
- Is this a separated spec from GLES? Or a part of GLES1.1?
- Where did they gone (in 2.0)? Or still exist (in 2.0)?
- Where is the manual (guide)?
- Should I manage eglContext in GLES 2.0 too?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
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.
我认为埃尼尔接受这个答案还为时过早。除非我一直缺少 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.