#NEWLINE# def __call__( self , rect , clipped ) : #NEWLINE# #INDENT# scissor = ( clipped != rect ) #NEWLINE# if scissor : #NEWLINE# #INDENT# glPushAttrib ( ( GL_ENABLE_BIT | GL_SCISSOR_BIT ) ) #NEWLINE# glEnable ( GL_SCISSOR_TEST ) #NEWLINE# glScissor ( * map ( int , ( clipped . x , clipped . y , clipped . width , clipped . height ) ) ) #NEWLINE# #UNINDENT# glBegin ( GL_QUADS ) #NEWLINE# glColor4f ( * self . corners [ 0 ] ) #NEWLINE# glVertex2f ( * self . bottomleft ) #NEWLINE# glColor4f ( * self . corners [ 1 ] ) #NEWLINE# glVertex2f ( * rect . topleft ) #NEWLINE# glColor4f ( * self . corners [ 2 ] ) #NEWLINE# glVertex2f ( * rect . topright ) #NEWLINE# glColor4f ( * self . corners [ 3 ] ) #NEWLINE# glVertex2f ( * rect . bottomright ) #NEWLINE# glEnd ( ) #NEWLINE# if scissor : #NEWLINE# #INDENT# glPopAttrib ( )