home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / source / bento / headers / polygon.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-02  |  1.7 KB  |  60 lines

  1. /*
  2.     File:        Polygon.h
  3.  
  4.     Contains:    OpenDoc polygon data structure
  5.  
  6.     Written by:    Jens Alfke
  7.  
  8.     Copyright:    ⌐ 1993-94 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <1>     2/17/94    JA        first checked in
  13.         ----------------------------Ripped out methods, moved to CPlusPlus.
  14.          <6>     2/16/94    JA        Stop including Point.h.
  15.          <5>      2/8/94    JA        Include <FixMath.h> before GX header to
  16.                                     avoid conflicts.
  17.          <4>      2/7/94    JA        Only declare Mac-specific methods if on Mac
  18.                                     platform.
  19.          <3>      2/3/94    JA        Tiger Team Makeover!
  20.          <2>     1/31/94    JA        Added Contains and AsQDRegion and improved
  21.                                     New methods.
  22.          <1>    11/29/93    JA        first checked in
  23.         ----------------------------Moved from Utilities to Imaging project
  24.          <4>    11/24/93    VL        Rolled back changes as ASLM build breaks
  25.                                     the THINK build.
  26.          <3>    11/23/93    VL        Made this work with ASLM.
  27.          <2>    11/23/93    VL        Added ASLM string.
  28.          <1>    11/23/93    JA        first checked in
  29.  
  30.     To Do:
  31. */
  32.  
  33.  
  34. #ifndef _POLYGON_
  35. #define _POLYGON_
  36.  
  37. #ifndef _XMPTYPES_
  38. #include "XMPTypes.h"
  39. #endif
  40.  
  41. //==============================================================================
  42. // XMPContour
  43. //==============================================================================
  44.  
  45. struct XMPContour {
  46.     XMPSLong    nVertices;                    // Variable-size struct:
  47.     XMPPoint    vertex[1];                    // Array size is actually nVertices
  48. };
  49.  
  50. //==============================================================================
  51. // XMPPolygon
  52. //==============================================================================
  53.  
  54. struct XMPPolygon {
  55.     XMPSLong    nContours;                    // Variable-size struct:
  56.     XMPContour    firstContour;                // Rest of contours follow after first
  57. };
  58.  
  59. #endif //_POLYGON_
  60.