Mercurial > sdl-ios-xcode
comparison test/common.c @ 3395:45f140dd4b08
Options --double --triple have been added to test double and triple buffering.
author | Mike Gorchak <lestat@i.com.ua> |
---|---|
date | Tue, 13 Oct 2009 11:24:36 +0000 |
parents | 5dc34052ee6c |
children | 55541ddf13e3 |
comparison
equal
deleted
inserted
replaced
3394:2b0a3b2f2fc6 | 3395:45f140dd4b08 |
---|---|
4 #include <stdio.h> | 4 #include <stdio.h> |
5 | 5 |
6 #include "common.h" | 6 #include "common.h" |
7 | 7 |
8 #define VIDEO_USAGE \ | 8 #define VIDEO_USAGE \ |
9 "[--video driver] [--renderer driver] [--info all|video|modes|render|event] [--display %d] [--fullscreen | --windows N] [--title title] [--center | --position X,Y] [--geometry WxH] [--depth N] [--refresh R] [--vsync] [--noframe] [--resize] [--minimize] [--maximize] [--grab]" | 9 "[--video driver] [--renderer driver] [--info all|video|modes|render|event] [--display %d] [--fullscreen | --windows N] [--title title] [--center | --position X,Y] [--geometry WxH] [--depth N] [--refresh R] [--vsync] [--noframe] [--resize] [--minimize] [--maximize] [--grab] [--double] [--triple]" |
10 | 10 |
11 #define AUDIO_USAGE \ | 11 #define AUDIO_USAGE \ |
12 "[--rate N] [--format U8|S8|U16|U16LE|U16BE|S16|S16LE|S16BE] [--channels N] [--samples N]" | 12 "[--rate N] [--format U8|S8|U16|U16LE|U16BE|S16|S16LE|S16BE] [--channels N] [--samples N]" |
13 | 13 |
14 struct pformat { | 14 struct pformat { |
231 } | 231 } |
232 if (SDL_strcasecmp(argv[index], "--vsync") == 0) { | 232 if (SDL_strcasecmp(argv[index], "--vsync") == 0) { |
233 state->render_flags |= SDL_RENDERER_PRESENTVSYNC; | 233 state->render_flags |= SDL_RENDERER_PRESENTVSYNC; |
234 return 1; | 234 return 1; |
235 } | 235 } |
236 if (SDL_strcasecmp(argv[index], "--double") == 0) { | |
237 state->render_flags |= SDL_RENDERER_PRESENTFLIP2; | |
238 return 1; | |
239 } | |
240 if (SDL_strcasecmp(argv[index], "--triple") == 0) { | |
241 state->render_flags |= SDL_RENDERER_PRESENTFLIP3; | |
242 return 1; | |
243 } | |
236 if (SDL_strcasecmp(argv[index], "--noframe") == 0) { | 244 if (SDL_strcasecmp(argv[index], "--noframe") == 0) { |
237 state->window_flags |= SDL_WINDOW_BORDERLESS; | 245 state->window_flags |= SDL_WINDOW_BORDERLESS; |
238 return 1; | 246 return 1; |
239 } | 247 } |
240 if (SDL_strcasecmp(argv[index], "--resize") == 0) { | 248 if (SDL_strcasecmp(argv[index], "--resize") == 0) { |