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

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

问题描述

我正在为 OpenVG Go 中取决于 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天全站免登陆