2

I am writing a qt code in c++, including some openQL graphics (QGLWidget).

I would like to assign a QPixmap as texture to an openGL quad. Is this possible ?

Laurent Crivello
  • 3,809
  • 6
  • 45
  • 89
  • 5
    Convert the pixmap to `QImage`, upload the image's data (`constBits()`) into a texture, draw the quad? – peppe Jan 05 '16 at 21:55

1 Answers1

3

Use class QOpenGLTexture

In article youwill see short example.

MCoder
  • 126
  • 2
  • 6