0
\$\begingroup\$

I was doing an OpenGL display, where I render in an opengl context (GLUT).

But now I would like to integrate it into a big project that does not use the Qt OpenGL API at all (QGLWidget, QOpenGLWidget, …).

So I would have to display on QWidget for example using the function glTexImage2D () because it can take a Qimage input ((GLvoid *) Qimage.bits ())

\$\endgroup\$
4
  • \$\begingroup\$ You can bind the current framebuffer to a texture using the function glFramebufferTexture2D(). \$\endgroup\$ Commented Jul 21, 2019 at 20:48
  • \$\begingroup\$ Possible duplicate of onpenGL in QT widget without QGLWidget and QOpenGLWidget \$\endgroup\$ Commented Jul 21, 2019 at 21:14
  • \$\begingroup\$ Ok but wath is the difference with a PBO. Usualy I use a buffer like this : GLuint pboIds[2] \$\endgroup\$ Commented Jul 22, 2019 at 8:12
  • \$\begingroup\$ and with a PBO I already do that the probleme is to link a texture with a qt window I think \$\endgroup\$ Commented Jul 22, 2019 at 9:02

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.