lesnoqr.blogg.se

Build a opengl application on osx 2017
Build a opengl application on osx 2017










Print ("Widget context format version: " + str(myW.context().format().majorVersion())) Print ("Widget format version: " + str(myW.format().majorVersion()))

build a opengl application on osx 2017

Print ("Widget context valid: " + str(myW.context().isValid()))

build a opengl application on osx 2017

Print("Format version: " + str(glFormat.majorVersion())) I have been experimenting a lot - here is a very simple example that shows my problem: from PyQt4 import QtGui, QtCore, QtOpenGL If I try to force it, it tells me that the context is not valid. I'm trying to pass a QGLFormat to my QGLWidget, as I've seen done on many threads here, but the context version does not change.

build a opengl application on osx 2017

However, according to my research and to OpenGL Extension Viewer, I should be able to use OpenGL 4.1.












Build a opengl application on osx 2017