home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
pctchnqs
/
1991
/
number6
/
bezier
/
bez.h
< prev
next >
Wrap
Text File
|
1991-09-01
|
896b
|
21 lines
/* BEZ.H : header file for BEZ.C */
/* possible values for variable iState in BezTool() */
#define NOT_STARTED 0
#define DRAG_HAND1 1
#define WAIT_FOR_CTRL2 2
#define DRAG_HAND2 3
#define BEZ_DEPTH 4 /* maximum recursive depth for DeCasteljau */
#define NUM_BEZPTS 17 /* num Bezier pts calculated = 2^BEZ_DEPTH + 1 */
#define IDM_ABOUT 100 /* ID for About */
/* function prototypes */
long FAR PASCAL WndProc(HWND hWnd, unsigned iMessage, WORD wParam, LONG lParam);
void NEAR PASCAL BezTool(HWND hWnd, unsigned iMessage, LONG lParam);
BOOL FAR PASCAL AboutBez(HWND hDlg, unsigned message, WORD wParam, LONG lParam);
void NEAR PASCAL DrawBez(HDC hDC, POINT ctrl1, POINT hand1, POINT hand2, POINT ctrl2);
void NEAR PASCAL SubDivideBez(POINT a0, POINT b0, POINT c0, POINT d0, int depth);
void NEAR PASCAL DrawHandle(HDC hDC, POINT p, POINT q);