def createList(): """Create display list for the text""" newList = glGenLists(1) glNewList(newList, GL_COMPILE) try: define_logo() finally: glEndList() return newList
def createList( ): """Create display list for the text""" newList = glGenLists(1); glNewList(newList, GL_COMPILE); try: define_logo() finally: glEndList() return newList
def draw_text(self, ogl): glClearColor(0, 0, 0.5, 0) glClear(GL_COLOR_BUFFER_BIT) if ogl.grob == -1: ogl.grob = glGenLists(1) glNewList(ogl.grob, GL_COMPILE_AND_EXECUTE) glMaterialfv(GL_FRONT, GL_DIFFUSE, [1, 0, 0, 0]) logo.define_logo() glEndList() else: glCallList(ogl.grob)
def draw_text(self, ogl): glClearColor(0, 0, 0.5, 0) glClear(GL_COLOR_BUFFER_BIT) if ogl.grob == -1: from logo import define_logo ogl.grob = glGenLists(1); glNewList(ogl.grob, GL_COMPILE_AND_EXECUTE); glMaterialfv(GL_FRONT, GL_DIFFUSE, [1, 0, 0, 0]) define_logo() glEndList() else: glCallList(ogl.grob)
def redraw(o): if o.grob == -1: o.grob = glGenLists(1); glNewList(o.grob, GL_COMPILE_AND_EXECUTE); glMaterialfv(GL_FRONT, GL_DIFFUSE, [1., 1., 0., 0.]) define_logo() glEndList() o.autospin = 1 o.xspin = 1 o.yspin = 2 o.update() o.after(10, o.do_AutoSpin) else: glCallList(o.grob)
def redraw(o): if o.grob == -1: o.grob = glGenLists(1) glNewList(o.grob, GL_COMPILE_AND_EXECUTE) glMaterialfv(GL_FRONT, GL_DIFFUSE, [1., 1., 0., 0.]) define_logo() glEndList() o.autospin = 1 o.xspin = 1 o.yspin = 2 o.update() o.after(10, o.do_AutoSpin) else: glCallList(o.grob)
def redraw(o): if o.grob == -1: o.grob = glGenLists(1) glNewList(o.grob, GL_COMPILE_AND_EXECUTE) glFrontFace(GL_CCW) # glEnable(GL_CULL_FACE) # added by jfp to use with new logo.py glEnable(GL_DEPTH_TEST) # glMaterialfv(GL_FRONT, GL_DIFFUSE, [1., 1., 0., 0.]) define_logo() glEndList() o.autospin = 1 o.xspin = 1 o.yspin = 2 o.update() o.after(10, o.do_AutoSpin) else: glCallList(o.grob)
def redraw(o): if o.grob == -1: o.grob = glGenLists(1) glNewList(o.grob, GL_COMPILE_AND_EXECUTE) glFrontFace(GL_CCW) # glEnable(GL_CULL_FACE) # added by jfp to use with new logo.py glEnable(GL_DEPTH_TEST) # glMaterialfv(GL_FRONT, GL_DIFFUSE, [1.0, 1.0, 0.0, 0.0]) define_logo() glEndList() o.autospin = 1 o.xspin = 1 o.yspin = 2 o.update() o.after(10, o.do_AutoSpin) else: glCallList(o.grob)