home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Vectronix 2
/
VECTRONIX2.iso
/
FILES_07
/
LATTIC_3.ZIP
/
EXAMPLES
/
BLIT.C
next >
Wrap
C/C++ Source or Header
|
1990-05-14
|
791b
|
39 lines
/*
* Demonstrate the Line-A blit routines
*
* lc -L blit.c
*
* Copyright (c) 1990 HiSoft
*/
#include <linea.h>
#include <vdi.h>
#include <string.h>
#include <osbind.h>
#include <stddef.h>
int main(void)
{
LA_BLIT blt;
linea0();
blt.bb_b_wd=V_X_MAX/2-1;
blt.bb_b_ht=V_Y_MAX/2-1;
blt.bb_plane_ct=VPLANES;
blt.bb_fg_col=1;
blt.bb_bg_col=1;
memset(blt.bb_op_tab,S_OR_D,sizeof(blt.bb_op_tab));
blt.bb_s.bl_xmin=blt.bb_s.bl_ymin=0;
blt.bb_s.bl_form=blt.bb_d.bl_form=Logbase();
blt.bb_s.bl_nxwd=blt.bb_d.bl_nxwd=1<<VPLANES;
blt.bb_s.bl_nxln=blt.bb_d.bl_nxln=VWRAP;
blt.bb_s.bl_nxpl=blt.bb_d.bl_nxpl=2;
blt.bb_p_addr=NULL;
blt.bb_s.bl_xmin=blt.bb_s.bl_ymin=0;
blt.bb_d.bl_xmin=V_X_MAX/2;
blt.bb_d.bl_ymin=V_Y_MAX/2;
linea7(&blt);
}