/* ciitestboxes.c * Copyright Ó 1993 by Xerox Corporation. All rights reserved. * Michael Plass, May 18, 1993 4:06:53 pm PDT */ #include "cii.h" short unsigned x1[] = {0,5, 1,5, 2,5, 3,5, 4,4, 3,3, 2,2, 1,1}; static void BoxesExample(CII_Handle dev) { CII_MaskProgram prog; CII_MakeMaskProgram(dev, 1, 1, "L1S4L2S5L0S6{L0-5XL0-6+4S1=17+1S3=1+0S2ES0}", &prog); CII_MaskDeviceBoxes(dev, 60, 10, 200, 300, 2, prog, 0, (void*)0); CII_DestroyMaskProgram(dev, prog); CII_MakeMaskProgram(dev, 1, 1, "L1S4L2S5{L0-5XW2+4S1W2+1S3=1+0S2ES0}", &prog); CII_MaskDeviceBoxes(dev, 20, 10, 30, 90, 2, prog, sizeof(x1), x1); CII_MaskDeviceBoxes(dev, 20, 40, 25, 90, 2, prog, sizeof(x1), x1); CII_DestroyMaskProgram(dev, prog); CII_MakeMaskProgram(dev, 1, 1, "L1S4L2S5{L0-5XW2+4S1W2+1S3=2+0S2ES0}", &prog); CII_MaskDeviceBoxes(dev, 40, 10, 60, 90, 2, prog, sizeof(x1), x1); CII_DestroyMaskProgram(dev, prog); } extern void XR_run_ciitestboxes() { CII_Handle dev = (CII_Handle)CII_TestDevice(); float t[6]; CII_GetInitialMatrix(dev, t); CII_SetMatrix(dev, t); BoxesExample(dev); CII_Destroy(dev); }