blob: 314005f82a4a9a9ada86dcf7b8222ea1cbd3d8af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef PIXMAPTEXTURE_H
#define PIXMAPTEXTURE_H
#include <private/qsgtexture_p.h>
class PixmapTexture : public QSGTexture
{
Q_OBJECT
public:
PixmapTexture(const QImage &image);
virtual int textureId() const;
virtual QSize textureSize() const;
virtual bool hasAlphaChannel() const;
virtual bool hasMipmaps() const;
virtual void bind();
QPixmap pixmap() const { return m_pixmap; }
private:
QPixmap m_pixmap;
};
#endif // PIXMAPTEXTURE_H
|