home *** CD-ROM | disk | FTP | other *** search
/ Vectronix 2 / VECTRONIX2.iso / FILES_01 / LATTIC_3.LZH / EXAMPLES / BLIT.C next >
C/C++ Source or Header  |  1990-05-14  |  791b  |  39 lines

  1. /*
  2.  * Demonstrate the Line-A blit routines
  3.  *
  4.  * lc -L blit.c
  5.  *
  6.  * Copyright (c) 1990 HiSoft
  7.  */
  8.  
  9. #include <linea.h>
  10. #include <vdi.h>
  11. #include <string.h>
  12. #include <osbind.h>
  13. #include <stddef.h>
  14.  
  15. int main(void)
  16. {
  17.     LA_BLIT blt;
  18.  
  19.     linea0();
  20.  
  21.     blt.bb_b_wd=V_X_MAX/2-1;
  22.     blt.bb_b_ht=V_Y_MAX/2-1;
  23.     blt.bb_plane_ct=VPLANES;
  24.     blt.bb_fg_col=1;
  25.     blt.bb_bg_col=1;
  26.     memset(blt.bb_op_tab,S_OR_D,sizeof(blt.bb_op_tab));
  27.     blt.bb_s.bl_xmin=blt.bb_s.bl_ymin=0;
  28.     blt.bb_s.bl_form=blt.bb_d.bl_form=Logbase();
  29.     blt.bb_s.bl_nxwd=blt.bb_d.bl_nxwd=1<<VPLANES;
  30.     blt.bb_s.bl_nxln=blt.bb_d.bl_nxln=VWRAP;
  31.     blt.bb_s.bl_nxpl=blt.bb_d.bl_nxpl=2;
  32.     blt.bb_p_addr=NULL;
  33.     blt.bb_s.bl_xmin=blt.bb_s.bl_ymin=0;
  34.     blt.bb_d.bl_xmin=V_X_MAX/2;
  35.     blt.bb_d.bl_ymin=V_Y_MAX/2;
  36.  
  37.     linea7(&blt);
  38. }
  39.