10 static void display();
11 static void keyboard(unsigned char key, int x, int y);
14 static Tentacle tentacle;
16 int main(int argc, char **argv)
18 glutInit(&argc, argv);
19 glutInitWindowSize(800, 600);
20 glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE);
22 glutCreateWindow("ludu mice");
23 glutDisplayFunc(display);
24 glutKeyboardFunc(keyboard);
37 glClearColor(1.0, 1.0, 0.0, 1.0);
39 if (!tentacle.init()) {
40 fprintf(stderr, "Failed to initialize tentacle control points.\n");
53 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
56 glMatrixMode(GL_MODELVIEW);
64 static void keyboard(unsigned char key, int x, int y)