Annotation of 43BSDTahoe/new/X/libibm/libsrc/makemask.h, revision 1.1

1.1     ! root        1: /* $Header: makemask.h,v 10.1 86/11/19 10:45:51 jg Exp $ */
        !             2: /* makemask.h -  Defines, constants, structures and globals
        !             3:  *               use by MakeMask()
        !             4:  *
        !             5:  *     Author:
        !             6:  *             Scott Bates
        !             7:  *             Brown University
        !             8:  *             IRIS, Box 1946
        !             9:  *             Providence, RI 02912
        !            10:  *
        !            11:  *
        !            12:  *             Copyright (c) 1986 Brown University
        !            13:  *
        !            14:  * Permission to use, copy, modify and distribute this software and its
        !            15:  * documentation for any purpose and without fee is hereby granted, provided
        !            16:  * that the above copyright notice appear in all copies, and that both
        !            17:  * that copyright notice and this permission notice appear in supporting
        !            18:  * documentation, and that the name of Brown University not be used in
        !            19:  * advertising or publicity pertaining to distribution of the software
        !            20:  * without specific, written prior permission. Brown University makes no
        !            21:  * representations about the suitability of this software for any purpose.
        !            22:  * It is provided "as-is" without express or implied warranty.
        !            23:  */
        !            24: 
        !            25: /*
        !            26:  * Edge table entry
        !            27:  */
        !            28: 
        !            29: static struct edge {
        !            30:     struct edge *NextEdge;     /* pointer to next edge */
        !            31:     long       Delta_X;        /* change in x per scan line */
        !            32:     long       Min_X;          /* current x value */
        !            33:     short      Max_Y;          /* last scan line of edge */
        !            34: };
        !            35: 
        !            36: /*
        !            37:  * Ploygon 
        !            38:  */
        !            39: 
        !            40: static struct Polygon {
        !            41:        Vertex  *PolyPoints;    /* pointer to list of points */
        !            42:        int     PolyCount;      /* number of points in polygon */
        !            43: };
        !            44: 
        !            45: /*
        !            46:  * Left and right mask values used by FillMask()
        !            47:  */
        !            48: 
        !            49: static long LeftMasks[] = {
        !            50:        0x80000000, 0xC0000000, 0xE0000000, 0xF0000000,
        !            51:        0xF8000000, 0xFC000000, 0xFE000000, 0xFF000000,
        !            52:        0xFF800000, 0xFFC00000, 0xFFE00000, 0xFFF00000,
        !            53:        0xFFF80000, 0xFFFC0000, 0xFFFE0000, 0xFFFF0000,
        !            54:        0xFFFF8000, 0xFFFFC000, 0xFFFFE000, 0xFFFFF000,
        !            55:        0xFFFFF800, 0xFFFFFC00, 0xFFFFFE00, 0xFFFFFF00,
        !            56:        0xFFFFFF80, 0xFFFFFFC0, 0xFFFFFFE0, 0xFFFFFFF0,
        !            57:        0xFFFFFFF8, 0xFFFFFFFC, 0xFFFFFFFE, 0xFFFFFFFF,
        !            58: };
        !            59: 
        !            60: static long RightMasks[] = {
        !            61:        0xFFFFFFFF, 0x7FFFFFFF, 0x3FFFFFFF, 0x1FFFFFFF,
        !            62:        0x0FFFFFFF, 0x07FFFFFF, 0x03FFFFFF, 0x01FFFFFF,
        !            63:        0x00FFFFFF, 0x007FFFFF, 0x003FFFFF, 0x001FFFFF,
        !            64:        0x000FFFFF, 0x0007FFFF, 0x0003FFFF, 0x0001FFFF,
        !            65:        0x0000FFFF, 0x00007FFF, 0x00003FFF, 0x00001FFF,
        !            66:        0x00000FFF, 0x000007FF, 0x000003FF, 0x000001FF,
        !            67:        0x000000FF, 0x0000007F, 0x0000003F, 0x0000001F,
        !            68:        0x0000000F, 0x00000007, 0x00000003, 0x00000001,
        !            69: };
        !            70: 
        !            71: /*
        !            72:  * global variables
        !            73:  */
        !            74: 
        !            75: static int EdgeCount;
        !            76: static struct edge **EdgeTable;
        !            77: static struct edge *Edges;
        !            78: static int Direction;
        !            79: static int ShortenStartOfEdge;

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.