public void fillRect ( float x1 , float y1 , float width , float height ) { predraw ( ) ; TextureImpl . bindNone ( ) ; currentColor . bind ( ) ; GL . glBegin ( SGL . GL_QUADS ) ; GL . glVertex2f ( x1 , y1 ) ; GL . glVertex2f ( x1 + width , y1 ) ; GL . glVertex2f ( x1 + width , y1 + height ) ; GL . glVertex2f ( x1 , y1 + height ) ; GL . glEnd ( ) ; postdraw ( ) ; }
Fill a rectangle on the canvas in the current color