beziercurve with opengl