comparison TaskManager/Test/test_render/main.cpp @ 281:f05d6c185f55 draft

changeset:260 repair
author tkaito@localhost.localdomain
date Fri, 05 Jun 2009 11:47:19 +0900
parents bfdd037aee21
children ef6b225f6f40
comparison
equal deleted inserted replaced
260:c29b7163d6d9 281:f05d6c185f55
12 12
13 Viewer *screen; 13 Viewer *screen;
14 14
15 static int sg_number = 0; 15 static int sg_number = 0;
16 16
17 static const char *help_str = "Usage: ./test_nogl [OPTION]\n\ 17 const char *usr_help_str = "Usage: ./test_nogl [OPTION]\n\
18 -cpu Number of SPE (default 1)\n\ 18 -cpu Number of SPE (default 1)\n\
19 -width, -height window size (default 640x480)\n\ 19 -width, -height window size (default 640x480)\n\
20 -sg Draw SceneGraph\n\ 20 -sg Draw SceneGraph\n\
21 0: Joystick の 丸ボタン(Keyboard だとx) を押すと、キューブが二つに分かれる\n\ 21 0: Joystick の 丸ボタン(Keyboard だとx) を押すと、キューブが二つに分かれる\n\
22 1: 0 のキューブが大きい版\n\ 22 1: 0 のキューブが大きい版\n\
54 sg_number = (atoi)(argv[++i]); 54 sg_number = (atoi)(argv[++i]);
55 } 55 }
56 if (strcmp(argv[i], "-cpu") == 0) { 56 if (strcmp(argv[i], "-cpu") == 0) {
57 spenum = atoi(argv[++i]); 57 spenum = atoi(argv[++i]);
58 } 58 }
59 if (strcmp(argv[i], "-help") == 0) {
60 printf("%s\n", help_str);
61 return -1;
62 }
63 if (strcmp(argv[i], "-video") == 0) { 59 if (strcmp(argv[i], "-video") == 0) {
64 if (strcmp(argv[i+1], "sdl") == 0) { 60 if (strcmp(argv[i+1], "sdl") == 0) {
65 vtype = VTYPE_SDL; 61 vtype = VTYPE_SDL;
66 } else if (strcmp(argv[i+1], "fb") == 0) { 62 } else if (strcmp(argv[i+1], "fb") == 0) {
67 vtype = VTYPE_FB; 63 vtype = VTYPE_FB;