Created factory interface for OpenGL attributes