fp: put test name in window title, add run script

This commit is contained in:
Keith Whitwell 2008-09-12 10:28:36 +01:00
parent af74abab6b
commit 1f13545679
2 changed files with 9 additions and 2 deletions

View 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);

7
progs/fp/run.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
for i in *.txt ; do
echo $i
./fp-tri $i
done