added class factories for basicGL and glut libraries