added opengl template, still to be finished