home *** CD-ROM | disk | FTP | other *** search
/ Vectronix 2 / VECTRONIX2.iso / FILES_01 / LATTIC_3.LZH / LESSONS / PROG2.C next >
C/C++ Source or Header  |  1990-05-15  |  865b  |  28 lines

  1. #include <aes.h>        /* get the AES prototypes and definitions */
  2. #include <vdi.h>        /* get the VDI prototypes and definitions */
  3.  
  4. /* v_opnvwk input array */
  5. short work_in[11]={1,1,1,1,1,1,1,1,1,1,2};
  6.  
  7. /* v_opnvwk output array */
  8. short work_out[57];
  9.  
  10. int main(void)
  11. {
  12.     short handle;        /* virtual workstation handle */
  13.     short junk;            /* unused variable */
  14.     
  15.     appl_init();        /* start AES */
  16.     handle=graf_handle(&junk,&junk,&junk,&junk);    /* find AES handle */
  17.     v_opnvwk(work_in,handle,work_out);                /* open workstation */
  18.     v_clrwk(handle);                                /* clear workstation */
  19.  
  20.     vsf_interior(handle;FIS_USER);    /* select fill type user-defined */
  21.                                     /* draw a circle on screen */
  22.     v_circle(handle,work_out[0]/2,work_out[1]/2,work_out[1]/2);
  23.  
  24.     v_clsvwk(handle);                /* close workstation */
  25.     evnt_keybd();
  26.     return appl_exit();                /* shutdown AES */
  27. }
  28.