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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
fda3b566
Commit
fda3b566
authored
15 years ago
by
Gilles Marckmann
Browse files
Options
Downloads
Patches
Plain Diff
option for stereo
parent
4d38d3b0
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
Common/Context.h
+2
-2
2 additions, 2 deletions
Common/Context.h
Common/DefaultOptions.h
+2
-0
2 additions, 0 deletions
Common/DefaultOptions.h
Common/Options.cpp
+8
-0
8 additions, 0 deletions
Common/Options.cpp
Common/Options.h
+1
-0
1 addition, 0 deletions
Common/Options.h
with
13 additions
and
2 deletions
Common/Context.h
+
2
−
2
View file @
fda3b566
...
...
@@ -125,8 +125,8 @@ class CTX {
// characteristic length for the whole problem (never used in mesh
// generation ->only for geo/post)
double
lc
;
// double buffer/antialias graphics?
int
db
,
antialiasing
;
// double buffer/antialias
/stereo
graphics?
int
db
,
antialiasing
,
stereo
;
// orthogonal projection?
int
ortho
;
// draw the bounding boxes and the rot center?
...
...
This diff is collapsed.
Click to expand it.
Common/DefaultOptions.h
+
2
−
0
View file @
fda3b566
...
...
@@ -832,6 +832,8 @@ StringXNumber GeneralOptions_Number[] = {
{
F
|
S
,
"StatisticsPositionY"
,
opt_general_statistics_position1
,
150
.
,
"Vertical position (in pixels) of the upper left corner of the statistic"
" window"
},
{
F
|
O
,
"Stereo"
,
opt_general_stereo
,
0
.
,
"Use stereo rendering"
},
{
F
|
S
,
"SystemMenuBar"
,
opt_general_system_menu_bar
,
1
.
,
"Use the system menu bar on Mac OS X?"
},
...
...
This diff is collapsed.
Click to expand it.
Common/Options.cpp
+
8
−
0
View file @
fda3b566
...
...
@@ -3505,6 +3505,14 @@ double opt_general_antialiasing(OPT_ARGS_NUM)
return
CTX
::
instance
()
->
antialiasing
;
}
double
opt_general_stereo
(
OPT_ARGS_NUM
)
{
if
(
action
&
GMSH_SET
)
{
CTX
::
instance
()
->
stereo
=
(
int
)
val
;
}
return
CTX
::
instance
()
->
stereo
;
}
double
opt_general_alpha_blending
(
OPT_ARGS_NUM
)
{
if
(
action
&
GMSH_SET
)
...
...
This diff is collapsed.
Click to expand it.
Common/Options.h
+
1
−
0
View file @
fda3b566
...
...
@@ -339,6 +339,7 @@ double opt_general_small_axes_size(OPT_ARGS_NUM);
double
opt_general_quadric_subdivisions
(
OPT_ARGS_NUM
);
double
opt_general_double_buffer
(
OPT_ARGS_NUM
);
double
opt_general_antialiasing
(
OPT_ARGS_NUM
);
double
opt_general_stereo
(
OPT_ARGS_NUM
);
double
opt_general_alpha_blending
(
OPT_ARGS_NUM
);
double
opt_general_vector_type
(
OPT_ARGS_NUM
);
double
opt_general_arrow_head_radius
(
OPT_ARGS_NUM
);
...
...
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