~timfelgentreff/stratagus/shaders

« back to all changes in this revision

Viewing changes to src/stratagus/stratagus.cpp

  • Committer: Tim Felgentreff
  • Date: 2015-10-19 16:16:19 UTC
  • Revision ID: timfelgentreff@gmail.com-20151019161619-m1217evzb35n9lyv
add cmdline switches for shaders, add ctrl+alt+/ as hard cycle keybinding, remove debug prints

Show diffs side-by-side

added added

removed removed

Lines of Context:
477
477
                "\t-v mode\t\tVideo mode resolution in format <xres>x<yres>\n"
478
478
                "\t-W\t\tWindowed video mode\n"
479
479
#if defined(USE_OPENGL) || defined(USE_GLES)
 
480
                "\t-x\t\tControls fullscreen scaling if your graphics card supports shaders.\n"\
 
481
                "\t  \t\tPass 1 for nearest-neigubour, 2 for EPX/AdvMame, 3 for HQx, 4 for SAL, 5 for SuperEagle\n"\
 
482
                "\t  \t\tYou can also use Ctrl+Alt+/ to cycle between these scaling algorithms at runtime.\n"
480
483
                "\t-Z\t\tUse OpenGL to scale the screen to the viewport (retro-style). Implies -O.\n"
481
484
#endif
482
485
                "map is relative to StratagusLibPath=datapath, use ./map for relative to cwd\n",
529
532
void ParseCommandLine(int argc, char **argv, Parameters &parameters)
530
533
{
531
534
        for (;;) {
532
 
                switch (getopt(argc, argv, "ac:d:D:eE:FhiI:lN:oOP:ps:S:u:v:WZ?")) {
 
535
                switch (getopt(argc, argv, "ac:d:D:eE:FhiI:lN:oOP:ps:S:u:v:Wx:Z?")) {
533
536
                        case 'a':
534
537
                                EnableAssert = true;
535
538
                                continue;
629
632
                                Video.FullScreen = 0;
630
633
                                continue;
631
634
#if defined(USE_OPENGL) || defined(USE_GLES)
 
635
                        case 'x':
 
636
                                ShaderIndex = atoi(optarg) % MAX_SHADERS;
 
637
                                continue;
632
638
                        case 'Z':
633
639
                                ForceUseOpenGL = 1;
634
640
                                UseOpenGL = 1;