1
0

Add antialiasing command line option

This commit is contained in:
otya128
2016-12-05 22:44:25 +09:00
parent be8cac6d31
commit 27e323375f
2 changed files with 19 additions and 5 deletions

View File

@@ -11,7 +11,8 @@ int main(string[] argv)
{
bool nodirectmode;
string inputfile;
auto helpInformation = getopt(argv, "no-direct-mode", &nodirectmode, "file", &inputfile);
bool antialiasing;
auto helpInformation = getopt(argv, "no-direct-mode", &nodirectmode, "file", &inputfile, "anti-aliasing", "Enable antialiasing.", &antialiasing);
if (helpInformation.helpWanted)
{
defaultGetoptPrinter("Some information about the program.",
@@ -21,7 +22,7 @@ int main(string[] argv)
//try
{
auto pc = new PetitComputer();
pc.run(nodirectmode, inputfile);
pc.run(nodirectmode, inputfile, antialiasing);
}
/*(Throwable t)
{