4#ifndef QOPENGLFRAMEBUFFEROBJECT_H
5#define QOPENGLFRAMEBUFFEROBJECT_H
7#include <QtOpenGL/qtopenglglobal.h>
9#include <QtGui/qopengl.h>
10#include <QtGui/qpaintdevice.h>
12#include <QtCore/qscopedpointer.h>
16typedef unsigned int GLuint;
18typedef unsigned int GLenum;
20#define GL_TEXTURE_2D 0x0DE1
70 GLuint takeTexture(
int colorAttachmentIndex);
75 QImage toImage(
bool flipped =
true)
const;
76 QImage toImage(
bool flipped,
int colorAttachmentIndex)
const;
83 static bool bindDefault();
85 static bool hasOpenGLFramebufferObjects();
87 static bool hasOpenGLFramebufferBlit();
92 RestoreFrameBufferBinding
99 int readColorAttachmentIndex,
100 int drawColorAttachmentIndex,
101 FramebufferRestorePolicy restorePolicy);
106 int readColorAttachmentIndex,
107 int drawColorAttachmentIndex);
121 friend class QOpenGLFBOGLPaintDevice;
143 GLenum textureTarget()
const;
145 void setInternalTextureFormat(
GLenum internalTextureFormat);
146 GLenum internalTextureFormat()
const;
The QOpenGLFramebufferObject class encapsulates an OpenGL framebuffer object.
int height() const
Returns the height of the framebuffer object attachments.
int width() const
Returns the width of the framebuffer object attachments.
Attachment
This enum type is used to configure the depth and stencil buffers attached to the framebuffer object ...
@ RestoreFramebufferBindingToDefault
@ DontRestoreFramebufferBinding
The QOpenGLPaintDevice class enables painting to an OpenGL context using QPainter.
\inmodule QtCore\reentrant
Combined button and popup list for selecting options.
constexpr bool operator!=(const timespec &t1, const timespec &t2)
GLuint64 GLenum void * handle
GLuint const GLuint * buffers
GLint GLsizei GLsizei height
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLuint const GLuint GLuint const GLuint * textures
GLenum GLenum GLsizei const GLuint GLboolean enabled
typedef GLenum(GL_APIENTRYP PFNGLGETGRAPHICSRESETSTATUSKHRPROC)(void)
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
GLint GLsizei GLsizei GLenum format
GLsizei GLenum internalFormat
GLsizei GLsizei GLchar * source
GLuint GLsizei const GLuint const GLintptr const GLsizeiptr * sizes
typedef GLbitfield(APIENTRYP PFNGLQUERYMATRIXXOESPROC)(GLfixed *mantissa
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
socketLayer bind(QHostAddress::Any, 4000)