42 #ifndef QGLFRAMEBUFFEROBJECT_H 43 #define QGLFRAMEBUFFEROBJECT_H 45 #include <QtOpenGL/qgl.h> 46 #include <QtGui/qpaintdevice.h> 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);
103 GLuint texture()
const;
109 GLuint handle()
const;
111 static bool bindDefault();
113 static bool hasOpenGLFramebufferObjects();
117 #ifdef Q_MAC_COMPAT_GL_FUNCTIONS 122 static bool hasOpenGLFramebufferBlit();
143 QGLFramebufferObjectFormat();
144 QGLFramebufferObjectFormat(
const QGLFramebufferObjectFormat &other);
145 QGLFramebufferObjectFormat &operator=(
const QGLFramebufferObjectFormat &other);
146 ~QGLFramebufferObjectFormat();
148 void setSamples(
int samples);
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 #define QT_END_NAMESPACE
This macro expands to.
The QGLFramebufferObject class encapsulates an OpenGL framebuffer object.
The QPointF class defines a point in the plane using floating point precision.
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
bool operator!=(QBool b1, bool b2)
Attachment
This enum type is used to configure the depth and stencil buffers attached to the framebuffer object ...
The QScopedPointer class stores a pointer to a dynamically allocated object, and deletes it upon dest...
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QRectF class defines a rectangle in the plane using floating point precision. ...
#define GL_COLOR_BUFFER_BIT
The QImage class provides a hardware-independent image representation that allows direct access to th...
The QPaintEngine class provides an abstract definition of how QPainter draws to a given device on a g...
static void drawTexture(const QRectF &rect, GLuint tex_id, const QSize &texSize, const QRectF &src=QRectF())
virtual QPaintEngine * paintEngine() const =0
The QRect class defines a rectangle in the plane using integer precision.
QFuture< void > filter(Sequence &sequence, FilterFunction filterFunction)
virtual int metric(PaintDeviceMetric metric) const
The QSize class defines the size of a two-dimensional object using integer point precision.
#define Q_DECLARE_PRIVATE(Class)
bool operator==(QBool b1, bool b2)