| 1 | Author: Holger Jaekel <[email protected]>
|
| 2 | Summary: run tests non-interactively
|
| 3 | ----
|
| 4 |
|
| 5 | |
| 6 | |
| 7 | @@ -60,8 +60,8 @@
|
| 8 |
|
| 9 | static const char *format_string = "Postscript";
|
| 10 | static float rotation = -58.;
|
| 11 | -static GLsizei window_w = 0;
|
| 12 | -static GLsizei window_h = 0;
|
| 13 | +static GLsizei window_w = 800;
|
| 14 | +static GLsizei window_h = 800;
|
| 15 | static GLboolean display_multi = GL_TRUE;
|
| 16 | static GLboolean blend = GL_FALSE;
|
| 17 | static GLboolean teapot = GL_FALSE;
|
| 18 | @@ -629,6 +629,12 @@
|
| 19 | glutReshapeFunc(reshape);
|
| 20 | glutKeyboardFunc(keyboard);
|
| 21 | glutMotionFunc(motion);
|
| 22 | - glutMainLoop();
|
| 23 | + keyboard('s', 0, 0);
|
| 24 | + keyboard('p', 0, 0);
|
| 25 | + keyboard('s', 0, 0);
|
| 26 | + keyboard('p', 0, 0);
|
| 27 | + keyboard('s', 0, 0);
|
| 28 | + keyboard('p', 0, 0);
|
| 29 | + keyboard('s', 0, 0);
|
| 30 | return 0;
|
| 31 | }
|
| 32 |
|
| 33 | |
| 34 | |
| 35 | @@ -202,6 +202,6 @@
|
| 36 |
|
| 37 | glutDisplayFunc(display);
|
| 38 | glutKeyboardFunc(keyboard);
|
| 39 | - glutMainLoop();
|
| 40 | + keyboard('s', 0, 0);
|
| 41 | return 0;
|
| 42 | }
|