简体   繁体   English

Linux上的EGL支持

[英]EGL support on linux

I have a cross platform app, I want to compile on Linux. 我有一个跨平台的应用程序,我想在Linux上编译。 The problem is that the binary nVidia driver does not expose EGL interface (which the app uses). 问题是二进制nVidia驱动程序不公开EGL接口(应用程序使用)。 So to change as little of the app as possible I was wondering whether there is a wrapper which eg maps GLX to EGL . 因此,为了尽可能少地改变应用程序,我想知道是否有一个包装器,例如将GLX映射到EGL

虽然Nvidia没有公开EGL / GLES2,但你可以使用Mesa和它的libs。

I was wondering whether there is a wrapper which eg maps GLX to EGL. 我想知道是否有一个包装器,例如将GLX映射到EGL。

If you are using EGL to have OpenGL-ES context, one excellent wrapper is the PowerVR SDK emulator. 如果您使用EGL来获得OpenGL-ES上下文,那么PowerVR SDK模拟器就是一个很好的包装器。 It has a fair licensing model to distribute the binaries (MIT License) and can be helpful for multiplatform aplications. 它有一个公平的许可模型来分发二进制文件(麻省理工学院许可证),可以帮助多平台应用程序。 Just pick the libegl.so (or libegl.dll) and libglesv2.so (libglesv2.dll) from corresponding platform folder and drop with your application see PowerVR SDK 只需从相应的平台文件夹中选择libegl.so(或libegl.dll)和libglesv2.so(libglesv2.dll),然后随应用程序一起查看PowerVR SDK

The SDK supports iOS, Android and Linux PowerVR devices. SDK支持iOS,Android和Linux PowerVR设备。 It also supports Windows, OS X and Linux PC emulation. 它还支持Windows,OS X和Linux PC仿真。 Imagination's OpenGL ES emulation library, PVRVFrame, can be downloaded from our website. Imagination的OpenGL ES仿真库PVRVFrame可以从我们的网站下载。

On Windows platform you can also use Google's ANGLE, which translates OpenGL-ES calls to DirectX D3D (and it is amazing fast!). 在Windows平台上,您还可以使用Google的ANGLE,它将OpenGL-ES调用转换为DirectX D3D(而且速度惊人!)。 It also has fair license model (BSD License). 它还具有公平许可证模型(BSD许可证)。 There is a Microsoft branching at GitHub, with some enhancements. GitHub上有一个Microsoft分支,有一些增强功能。 You can get the DLL binaries from you Google Chrome browser install folder. 您可以从Google Chrome浏览器安装文件夹中获取DLL二进制文件。 Look for following files: libegl.dll, libglesv2.dll and d3dcompiler_XX.dll. 查找以下文件:libegl.dll,libglesv2.dll和d3dcompiler_XX.dll。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM