How do I use Qt and SDL together?

后端 未结 3 1126
北恋
北恋 2020-12-08 04:44

I am building a physics simulation engine and editor in Windows. I want to build the editor part using Qt and I want to run the engine using SDL with OpenGL.

My firs

3条回答
  •  孤城傲影
    2020-12-08 05:15

    Rendering onto opengl from QT is trivial (and works very well) No direct experience of SDL but there is an example app here about mixing them. http://www.devolution.com/pipermail/sdl/2003-January/051805.html

    There is a good article about mixing QT widgewts directly with the opengl here http://doc.trolltech.com/qq/qq26-openglcanvas.html a bit beyond what you strictly need but rather clever!

提交回复
热议问题