ptitSeb / gl4es

GL4ES is a OpenGL 2.1/1.5 to GL ES 2.0/1.1 translation library, with support for Pandora, ODroid, OrangePI, CHIP, Raspberry PI, Android, Emscripten and AmigaOS4.
http://ptitseb.github.io/gl4es/
MIT License
694 stars 159 forks source link

Opengl context without x11 lib #397

Open redblue-pkt opened 2 years ago

redblue-pkt commented 2 years ago

Hello Is it possible to initialize context opengl without using x11 lib?

ptitSeb commented 2 years ago

you need to build with NOX11=1. Check COMPILE.md for more details.

redblue-pkt commented 2 years ago

Tried, can't initialize opengl context. I was building a library with flags -DODROID = 1 -DDEFAULT_ES = 2 -DGBM = ON -DNOEGL = OFF -DEGL_WRAPPER = ON -DGLX_STUBS = ON. I've tried various combinations. I want to run xine-lib via gl4es. Is it possible? Do I understand well how gl4es works? Without glx, can I initialize glx context? Are the functions contained in gl4es sufficient to initialize context?

ptitSeb commented 2 years ago

the GBM backend is very experiemental. Also, you need to use LIBGL_FB=4 to use GBM, else it will try to use reguler EGL, wich will probably wont work if don't have X11. You can try LIBGL_FB=1 to use EGL and FrameBuffer driver.