67 class QGLPixmapData; |
67 class QGLPixmapData; |
68 |
68 |
69 class QGLFramebufferObjectPool |
69 class QGLFramebufferObjectPool |
70 { |
70 { |
71 public: |
71 public: |
72 QGLFramebufferObject *acquire(const QSize &size, const QGLFramebufferObjectFormat &format); |
72 QGLFramebufferObject *acquire(const QSize &size, const QGLFramebufferObjectFormat &format, bool strictSize = false); |
73 void release(QGLFramebufferObject *fbo); |
73 void release(QGLFramebufferObject *fbo); |
74 |
74 |
75 private: |
75 private: |
76 QList<QGLFramebufferObject *> m_fbos; |
76 QList<QGLFramebufferObject *> m_fbos; |
77 }; |
77 }; |
104 QPixmapData *createCompatiblePixmapData() const; |
104 QPixmapData *createCompatiblePixmapData() const; |
105 |
105 |
106 // Re-implemented from QPixmapData: |
106 // Re-implemented from QPixmapData: |
107 void resize(int width, int height); |
107 void resize(int width, int height); |
108 void fromImage(const QImage &image, Qt::ImageConversionFlags flags); |
108 void fromImage(const QImage &image, Qt::ImageConversionFlags flags); |
|
109 bool fromFile(const QString &filename, const char *format, |
|
110 Qt::ImageConversionFlags flags); |
|
111 bool fromData(const uchar *buffer, uint len, const char *format, |
|
112 Qt::ImageConversionFlags flags); |
109 void copy(const QPixmapData *data, const QRect &rect); |
113 void copy(const QPixmapData *data, const QRect &rect); |
110 bool scroll(int dx, int dy, const QRect &rect); |
114 bool scroll(int dx, int dy, const QRect &rect); |
111 void fill(const QColor &color); |
115 void fill(const QColor &color); |
112 bool hasAlphaChannel() const; |
116 bool hasAlphaChannel() const; |
113 QImage toImage() const; |
117 QImage toImage() const; |