Questions tagged [qopenglfunctions]

QOpenGLFunctions is a class from the Qt Toolkit which provides cross-platform access to the OpenGL ES 2.0 API.

Documentation can be found here (Qt5).

22 questions
0
votes
0 answers

QOpenGLFunctions_4_1_Core function error in Qt version 6.0

I got some problems with QOpenGLFunctions_4_1_Core most likely in the version 6.0 in Qt. The QOpenGLFunctions 4.1 function appears not to apply in the call function of the code for some reasons, and prevent the code running at all. In the version…
0
votes
0 answers

Segmentation fault during closing application with QOpenGLFunctions_3_3_Core objects

I have application where critical part of code are: main.cpp #include #include int main(int argc, char *argv[]) { QApplication a(argc, argv); //the same version of context for all GL widgets …
rainbow
  • 1,161
  • 3
  • 14
  • 29
0
votes
1 answer

Error when use stencil buffer in FBO(QOpenGLFramebufferObject)

I try to draw concave polygon in a fbo like this(which is simply a triangle in a square), and I successfully draw it in QOpenGLWidget: example.png However when I want to draw it in a FBO and convert it to an image to save, the result is always…
0
votes
2 answers

Texture sharing between QOpenGLContext and native OpenGL context does not work with Mesa drivers

I'm trying to add an UI as a plugin to an existing application using OpenGL. For this I'm rendering the UI into a texture and drawing that texture on top of the 3D scene after the scene was drawn. The texture is generated as follows: if (context_ ==…
Stefan Fabian
  • 498
  • 4
  • 21
0
votes
2 answers

Need to render YUV frame(AVFrame from ffmpeg) using QT QOpenGLWidget

I have an AVFrame from FFMPEG in YUV format. I would like to render it using qt derived class from QOpenGLWidget and QOpenGLFunctions. I'm a beginner to qt and OpenGL. Can someone help out with this? Thanks Aswin
0
votes
1 answer

Can't render with QOpenGLBuffers

My target is to render a square with QOpenGLBuffers (index and vertex). But after looking all tutors and docs I missed something. Now it renders nothing. Here is init() of this…
DSUkraine
  • 33
  • 4
0
votes
0 answers

How to render a QOpenGLFramebufferObject to QQuickItem

I am using Qt 5.6 & above. I have a QQuickItem sub-class which is placed in my main.qml class MyQQuickItem : public QQuickItem { } In my main.cpp I register MyQQuickItem using qmlRegisterUncreatableType. It displays fine on the app main UI…
TheWaterProgrammer
  • 7,055
  • 12
  • 70
  • 159
1
2