def glDraw(self): QGLWidget.glDraw(self) glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT) glLoadIdentity() # glTranslatef(0.0, -26.0, -100.0) fps = time() - self.timer self.renderText(20, 20, "Test! %d" % fps) glRotatef(self.rotation['x'], 1, 0, 0) glRotatef(self.rotation['y'], 0, 1, 0) glRotatef(self.rotation['z'], 0, 0, 1) glScalef(self.scale, self.scale, self.scale) # # glBegin(GL_QUADS) # glVertex2f(0, 0) # glVertex2f(10, 0) # glVertex2f(10, 10) # glVertex2f(0, 10) # glEnd() self.timer = time() self.drawfloor() for s in self.stl: s.draw()