Annotation of mstools/samples/gdidemo/poly.h, revision 1.1.1.1

1.1       root        1: /*---------------------------------------------------------------------------*\
                      2: | POLYBEZIER DEMO HEADER FILE
                      3: |   This is the poly-bezier header file for poly.c.  This contains the
                      4: |   definitions and structures for the polybezier demo window.  It must be
                      5: |   include in any module who references the polybezier object.
                      6: |
                      7: |
                      8: | created: 31-Oct-90
                      9: | history: 31-Oct-90 <chriswil> created.
                     10: |
                     11: \*---------------------------------------------------------------------------*/
                     12: 
                     13: #ifdef WIN16
                     14: #define APIENTRY FAR PASCAL
                     15: typedef WORD WPARAM;
                     16: //#else
                     17: //typedef DWORD WPARAM;
                     18: #endif
                     19: 
                     20: 
                     21: #define POLYCLASS  "POLYDEMO"
                     22: #define POLYTITLE  "PolyBezier Demo"
                     23: 
                     24: #define MAX_BEZIER 80
                     25: #define VELMAX     10
                     26: #define VELMIN      2
                     27: 
                     28: 
                     29: /*
                     30: ** This structue defines a basic bezier curve.  It is intended to be used in
                     31: ** an array of beziers.
                     32: */
                     33: typedef struct _BEZBUFFER
                     34: {
                     35:     POINT pPts[4];
                     36: } BEZBUFFER;
                     37: typedef BEZBUFFER      *PBEZBUFFER;
                     38: typedef BEZBUFFER NEAR *NPBEZBUFFER;
                     39: typedef BEZBUFFER FAR  *LPBEZBUFFER;
                     40: 
                     41: 
                     42: /*
                     43: ** This is the main object for the polybezier window.  This structure defines
                     44: ** a series of bezier curves and the distance between each curve.
                     45: */
                     46: typedef struct _POLYDATA
                     47: {
                     48:     int      nBezTotal;
                     49:     int      nBezCurr;
                     50:     int      nColor;
                     51:     POINT    pVel[4];
                     52:     HANDLE   hBezBuffer;
                     53: } POLYDATA;
                     54: typedef POLYDATA      *PPOLYDATA;
                     55: typedef POLYDATA NEAR *NPPOLYDATA;
                     56: typedef POLYDATA FAR  *LPPOLYDATA;
                     57: 
                     58: 
                     59: /*
                     60: ** POLYBEZIER WINDOW ROUTINES (poly.c)
                     61: */
                     62: HWND  FAR      CreatePolyWindow(HWND,int);
                     63: LONG  APIENTRY PolyProc(HWND,UINT,WPARAM,LONG);
                     64: BOOL           PolyCreateProc(HWND);
                     65: VOID           PolyDestroyProc(HWND);
                     66: BOOL           PolyCommandProc(HWND,WPARAM,LONG);
                     67: VOID           PolyPaintProc(HWND);
                     68: 
                     69: 
                     70: VOID           PolyRedraw(HWND);
                     71: int            PolyNewVel(int);
                     72: VOID           PolyInitPoints(HWND);
                     73: VOID           PolyDrawBez(HWND);

unix.superglobalmegacorp.com

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