object loader class for opengl