paint application in openGL