Function:ss2qsa

From S2PLOT

(Difference between revisions)
Jump to: navigation, search
Revision as of 03:00, 23 November 2007
S2plot admin (Talk | contribs)

← Previous diff
Revision as of 03:00, 23 November 2007
S2plot admin (Talk | contribs)

Next diff →
Line 19: Line 19:
Dome types Dome types
-* NODOME 0+* NODOME
-* TRUNCBOTTOM 1+* TRUNCBOTTOM
-* TRUNCTOP 2+* TRUNCTOP
-* VSPHERICAL 3+* VSPHERICAL
-* HSPHERICAL 4+* HSPHERICAL
The fullscreen=0 if mode is not fullscreen, fullscreen=1 otherwise. The fullscreen=0 if mode is not fullscreen, fullscreen=1 otherwise.

Revision as of 03:00, 23 November 2007

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
  • 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.


Personal tools