|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T b
Length: 1606 (0x646) Types: TextFile Names: »bltstuff.h«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987 └─⟦this⟧ »EUUGD18/Sun/Asteroids/bltstuff.h«
/* bltstuff.h * * RasterOp definitions used by the Asteroids program. * Written by Rich Burridge - SUN Microsystems Australia (Melbourne). * * Version 3.0. - April 1987. * * No responsibility is taken for any errors inherent either to the code * or the comments of this program, but if reported to me then an attempt * will be made to fix them. */ #define RRPL PIX_SRC /* RASTEROP codes. */ #define ROR PIX_SRC | PIX_DST #define RXOR PIX_SRC ^ PIX_DST #define RCLR PIX_CLR #define RSET PIX_SET #define RINV PIX_NOT(PIX_DST) #define RXNOR PIX_SRC ^ PIX_NOT(PIX_DST) /* Machine independent rasterop calls. */ /* Manipulate a portion of the screen with itself. */ #define BLT_SCRN(sx,sy,w,h,op) \ (pw_writebackground(pw,sx,sy,w,h,op)) /* Move a screen raster to an offscreen area. */ #define BLT_SCRN_TO_MEM(mem,mx,my,w,h,op,sx,sy) \ (pw_read(mem,mx,my,w,h,op,pw,sx,sy)) /* Move an offscreen raster area to the screen. */ #define BLT_MEM_TO_SCRN(sx,sy,w,h,op,mem,mx,my) \ (pw_write(pw,sx,sy,w,h,op,mem,mx,my)) /* Move an offscreen raster area to another offscreen raster area. */ #define BLT_MEM(mem1,mx1,my1,w,h,op,mem2,mx2,my2) \ ((void) pr_rop(mem1,mx1,my1,w,h,op,mem2,mx2,my2)) /* Draw a line of type op,in a raster area. */ #define LINE(area,x1,y1,x2,y2,op) \ (pr_vector(area,x1,y1,x2,y2,op,1)) /* Write text at x,y using rasterop function sfunc and font pf. */ #define WRITELN(x,y,text) \ (pw_text(pw,x,y,sfunc,pf,text))