fp: put test name in window title, add run script
authorKeith Whitwell <keith@tungstengraphics.com>
Fri, 12 Sep 2008 09:28:36 +0000 (10:28 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Fri, 12 Sep 2008 09:28:36 +0000 (10:28 +0100)
progs/fp/fp-tri.c
progs/fp/run.sh [new file with mode: 0755]

index cb991f803ebeb6aa80fc32e77144bef94bb8e78a..c07cfa2076e91b55fa11bd0f2efbb143040ead57 100644 (file)
@@ -154,11 +154,11 @@ int main(int argc, char **argv)
    glutInitWindowPosition(0, 0);
    glutInitWindowSize(250, 250);
    glutInitDisplayMode(GLUT_RGB | GLUT_SINGLE | GLUT_DEPTH);
-   glutCreateWindow(argv[0]);
+   args(argc, argv);
+   glutCreateWindow(filename);
    glutReshapeFunc(Reshape);
    glutKeyboardFunc(Key);
    glutDisplayFunc(Display);
-   args(argc, argv);
    Init();
    if (show_fps) {
       signal(SIGALRM, alarmhandler);
diff --git a/progs/fp/run.sh b/progs/fp/run.sh
new file mode 100755 (executable)
index 0000000..480f810
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+for i in *.txt ; do
+echo $i
+./fp-tri $i
+done
+