View Single Post
Posts: 13 | Thanked: 52 times | Joined on Mar 2014 @ China
#58
Originally Posted by freemangordon View Post
I think one should open a separate thread for n900 (not me, I am really not that interested in gaming).

however, the "trick" to enable HW acceleration on n900 is:
Code:
QmlApplicationViewer::QmlApplicationViewer(QWidget *parent)
    : QDeclarativeView(parent)
    , d(new QmlApplicationViewerPrivate())
{
#ifdef Q_WS_MAEMO_5
    setAttribute(Qt::WA_Maemo5LandscapeOrientation);

    engine()->addImportPath(QString("/opt/qtm11/imports"));
    engine()->addPluginPath(QString("/opt/qtm11/plugins"));

    setViewport(new QGLWidget);
#endif

    setViewportUpdateMode(QGraphicsView::FullViewportUpdate);

    setAttribute(Qt::WA_OpaquePaintEvent);
    setAttribute(Qt::WA_NoSystemBackground);

    viewport()->setAttribute(Qt::WA_OpaquePaintEvent);
    viewport()->setAttribute(Qt::WA_NoSystemBackground);

.
.
.
here http://46.249.74.23/flappybird.tar.gz you can download working .deb/source for n900, based on the last before the final (or final, I am not sure) version of flappybird for n9
what a good job,canyou explain the N9 how to enable opengl?
I don't know anything about the Meego api of Qt
 

The Following User Says Thank You to 蝉曦m For This Useful Post: