42 #ifndef QGLFRAMEBUFFEROBJECT_H
43 #define QGLFRAMEBUFFEROBJECT_H
54 class QGLFramebufferObjectPrivate;
69 #if !defined(QT_OPENGL_ES) || defined(Q_QDOC)
84 #ifdef Q_MAC_COMPAT_GL_FUNCTIONS
89 QMacCompatGLenum target =
GL_TEXTURE_2D, QMacCompatGLenum internal_format = GL_RGBA8);
91 QMacCompatGLenum target =
GL_TEXTURE_2D, QMacCompatGLenum internal_format = GL_RGBA8);
96 QGLFramebufferObjectFormat
format()
const;
111 static bool bindDefault();
113 static bool hasOpenGLFramebufferObjects();
117 #ifdef Q_MAC_COMPAT_GL_FUNCTIONS
118 void drawTexture(
const QRectF &target, QMacCompatGLuint textureId, QMacCompatGLenum textureTarget =
GL_TEXTURE_2D);
119 void drawTexture(
const QPointF &point, QMacCompatGLuint textureId, QMacCompatGLenum textureTarget =
GL_TEXTURE_2D);
122 static bool hasOpenGLFramebufferBlit();
129 int metric(PaintDeviceMetric metric)
const;
135 friend class QGLPaintDevice;
136 friend class QGLFBOGLPaintDevice;
139 class QGLFramebufferObjectFormatPrivate;
140 class Q_OPENGL_EXPORT QGLFramebufferObjectFormat
143 QGLFramebufferObjectFormat();
144 QGLFramebufferObjectFormat(
const QGLFramebufferObjectFormat &other);
145 QGLFramebufferObjectFormat &operator=(
const QGLFramebufferObjectFormat &other);
146 ~QGLFramebufferObjectFormat();
151 void setMipmap(
bool enabled);
157 void setTextureTarget(
GLenum target);
158 GLenum textureTarget()
const;
160 void setInternalTextureFormat(
GLenum internalTextureFormat);
161 GLenum internalTextureFormat()
const;
163 #ifdef Q_MAC_COMPAT_GL_FUNCTIONS
164 void setTextureTarget(QMacCompatGLenum target);
165 void setInternalTextureFormat(QMacCompatGLenum internalTextureFormat);
168 bool operator==(
const QGLFramebufferObjectFormat& other)
const;
169 bool operator!=(
const QGLFramebufferObjectFormat& other)
const;
172 QGLFramebufferObjectFormatPrivate *d;
180 #endif // QGLFRAMEBUFFEROBJECT_H
GLsizei GLsizei GLchar * source
bool operator==(const Attribute &cA, const AttributeInstance< type > &cB)
This operator compares the two attributes and NOT their values.
#define QT_BEGIN_NAMESPACE
GLenum GLsizei GLenum format
typedef GLenum(APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC)(GLenum target)
typedef GLuint(APIENTRYP PFNGLCREATEPROGRAMPROC)()
GLenum GLsizei GLsizei height
#define GL_COLOR_BUFFER_BIT
bool operator!=(const QByteArray &a1, const QByteArray &a2)