This is a simple sample that can achieve Cardinal curve and B-spline, you can set the parameters by your self during execution. Without using vector, GLfloat only.