![]() |
Linux framebuffer support in SDL2 | ![]() |
Gustav Melno
Guest
![]() |
![]() |
I'm writing a video driver for SDL2 which supports Linux framebuffer
access with tslib support. This feaure was removed in SDL2 but I think it is very useful for embedded systems. Not all of these systems have opengl. I know there is DirectFB but this is too complicated for a small system and cross compiling is a libtool hell. I tried a cross compilation and it was totally broken. So is there anyone out there who needs the old tslib and framebuffer support in SDL2? _______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
||||||||||
|
![]() |
Linux framebuffer support in SDL2 | ![]() |
Ryan C. Gordon
Guest
![]() |
![]() |
I had a request a few months ago to restore fbcon support, but I hadn't gotten around to it yet. Most embedded things either offer fbcon, an X server (!), or some sort of EGL, so I think it's worth adding. What does tslib add over talking to /dev/fb directly? --ryan. _______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
||||||||||||
|
![]() |
Linux framebuffer support in SDL2 | ![]() |
gabomdq
![]() |
![]() |
2014-03-05 12:06 GMT-03:00 Ryan C. Gordon:
FWIW, I haven't tried this, but Mesa docs indicate that their EGL implementation supports fbdev (http://www.mesa3d.org/egl.html ), so it may be possible to get SDL/OpenGL* (software emulated) running on top of EGL/fbdev with very minor changes to the Raspberry Pi backend (probably just the native window handler passed to EGL needs to change) -- Gabriel. |
||||||||||||||
|
![]() |
Linux framebuffer support in SDL2 | ![]() |
Hartley Sweeten
Guest
![]() |
![]() |
On Wednesday, March 05, 2014 8:06 AM, Ryan C. Gordon wrote:
The lack of fbcon support is the only reason I have not switched from SDL1.2 to SDL2.
I use SDL1.2 on an embedded iMX35 ARM SoC board. SDL1.2 works great on this with just a BusyBox based filesystem created by Buildroot. No X server or other heavyweight front end needed. I have also used SDL1.2 on an EP9307 ARM SoC board with the same success.
Calibration of the touchscreen mainly. I'm using a USB touchscreen LCD (800x480) with the iMX35. The raw touchscreen events are almost unusable. If I remember correctly, the X and Y axis are swapped and one of them is inverted. Using tslib you just need to run the calibration utility and everything then works perfectly. Regards, Hartley _______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
||||||||||||||||||
|
![]() |
Linux framebuffer support in SDL2 | ![]() |
Gustav Melno
Guest
![]() |
![]() |
_______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
||||||||||||||
|
![]() |
Linux framebuffer support in SDL2 | ![]() |