2013-12-23 14:46:54 +00:00
|
|
|
from ..Qt import QtCore, QtGui, QtOpenGL
|
2012-07-09 01:33:35 +00:00
|
|
|
from OpenGL.GL import *
|
|
|
|
app = QtGui.QApplication([])
|
|
|
|
|
|
|
|
class GLTest(QtOpenGL.QGLWidget):
|
|
|
|
def __init__(self):
|
|
|
|
QtOpenGL.QGLWidget.__init__(self)
|
|
|
|
self.makeCurrent()
|
2013-01-12 19:35:32 +00:00
|
|
|
print("GL version:" + glGetString(GL_VERSION))
|
|
|
|
print("MAX_TEXTURE_SIZE: %d" % glGetIntegerv(GL_MAX_TEXTURE_SIZE))
|
|
|
|
print("MAX_3D_TEXTURE_SIZE: %d" % glGetIntegerv(GL_MAX_3D_TEXTURE_SIZE))
|
|
|
|
print("Extensions: " + glGetString(GL_EXTENSIONS))
|
2012-07-09 01:33:35 +00:00
|
|
|
|
|
|
|
GLTest()
|
|
|
|
|
|
|
|
|