Embedded Graphics Question: QRasterPaintEngine
Hi All,
I have been developing Qt-Embedded products for several years and have come up against an interesting challenge with my latest project.
I have a powerpc touchscreen computer running a Linux 2.6 kernel and we have had Qt desktop running in X11. Recently we required 3D acceleration and bought an OpenGL driver for the graphics chip on the device. Unfortunately the driver does not support X11 and uses it's own MiniX / GLX that necessitates us going to Qt Embedded.
Because the the OpenGL version is not ES compatible (it is customized full OpenGL 1.2ish) and we don't have EGL available (have tried wrappers but it was a nightmare), I can't use OpenGL for Qt Drawing. I do however have memory mapped access to a framebuffer layer on the graphics chip and can write to it directly while doing OpenGL on the other layers. The chip only supports 1 pixel format ARGB 1555 and the byte order is not the same as the platform. What would I need to do and how difficult would it be to massage the QRasterPaintEngine into drawing properly to this buffer?
Re: Embedded Graphics Question: QRasterPaintEngine
Look at the QScreen-Class. There is an implementation for the linux framebuffer that could be used as a basis for your own implementation. Depending in your skills I think it is between half of a day and a week.