Add antialiasing command line option
This commit is contained in:
1 parent
be8cac6d31
commit
27e323375f
2 files changed
+19
-5
No files matched your search
+3
-2
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user