home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MAGAZINE / MISC / PCTV2N6.ZIP / BEZIER.ZIP / BEZ.H < prev    next >
Encoding:
C/C++ Source or Header  |  1991-09-01  |  896 b   |  21 lines

  1. /* BEZ.H : header file for BEZ.C */
  2.  
  3. /* possible values for variable iState in BezTool() */
  4. #define NOT_STARTED    0
  5. #define DRAG_HAND1     1
  6. #define WAIT_FOR_CTRL2 2
  7. #define DRAG_HAND2     3
  8.  
  9. #define BEZ_DEPTH      4   /* maximum recursive depth for DeCasteljau */
  10. #define NUM_BEZPTS    17   /* num Bezier pts calculated = 2^BEZ_DEPTH + 1 */
  11.  
  12. #define IDM_ABOUT    100   /* ID for About */
  13.  
  14. /* function prototypes */
  15. long FAR  PASCAL WndProc(HWND hWnd, unsigned iMessage, WORD wParam, LONG lParam);
  16. void NEAR PASCAL BezTool(HWND hWnd, unsigned iMessage, LONG lParam);
  17. BOOL FAR  PASCAL AboutBez(HWND hDlg, unsigned message, WORD wParam, LONG lParam);
  18. void NEAR PASCAL DrawBez(HDC hDC, POINT ctrl1, POINT hand1, POINT hand2, POINT ctrl2);
  19. void NEAR PASCAL SubDivideBez(POINT a0, POINT b0, POINT c0, POINT d0, int depth);
  20. void NEAR PASCAL DrawHandle(HDC hDC, POINT p, POINT q);
  21.