![]() By default, the QOpenGLFramebufferObject class generates a 2D OpenGL texture (using the GL_TEXTURE_2D target), which is used as the internal rendering target. ![]() This surface can be bound and used as a regular texture in your own OpenGL drawing code. It provides a rendering surface that can be painted on with a QPainter with the help of QOpenGLPaintDevice, or rendered to using native OpenGL calls. The QOpenGLFramebufferObject class encapsulates an OpenGL framebuffer object, defined by the GL_EXT_framebuffer_object extension. The QOpenGLFramebufferObject class encapsulates an OpenGL framebuffer object. ToImage(bool flipped, int colorAttachmentIndex) const QOpenGLFramebufferObject(int width, int height, const QOpenGLFramebufferObjectFormat & format)ĪddColorAttachment(const QSize & size, GLenum internalFormat = 0)ĪddColorAttachment(int width, int height, GLenum internalFormat = 0) QOpenGLFramebufferObject(const QSize & size, const QOpenGLFramebufferObjectFormat & format) QOpenGLFramebufferObject(int width, int height, Attachment attachment, GLenum target = GL_TEXTURE_2D, GLenum internalFormat = 0) QOpenGLFramebufferObject(const QSize & size, Attachment attachment, GLenum target = GL_TEXTURE_2D, GLenum internalFormat = 0) QOpenGLFramebufferObject(int width, int height, GLenum target = GL_TEXTURE_2D) QOpenGLFramebufferObject(const QSize & size, GLenum target = GL_TEXTURE_2D)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |