Ah, ok. I misunderstood. This advice does make sense.
On Mon, Jun 17, 2013 at 11:02 AM, Michael Zanetti < [email protected]> wrote: > Hi, > > yes, we are working on example code. As I said, if you intend to write a > game > with one fullscreen view, painting everything yourself in there, a > QGLWidget > might be a solution altough I think using just a QWindow would be better > suited. > > What I meant with discouraged, is to use QWidget in terms of QPushButton, > QListView etc. Talking about a QGLWidget I assumed that you want to embed > it > somewhere into another QWidget based app. > > This example shows how to use Qt openGL without a QGLWidget (using a > QWindow). > http://qt-project.org/doc/qt-5.0/qtgui/openglwindow.html > > Also, all of those examples should be applicable to our platform (some of > those are QGLWidget based too): > http://qt-project.org/doc/qt-5.0/qtopengl/examples-widgets-opengl.html > > Anyways, if you know how to use QGLWidget, I'm sure you understand how I > mean > the discouraging or QWidget usage on mobile platforms. > > Br, > Michael > > > On Monday 17 June 2013 10:44:00 Josh Leverette wrote: > > Hmm. If this is discouraged, then I would strongly encourage Canonical to > > provide an OpenGL game app example in the developer documentation... one > > showing "the right way" to do it. Having good games is the biggest > obstacle > > to Ubuntu touch's adoption that Canonical has absolutely no direct > control > > over, but providing a sample would go a long way towards encouraging > > development in that area. (all of the aforementioned is, of course, my > > personal opinion.) > > > > > > On Mon, Jun 17, 2013 at 10:41 AM, Michael Zanetti < > > > > [email protected]> wrote: > > > Hi, > > > > > > On Monday 17 June 2013 17:18:32 Wim de Vries wrote: > > > > Is openGL supported (via QGLWidget)? > > > > > > I guess it is, altough I discourage the use of QWidget on Ubuntu Touch. > > > > > > Anyways, yes, you can use C++/Qt OpenGL code. If you intent to just > create > > > a > > > fullscreen View and paint everything yourself, I guess even QGLWidget > is a > > > valid option. > > > > > > Hope this helps, > > > Michael > > > > > > > > > -- > > > Mailing list: https://launchpad.net/~ubuntu-phone > > > Post to : [email protected] > > > Unsubscribe : https://launchpad.net/~ubuntu-phone > > > More help : https://help.launchpad.net/ListHelp > -- Sincerely, Josh
-- Mailing list: https://launchpad.net/~ubuntu-phone Post to : [email protected] Unsubscribe : https://launchpad.net/~ubuntu-phone More help : https://help.launchpad.net/ListHelp

