Function:s2show

From S2PLOT

Jump to: navigation, search

s2show

Draw the scene and enter interactive mode if interactive is non-zero.

Prototype

void s2show(int interactive);

Description

Draw the scene and enter interactive mode if interactive is non-zero. This function never returns. If you need to regain control after displaying graphics, consider using s2disp.

See Also

s2disp Draw the scene, but return control when a timeout occurs or when 'TAB' key is pressed.


Code Example

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

int main(int argc, char *argv[])
{
   int interactive = 1;				/* Interactive mode */

   s2opend("/?",argc, argv);			/* Open the display */
   s2swin(-1.,1., -1.,1., -1.,1.);		/* Set the window coordinates */
   s2box("BCDET",0,0,"BCDET",0,0,"BCDET",0,0);	/* Draw coordinate box */
   s2show(interactive);				/* Open the s2plot window */
   
   return 1;
}

Back to S2PLOT function list.


Personal tools