added opengl 2 rendering