15 for (int i=0; i<5; i++) {
16 add_control_point(Vec3(0.5, i / 10.0, 0.0));
22 Tentacle::add_control_point(const Vec3 &point)
24 cpoints.push_back(point);
31 glBegin(GL_LINE_STRIP);
32 glColor3f(0.0, 0.0, 1.0);
33 for(size_t i=0; i<cpoints.size(); i++) {
34 glVertex3f(cpoints[i].x, cpoints[i].y, cpoints[i].z);
39 glDisable(GL_DEPTH_TEST);
42 glColor3f(1.0, 0.0, 0.0);
43 for(size_t i=0; i<cpoints.size(); i++) {
44 glVertex3f(cpoints[i].x, cpoints[i].y, 1.0);
47 glEnable(GL_DEPTH_TEST);