Exemplo n.º 1
0
def createList():
    """Create display list for the text"""
    newList = glGenLists(1)
    glNewList(newList, GL_COMPILE)
    try:
        define_logo()
    finally:
        glEndList()
    return newList
Exemplo n.º 2
0
def createList( ):
	"""Create display list for the text"""
	newList = glGenLists(1);
	glNewList(newList, GL_COMPILE);
	try:
		define_logo()
	finally:
		glEndList()
	return newList
Exemplo n.º 3
0
 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)
Exemplo n.º 4
0
	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)
Exemplo n.º 5
0
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)
Exemplo n.º 6
0
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)
Exemplo n.º 7
0
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)
Exemplo n.º 8
0
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)