diff options
Diffstat (limited to 'src/util/texture.h')
-rw-r--r-- | src/util/texture.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/util/texture.h b/src/util/texture.h new file mode 100644 index 0000000000..22e3aabde7 --- /dev/null +++ b/src/util/texture.h @@ -0,0 +1,12 @@ +#include <QImage> +#include <QOpenGLTexture> +#include <QPixmap> +#include <QSharedPointer> +#include <memory> + +#include "widget/paintable.h" + +QOpenGLTexture* createTexture(const QImage& image); +QOpenGLTexture* createTexture(const QPixmap& pixmap); +QOpenGLTexture* createTexture(const QSharedPointer<Paintable>& pPaintable); +QOpenGLTexture* createTexture(const std::shared_ptr<QImage>& pImage); |