diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2010-09-06 11:19:30 (GMT) |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2010-09-10 10:44:55 (GMT) |
commit | ca1a8a7f4ad1fb249f47085e6ad0cf133122c0f0 (patch) | |
tree | 7cde8470048b312befa1c7934e470a111509a0d3 /tools/qmeegographicssystemhelper/qmeegoruntime.h | |
parent | 34c08ff7048419713464b28679ac15a250bd7dd1 (diff) | |
download | Qt-ca1a8a7f4ad1fb249f47085e6ad0cf133122c0f0.zip Qt-ca1a8a7f4ad1fb249f47085e6ad0cf133122c0f0.tar.gz Qt-ca1a8a7f4ad1fb249f47085e6ad0cf133122c0f0.tar.bz2 |
Renamed meego graphics system helper files.
Diffstat (limited to 'tools/qmeegographicssystemhelper/qmeegoruntime.h')
-rw-r--r-- | tools/qmeegographicssystemhelper/qmeegoruntime.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tools/qmeegographicssystemhelper/qmeegoruntime.h b/tools/qmeegographicssystemhelper/qmeegoruntime.h new file mode 100644 index 0000000..34474cc --- /dev/null +++ b/tools/qmeegographicssystemhelper/qmeegoruntime.h @@ -0,0 +1,36 @@ +/*************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation +** +** This library is free software; you can redistribute it and/or +** modify it under the terms of the GNU Lesser General Public +** License version 2.1 as published by the Free Software Foundation +** and appearing in the file LICENSE.LGPL included in the packaging +** of this file. +** +****************************************************************************/ + +#include <QLibrary> +#include <QPixmap> +#include <QImage> + +class MRuntime +{ +public: + static void initialize(); + + static Qt::HANDLE imageToEGLSharedImage(const QImage &image); + static QPixmap pixmapFromEGLSharedImage(Qt::HANDLE handle, const QImage &softImage); + static QPixmap pixmapWithGLTexture(int w, int h); + static bool destroyEGLSharedImage(Qt::HANDLE handle); + static void updateEGLSharedImagePixmap(QPixmap *p); + static void setSurfaceFixedSize(int w, int h); + static void setSurfaceScaling(int x, int y, int w, int h); + static void setTranslucent(bool translucent); + +private: + static bool initialized; + static QLibrary *library; +};
\ No newline at end of file |