42 #ifndef QPIXMAPDATA_GL_P_H 43 #define QPIXMAPDATA_GL_P_H 59 #include "private/qpixmapdata_p.h" 60 #include "private/qglpaintdevice_p.h" 63 #include "private/qvolatileimage_p.h" 64 #ifdef QT_SYMBIAN_SUPPORTS_SGIMAGE 65 # include <sgresource/sgimage.h> 101 bool alphaRequested()
const;
118 void resize(
int width,
int height);
119 void fromImage(
const QImage &image, Qt::ImageConversionFlags flags);
121 Qt::ImageConversionFlags flags);
123 Qt::ImageConversionFlags flags);
124 bool fromData(
const uchar *buffer,
uint len,
const char *format,
125 Qt::ImageConversionFlags flags);
127 bool scroll(
int dx,
int dy,
const QRect &rect);
128 void fill(
const QColor &color);
129 bool hasAlphaChannel()
const;
139 GLuint bind(
bool copyBack =
true)
const;
143 void destroyTexture();
145 void detachTextureFromPool();
155 void reclaimTexture();
160 void* toNativeType(NativeType type);
161 void fromNativeType(
void* pixmap, NativeType type);
162 bool initFromNativeImageHandle(
void *handle,
const QString &type);
163 void createFromNativeImageHandleProvider();
164 void releaseNativeImageHandle();
168 bool isValid()
const;
170 void ensureCreated()
const;
182 void copyBackFromRenderFbo(
bool keepCurrentFboBound)
const;
185 bool useFramebufferObjects()
const;
189 void createPixmapForImage(
QImage &image, Qt::ImageConversionFlags flags,
bool inPlace);
197 void *nativeImageHandle;
199 #ifdef QT_SYMBIAN_SUPPORTS_SGIMAGE 226 #endif // QPIXMAPDATA_GL_P_H
The QColor class provides colors based on RGB, HSV or CMYK values.
Format
The following image formats are available in Qt.
QGLPixmapGLPaintDevice m_glDevice
#define QT_END_NAMESPACE
This macro expands to.
The QGLFramebufferObject class encapsulates an OpenGL framebuffer object.
The QGLFramebufferObject class provides a pool of framebuffer objects for offscreen rendering purpose...
QGLFramebufferObjectPool * qgl_fbo_pool()
The QString class provides a Unicode character string.
QGLFramebufferObject * acquire(const QSize &size, const QGLFramebufferObjectFormat &format, bool strictSize=false)
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QGLContext class encapsulates an OpenGL rendering context.
QList< QGLFramebufferObject * > m_fbos
void release(QGLFramebufferObject *fbo)
The QImage class provides a hardware-independent image representation that allows direct access to th...
static const char * data(const QByteArray &arr)
The QPaintEngine class provides an abstract definition of how QPainter draws to a given device on a g...
The QImageReader class provides a format independent interface for reading images from files or other...
The QRect class defines a rectangle in the plane using integer precision.
QGLFramebufferObject * m_renderFbo
The QSize class defines the size of a two-dimensional object using integer point precision.
bool isUninitialized() const
The QList class is a template class that provides lists.