Function:ss2qsa

From S2PLOT

Jump to: navigation, search

ss2qsa

Query the screen type and settings.

Prototype

void ss2qsa(int *stereo, int *fullscreen, int *dome);

Description

Query the "screen" type, including stereo setting, fullscreen and dome status/type. The following return values are possible (see also s2const.h):

Stereo types

  • NOSTEREO
  • ACTIVESTEREO
  • DUALSTEREO
  • ANAGLYPHSTEREO
  • TRIOSTEREO
  • INTERSTEREO

Dome types

  • NODOME
  • TRUNCBOTTOM
  • TRUNCTOP
  • VSPHERICAL
  • HSPHERICAL

The fullscreen=0 if mode is not fullscreen, fullscreen=1 otherwise.

See Also

ss2sasStart/Stop the camera rotation..

Code Example

#include <stdio.h>
#include <stdlib.h>
#include "s2plot.h"


int main(int argc, char *argv[])
{
   fprintf(stderr,"Choose a screen mode by entering ?\n");

   s2opend("/?", argc, argv);                   /* Prompt for user selection */
   s2swin(-1.,1., -1.,1., -1.,1.);              /* Set the window coordinates */
   s2box("BCDET",0,0,"BCDET",0,0,"BCDET",0,0);  /* Draw coordinate box */

   int stereo;
   int fullscreen;
   int dome;
   ss2qsa(&stereo, &fullscreen, &dome);

   fprintf(stderr,"You choose an S2PLOT screen with:\n");
   if (stereo == NOSTEREO) fprintf(stderr,"\tNo stereo support\n");
   else fprintf(stderr,"\tA stereo mode \n");

   if (fullscreen == 1) fprintf(stderr,"\tFull screen\n");
   else fprintf(stderr,"\tNot fullscreen\n");

   if (dome == NODOME) fprintf(stderr,"\tNo dome support\n");
   else fprintf(stderr,"\tA dome mode\n");


   return 1;
}

Back to S2PLOT function list.