Skip to content
Snippets Groups Projects
Commit 4ecd5284 authored by Gilles Marckmann's avatar Gilles Marckmann
Browse files

Add command line "Display options:"

   -camera               Use camera mode view
   -stereo               OpenGL quad-buffered stereo rendering
parent 34209e7d
No related branches found
No related tags found
No related merge requests found
...@@ -102,6 +102,8 @@ std::vector<std::string> GetUsage(const std::string &name) ...@@ -102,6 +102,8 @@ std::vector<std::string> GetUsage(const std::string &name)
s.push_back(" -fontsize int Specify the font size for the GUI"); s.push_back(" -fontsize int Specify the font size for the GUI");
s.push_back(" -theme string Specify FLTK GUI theme"); s.push_back(" -theme string Specify FLTK GUI theme");
s.push_back(" -display string Specify display"); s.push_back(" -display string Specify display");
s.push_back(" -camera Use camera mode view;");
s.push_back(" -stereo OpenGL quad-buffered stereo rendering (requires special graphic card)");
#endif #endif
s.push_back("Other options:"); s.push_back("Other options:");
s.push_back(" - Parse input files, then exit"); s.push_back(" - Parse input files, then exit");
...@@ -893,6 +895,15 @@ void GetOptions(int argc, char *argv[]) ...@@ -893,6 +895,15 @@ void GetOptions(int argc, char *argv[])
CTX::instance()->db = 0; CTX::instance()->db = 0;
i++; i++;
} }
else if(!strcmp(argv[i] + 1, "camera")) {
CTX::instance()->camera = 1;
i++;
}
else if(!strcmp(argv[i] + 1, "stereo")) {
CTX::instance()->camera = 1;
CTX::instance()->stereo = 1;
i++;
}
else if(!strcmp(argv[i] + 1, "fontsize")) { else if(!strcmp(argv[i] + 1, "fontsize")) {
i++; i++;
if(argv[i]) if(argv[i])
......
...@@ -980,7 +980,7 @@ Default value: @code{150}@* ...@@ -980,7 +980,7 @@ Default value: @code{150}@*
Saved in: @code{General.SessionFileName} Saved in: @code{General.SessionFileName}
@item General.Stereo @item General.Stereo
Use stereo rendering@* Use stereo rendering : use command line gmsh -string ``General.Stereo=1;''@*
Default value: @code{0}@* Default value: @code{0}@*
Saved in: @code{General.OptionsFileName} Saved in: @code{General.OptionsFileName}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment