北京第一年-OpenGL-7 egl wgl glx agl glew window display surface context rendertarget glfw都是什么?

这些l让人有些烟花缭乱,如果说不好好了解一下这些,恐怕不能掌握opengl的全部,而且有些地方会限制你的应用。以前我也只是模糊知道它们的关系,现在需要重新梳理一下。

EGL
官方网站https://www.khronos.org/egl/的第一段话是

Native Platform Interface
EGL™ is an interface between Khronos rendering APIs such as OpenGL ES or OpenVG and the underlying native platform window system. It handles graphics context management, surface/buffer binding, and rendering synchronization and enables high-performance, accelerated, mixed-mode 2D and 3D rendering using other Khronos APIs. EGL also provides interop capability between Khronos to enable efficient transfer of data between APIs – for example between a video subsystem running OpenMAX AL and a GPU running OpenGL ES.

既然是接口,就是抽象的,类似c++中的基类。
native platform window system.说的就是windows(wgl),linux(glx),apple(agl)等,相对于接口,这些就是具体的实现,有点继承的意思。

<

你可能感兴趣的:(北京第一年上,c++)