implementing glut samples