How to convert QImage to SDL_Surface
-
Here is My question:
The buffer is m_data, and I use Qimage image = new QImage(m_data, w, h, 32,....) to create a QImage and use QPainter to display it in qt window. Can I use another function create a SDL_Surface from this m_data and use SDL function to display this m_data in the qt window?Thanks for your help.
-
may i ask what's the mean for using SDL Surface? do you need faster rendering? BTW, you can configure your Qt with SDL. also you may find examples at http://qt-apps.com
-
Thank you very much. I just want to faster rendering image in qt, because I fount qpainter.drawImage cost cpu. Under the websit I could not fount the app about QT with SDL. Would you mind to give me a direct link of this?
-
here's a game which is mentioned SDL used for writing http://qt-apps.org/content/show.php/JAG?content=107652
-
I have look at this project and found this project only use SDL to decode audio. Anyway, thank you.