def __init_openGL(self): glShadeModel(GL_SMOOTH) glClearColor(0, 0, 0, 0) glClearDepth(1) glEnable(GL_DEPTH_TEST) glEnable(GL_TEXTURE_2D) glDepthFunc(GL_LEQUAL) glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST)
def setDefaults(self): """Set the default OpenGL options for this texture""" self.setRepeat() self.setFilter() glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST)