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

option for stereo

parent 4d38d3b0
No related branches found
No related tags found
No related merge requests found
......@@ -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?
......
......@@ -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?" },
......
......@@ -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)
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment