Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
4ecd5284
Commit
4ecd5284
authored
12 years ago
by
Gilles Marckmann
Browse files
Options
Downloads
Patches
Plain Diff
Add command line "Display options:"
-camera Use camera mode view -stereo OpenGL quad-buffered stereo rendering
parent
34209e7d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Common/CommandLine.cpp
+11
-0
11 additions, 0 deletions
Common/CommandLine.cpp
doc/texinfo/opt_general.texi
+1
-1
1 addition, 1 deletion
doc/texinfo/opt_general.texi
with
12 additions
and
1 deletion
Common/CommandLine.cpp
+
11
−
0
View file @
4ecd5284
...
...
@@ -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
(
" -theme string Specify FLTK GUI theme"
);
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
s
.
push_back
(
"Other options:"
);
s
.
push_back
(
" - Parse input files, then exit"
);
...
...
@@ -893,6 +895,15 @@ void GetOptions(int argc, char *argv[])
CTX
::
instance
()
->
db
=
0
;
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"
))
{
i
++
;
if
(
argv
[
i
])
...
...
This diff is collapsed.
Click to expand it.
doc/texinfo/opt_general.texi
+
1
−
1
View file @
4ecd5284
...
...
@@ -980,7 +980,7 @@ Default value: @code{150}@*
Saved in: @code{General.SessionFileName}
@item General.Stereo
Use stereo rendering@*
Use stereo rendering
: use command line gmsh -string ``General.Stereo=1;''
@*
Default value: @code{0}@*
Saved in: @code{General.OptionsFileName}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment