-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there support for raspberry pi windowed mode? #136
Comments
Huh, this isn't really specific to the Raspberry Pi. They're just calling glReadPixels and dumping it into an X11 window. I could do this better even. It might be pretty fast to do this alongside the X11 shm stuff used in TinyGLES. This would give us windowed mode on a lot of framebuffer-only drivers, including the later OMAP stuff. Anyway, on the latest glshim unstable you should be able to use the LIBGL_EGL environment variable to force a different EGL backend library. |
Right, it isn't specific to the raspberry, but it is needed for it. It would be great to do this in a way that could support other boards As far as using LIBGL_EGL, it isn't really sufficient for this because The only good solution I can see is to build support directly into As far as sticking glReadPixels and XPutImage into glxSwapBuffers.. is I'm sure of course in the case of tinyGLES you can make it avoid all I am very impressed with the recent work on glshim, and I must study |
I got it working with this patch, what do you think?
|
Cool, thanks for the example! This is definitely very interesting for the Pandora and Pyra (because both don't have windowed GL modes on new drivers), and there's a chance glshim will be the primary GL frontend on the Pyra. I added the issue #138 so I can think about supporting this when pretending to be libGLES as well as when we pretend to be libGL. I'm going to think about how I want it to be integrated. I really don't like relying on ifdef. Mainline glshim tries to support everything out of the box with default compile options. I'm even going to move X11 detection to runtime at some point so it will work better on non-X11 platforms. |
This is a temporary hack. I was excited to make it work and that's As for removing the ifdef, I see no problem. It can simply detect On thing I really want to resolve is efficiency concerns but not sure On 9/27/15, Ryan Hileman [email protected] wrote:
|
I am pretty sure it is possible to support the raspberry pi bcm_host drivers in windowed mode, maybe using an environment variable or compile time flag.
I have played around with (works in 16 bit framebuffer)
https://github.com/PaulHaeberli/pi-eglonx
Which is a proof of concept, as well as (works in 32 bit framebuffer)
https://github.com/kika123/x11eglrpi
But unfortunately when I try to use the tweaked libEGL.so with the glshim libGL.so I have no success.
I know you are aware of these projects and wondered if you had already incorporated this into glshim somehow as I am still looking.
The text was updated successfully, but these errors were encountered: