replace opengl template wrapper with overwritten functions