[PyQt] Unsure how to call glReadPixels
Kempinger, Jayson
jkempinger at decisionvis.com
Fri Jun 2 23:05:43 BST 2017
I'm trying to use glReadPixels in my python3 application (python 3.6.1, Qt
5.8.0, and PyQt 5.8.0).
Here's a segment of my code:
self.vp = QOpenGLVersionProfile()self.vp.setVersion(2,1)
self.glFunc = QOpenGLContext.currentContext().versionFunctions(self.vp)
self.glFunc.glReadPixels(...)
Regardless of what I pass to the function, I get an error:
AttributeError: 'QOpenGLFunctions_2_1' object has no attribute
'glReadPixels'
Running *print(dir(self.glFunc)* returns a huge list of functions but does
not include glReadPixels or any variation that I can find (there's
GL_READ_PIXELS but it's an int).
Am I looking in the wrong place for this function? I posted to a Qt forum
but have not received an answer, so I'm hoping someone can help me here!
Thanks!
Jayson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170602/b3bf1a5f/attachment.html>
More information about the PyQt
mailing list