Function:ss2qsa

From S2PLOT

Revision as of 03:00, 23 November 2007; view current revision
←Older revision | Newer revision→
Jump to: navigation, search

ss2qsa

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 0
  • TRUNCBOTTOM 1
  • TRUNCTOP 2
  • VSPHERICAL 3
  • HSPHERICAL 4

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.


Personal tools