EGL和OpenGL有什么关系? [英] What is the relationship between EGL and OpenGL?

查看:35
本文介绍了EGL和OpenGL有什么关系?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为 OpenVGGo 中的 .khronos.org/opengles/" rel="noreferrer">OpenGL|ES,两者都有依赖于 Khronos EGL API,我猜应该是为了简化可移植性.

I'm writing an implementation for OpenVG and OpenGL|ES in Go, both of which depend on the Khronos EGL API, supposedly to ease portability I guess.

出于娱乐和教育的原因,我正在 OpenGL ES 之上编写 OpenVG 的实现 - 我没有做过很多渲染工作,我想了解更多关于开放 API 并练习实现明确定义的标准(更容易看到我是否得到了正确的结果).

I'm writing an implementation of OpenVG on top of OpenGL ES for fun and educational reasons - I haven't done a lot of rendering work and I'd like to learn more about the open APIs and practice implementing well defined standards (easier to see if I got the right results).

据我了解,EGL 提供了一个标准 API 来检索绘图上下文(或任何正确的名称),而不是使用多个操作系统提供的 API(GLX、WGL 等)之一

As I understand it, EGL provides a standard API for retrieving a drawing context (or what ever it's rightly called,) instead of using one of the multiple OS provided APIs (GLX, WGL etc)

我很难相信 Khronos 会通过这样的努力,将标准 OpenGL 排除在循环之外,但问题是,我还没有发现 OpenGL(真正的交易)如何或是否与 EGL 接口,或者它是否只是OpenGL ES.如果 OpenGL ES 可以使用 EGL 的绘图上下文,那么标准 OpenGL 也可以工作吗?

I have a hard time believing Khronos would go through such effort and leave the standard OpenGL out of the loop but the thing is, I haven't found how or if OpenGL (the real deal) interfaces with EGL or if it's only OpenGL ES. If OpenGL ES can use the drawing context from EGL, would standard OpenGL also work?

我对这一切真的很陌生,这就是为什么我很兴奋,但我正在做的真正项目是一个 Go 小部件工具包,它利用 OpenVG 进行绘图操作并尽可能使用硬件加速.

I'm really new to all of this which is why I'm excited but the real project I'm doing is a Go widget toolkit that utilizes OpenVG for its drawing operations and uses hardware acceleration wherever possible.

如果 OpenVG、OpenGL 和 OpenGL ES 依赖于 EGL,我认为我的问题可以用是"或否"来回答.请记住,我昨晚一头扎进了这个主题.

If OpenVG, OpenGL and OpenGL ES depend on EGL, I think my question can be answered with "yes" or "no". Just keep in mind that I dove into this subject head-first last night.

OpenGL 是使用还是依赖于 EGL?

Does OpenGL use or depend on EGL?

离题,但没有 EGL 标签.应该有吗?

Off topic, but there is no EGL tag. Should there be?

推荐答案

OpenGL和EGL没有关系.EGL一般不在桌面上运行,也没有通过EGL创建桌面OpenGL上下文的能力.

There is no relationship between OpenGL and EGL. EGL generally does not run on desktops, and there is no ability to create a desktop OpenGL context through EGL.

OpenGL 上下文是由特定于平台的 API 创建和管理的.在 Windows 上,使用 WGL API.在基于 X11 的平台上,使用 GLX.以此类推.

OpenGL contexts are instead created and managed by platform-specific APIs. On Windows, the WGL API is used. On X11-based platforms, GLX is used. And so forth.

去年,Khronos 提出了一些关于创建可以在桌面上运行并创建 OpenGL 上下文的 EGL 版本的意见,但到目前为止,没有任何结果.

There was some noise last year from Khronos about creating a version of EGL that could work on the desktop and make OpenGL contexts, but thus far, nothing came of it.

这篇关于EGL和OpenGL有什么关系?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆