简体   繁体   English

使用QPixmap作为OpenGL纹理

[英]Use a QPixmap as OpenGL texture

I am writing a qt code in c++, including some openQL graphics (QGLWidget). 我正在用C ++写一个qt代码,包括一些openQL图形(QGLWidget)。

I would like to assign a QPixmap as texture to an openGL quad. 我想将QPixmap作为纹理分配给openGL quad。 Is this possible ? 这可能吗 ?

Use class QOpenGLTexture 使用类QOpenGLTexture

In article youwill see short example. 在文章中,您将看到简短的示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM