Lines Matching refs:index

117 SDLTest_CommonArg(SDLTest_CommonState * state, int index)  in SDLTest_CommonArg()  argument
121 if (SDL_strcasecmp(argv[index], "--video") == 0) { in SDLTest_CommonArg()
122 ++index; in SDLTest_CommonArg()
123 if (!argv[index]) { in SDLTest_CommonArg()
126 state->videodriver = argv[index]; in SDLTest_CommonArg()
129 if (SDL_strcasecmp(argv[index], "--renderer") == 0) { in SDLTest_CommonArg()
130 ++index; in SDLTest_CommonArg()
131 if (!argv[index]) { in SDLTest_CommonArg()
134 state->renderdriver = argv[index]; in SDLTest_CommonArg()
137 if (SDL_strcasecmp(argv[index], "--gldebug") == 0) { in SDLTest_CommonArg()
141 if (SDL_strcasecmp(argv[index], "--info") == 0) { in SDLTest_CommonArg()
142 ++index; in SDLTest_CommonArg()
143 if (!argv[index]) { in SDLTest_CommonArg()
146 if (SDL_strcasecmp(argv[index], "all") == 0) { in SDLTest_CommonArg()
152 if (SDL_strcasecmp(argv[index], "video") == 0) { in SDLTest_CommonArg()
156 if (SDL_strcasecmp(argv[index], "modes") == 0) { in SDLTest_CommonArg()
160 if (SDL_strcasecmp(argv[index], "render") == 0) { in SDLTest_CommonArg()
164 if (SDL_strcasecmp(argv[index], "event") == 0) { in SDLTest_CommonArg()
170 if (SDL_strcasecmp(argv[index], "--log") == 0) { in SDLTest_CommonArg()
171 ++index; in SDLTest_CommonArg()
172 if (!argv[index]) { in SDLTest_CommonArg()
175 if (SDL_strcasecmp(argv[index], "all") == 0) { in SDLTest_CommonArg()
179 if (SDL_strcasecmp(argv[index], "error") == 0) { in SDLTest_CommonArg()
183 if (SDL_strcasecmp(argv[index], "system") == 0) { in SDLTest_CommonArg()
187 if (SDL_strcasecmp(argv[index], "audio") == 0) { in SDLTest_CommonArg()
191 if (SDL_strcasecmp(argv[index], "video") == 0) { in SDLTest_CommonArg()
195 if (SDL_strcasecmp(argv[index], "render") == 0) { in SDLTest_CommonArg()
199 if (SDL_strcasecmp(argv[index], "input") == 0) { in SDLTest_CommonArg()
205 if (SDL_strcasecmp(argv[index], "--display") == 0) { in SDLTest_CommonArg()
206 ++index; in SDLTest_CommonArg()
207 if (!argv[index]) { in SDLTest_CommonArg()
210 state->display = SDL_atoi(argv[index]); in SDLTest_CommonArg()
221 if (SDL_strcasecmp(argv[index], "--fullscreen") == 0) { in SDLTest_CommonArg()
226 if (SDL_strcasecmp(argv[index], "--fullscreen-desktop") == 0) { in SDLTest_CommonArg()
231 if (SDL_strcasecmp(argv[index], "--allow-highdpi") == 0) { in SDLTest_CommonArg()
235 if (SDL_strcasecmp(argv[index], "--windows") == 0) { in SDLTest_CommonArg()
236 ++index; in SDLTest_CommonArg()
237 if (!argv[index] || !SDL_isdigit(*argv[index])) { in SDLTest_CommonArg()
241 state->num_windows = SDL_atoi(argv[index]); in SDLTest_CommonArg()
245 if (SDL_strcasecmp(argv[index], "--title") == 0) { in SDLTest_CommonArg()
246 ++index; in SDLTest_CommonArg()
247 if (!argv[index]) { in SDLTest_CommonArg()
250 state->window_title = argv[index]; in SDLTest_CommonArg()
253 if (SDL_strcasecmp(argv[index], "--icon") == 0) { in SDLTest_CommonArg()
254 ++index; in SDLTest_CommonArg()
255 if (!argv[index]) { in SDLTest_CommonArg()
258 state->window_icon = argv[index]; in SDLTest_CommonArg()
261 if (SDL_strcasecmp(argv[index], "--center") == 0) { in SDLTest_CommonArg()
266 if (SDL_strcasecmp(argv[index], "--position") == 0) { in SDLTest_CommonArg()
268 ++index; in SDLTest_CommonArg()
269 if (!argv[index]) { in SDLTest_CommonArg()
272 x = argv[index]; in SDLTest_CommonArg()
273 y = argv[index]; in SDLTest_CommonArg()
285 if (SDL_strcasecmp(argv[index], "--usable-bounds") == 0) { in SDLTest_CommonArg()
294 if (SDL_strcasecmp(argv[index], "--geometry") == 0) { in SDLTest_CommonArg()
296 ++index; in SDLTest_CommonArg()
297 if (!argv[index]) { in SDLTest_CommonArg()
300 w = argv[index]; in SDLTest_CommonArg()
301 h = argv[index]; in SDLTest_CommonArg()
313 if (SDL_strcasecmp(argv[index], "--min-geometry") == 0) { in SDLTest_CommonArg()
315 ++index; in SDLTest_CommonArg()
316 if (!argv[index]) { in SDLTest_CommonArg()
319 w = argv[index]; in SDLTest_CommonArg()
320 h = argv[index]; in SDLTest_CommonArg()
332 if (SDL_strcasecmp(argv[index], "--max-geometry") == 0) { in SDLTest_CommonArg()
334 ++index; in SDLTest_CommonArg()
335 if (!argv[index]) { in SDLTest_CommonArg()
338 w = argv[index]; in SDLTest_CommonArg()
339 h = argv[index]; in SDLTest_CommonArg()
351 if (SDL_strcasecmp(argv[index], "--logical") == 0) { in SDLTest_CommonArg()
353 ++index; in SDLTest_CommonArg()
354 if (!argv[index]) { in SDLTest_CommonArg()
357 w = argv[index]; in SDLTest_CommonArg()
358 h = argv[index]; in SDLTest_CommonArg()
370 if (SDL_strcasecmp(argv[index], "--scale") == 0) { in SDLTest_CommonArg()
371 ++index; in SDLTest_CommonArg()
372 if (!argv[index]) { in SDLTest_CommonArg()
375 state->scale = (float)SDL_atof(argv[index]); in SDLTest_CommonArg()
378 if (SDL_strcasecmp(argv[index], "--depth") == 0) { in SDLTest_CommonArg()
379 ++index; in SDLTest_CommonArg()
380 if (!argv[index]) { in SDLTest_CommonArg()
383 state->depth = SDL_atoi(argv[index]); in SDLTest_CommonArg()
386 if (SDL_strcasecmp(argv[index], "--refresh") == 0) { in SDLTest_CommonArg()
387 ++index; in SDLTest_CommonArg()
388 if (!argv[index]) { in SDLTest_CommonArg()
391 state->refresh_rate = SDL_atoi(argv[index]); in SDLTest_CommonArg()
394 if (SDL_strcasecmp(argv[index], "--vsync") == 0) { in SDLTest_CommonArg()
398 if (SDL_strcasecmp(argv[index], "--noframe") == 0) { in SDLTest_CommonArg()
402 if (SDL_strcasecmp(argv[index], "--resize") == 0) { in SDLTest_CommonArg()
406 if (SDL_strcasecmp(argv[index], "--minimize") == 0) { in SDLTest_CommonArg()
410 if (SDL_strcasecmp(argv[index], "--maximize") == 0) { in SDLTest_CommonArg()
414 if (SDL_strcasecmp(argv[index], "--grab") == 0) { in SDLTest_CommonArg()
418 if (SDL_strcasecmp(argv[index], "--rate") == 0) { in SDLTest_CommonArg()
419 ++index; in SDLTest_CommonArg()
420 if (!argv[index]) { in SDLTest_CommonArg()
423 state->audiospec.freq = SDL_atoi(argv[index]); in SDLTest_CommonArg()
426 if (SDL_strcasecmp(argv[index], "--format") == 0) { in SDLTest_CommonArg()
427 ++index; in SDLTest_CommonArg()
428 if (!argv[index]) { in SDLTest_CommonArg()
431 if (SDL_strcasecmp(argv[index], "U8") == 0) { in SDLTest_CommonArg()
435 if (SDL_strcasecmp(argv[index], "S8") == 0) { in SDLTest_CommonArg()
439 if (SDL_strcasecmp(argv[index], "U16") == 0) { in SDLTest_CommonArg()
443 if (SDL_strcasecmp(argv[index], "U16LE") == 0) { in SDLTest_CommonArg()
447 if (SDL_strcasecmp(argv[index], "U16BE") == 0) { in SDLTest_CommonArg()
451 if (SDL_strcasecmp(argv[index], "S16") == 0) { in SDLTest_CommonArg()
455 if (SDL_strcasecmp(argv[index], "S16LE") == 0) { in SDLTest_CommonArg()
459 if (SDL_strcasecmp(argv[index], "S16BE") == 0) { in SDLTest_CommonArg()
465 if (SDL_strcasecmp(argv[index], "--channels") == 0) { in SDLTest_CommonArg()
466 ++index; in SDLTest_CommonArg()
467 if (!argv[index]) { in SDLTest_CommonArg()
470 state->audiospec.channels = (Uint8) SDL_atoi(argv[index]); in SDLTest_CommonArg()
473 if (SDL_strcasecmp(argv[index], "--samples") == 0) { in SDLTest_CommonArg()
474 ++index; in SDLTest_CommonArg()
475 if (!argv[index]) { in SDLTest_CommonArg()
478 state->audiospec.samples = (Uint16) SDL_atoi(argv[index]); in SDLTest_CommonArg()
481 if (SDL_strcasecmp(argv[index], "--trackmem") == 0) { in SDLTest_CommonArg()
485 if ((SDL_strcasecmp(argv[index], "-h") == 0) in SDLTest_CommonArg()
486 || (SDL_strcasecmp(argv[index], "--help") == 0)) { in SDLTest_CommonArg()
490 if (SDL_strcmp(argv[index], "-NSDocumentRevisionsDebugMode") == 0) { in SDLTest_CommonArg()
1559 FullscreenTo(int index, int windowId) in FullscreenTo() argument
1568 SDL_GetDisplayBounds( index, &rect ); in FullscreenTo()