()
render a screen sized quad
render a screen sized quad
render a screen sized quad
def display_image():
    """ render a screen sized quad """
    glDisable(GL_DEPTH_TEST)
    glDisable(GL_LIGHTING)
    glEnable(GL_TEXTURE_2D)
    glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE)
    glMatrixMode(GL_PROJECTION)
    glPushMatrix()
    glLoadIdentity()
    glOrtho(-1.0, 1.0, -1.0, 1.0, -1.0, 1.0)
    glMatrixMode( GL_MODELVIEW)
    glLoadIdentity()
    glViewport(0, 0, current_size[0], current_size[1])
    glBegin(GL_QUADS)
    glTexCoord2f(0.0, 0.0)
    glVertex3f(-1.0, -1.0, 0.5)
    glTexCoord2f(1.0, 0.0)
    glVertex3f(1.0, -1.0, 0.5)
    glTexCoord2f(1.0, 1.0)
    glVertex3f(1.0, 1.0, 0.5)
    glTexCoord2f(0.0, 1.0)
    glVertex3f(-1.0, 1.0, 0.5)
    glEnd()
    glMatrixMode(GL_PROJECTION)
    glPopMatrix()
    glDisable(GL_TEXTURE_2D)
    glBindBuffer(GL_PIXEL_PACK_BUFFER_ARB, 0)
    glBindBuffer(GL_PIXEL_UNPACK_BUFFER_ARB, 0)
def display_image ( ) : glDisable ( GL_DEPTH_TEST ) glDisable ( GL_LIGHTING ) glEnable ( GL_TEXTURE_2D ) glTexEnvf ( GL_TEXTURE_ENV , GL_TEXTURE_ENV_MODE , GL_REPLACE ) glMatrixMode ( GL_PROJECTION ) glPushMatrix ( ) glLoadIdentity ( ) glOrtho ( - 1.0 , 1.0 , - 1.0 , 1.0 , - 1.0 , 1.0 ) glMatrixMode ( GL_MODELVIEW ) glLoadIdentity ( ) glViewport ( 0 , 0 , current_size [ 0 ] , current_size [ 1 ] ) glBegin ( GL_QUADS ) glTexCoord2f ( 0.0 , 0.0 ) glVertex3f ( - 1.0 , - 1.0 , 0.5 ) glTexCoord2f ( 1.0 , 0.0 ) glVertex3f ( 1.0 , - 1.0 , 0.5 ) glTexCoord2f ( 1.0 , 1.0 ) glVertex3f ( 1.0 , 1.0 , 0.5 ) glTexCoord2f ( 0.0 , 1.0 ) glVertex3f ( - 1.0 , 1.0 , 0.5 ) glEnd ( ) glMatrixMode ( GL_PROJECTION ) glPopMatrix ( ) glDisable ( GL_TEXTURE_2D ) glBindBuffer ( GL_PIXEL_PACK_BUFFER_ARB , 0 ) glBindBuffer ( GL_PIXEL_UNPACK_BUFFER_ARB , 0 )