]> Shamusworld >> Repos - ttedit/blob - src/bezier.h
Forgot new files in last commit. D'oh!
[ttedit] / src / bezier.h
1 // True Type Hack\r
2 //\r
3 // Bezier Curve fitter header\r
4 //\r
5 // This function takes three points and draws a curve using a\r
6 // second order Bezier function.\r
7 \r
8 #ifndef __BEZIER_H__\r
9 #define __BEZIER_H__\r
10 \r
11 #include <wx/wx.h>                                                              // For device context\r
12 \r
13 struct point\r
14 {\r
15         float x, y;\r
16 \r
17         point(float xx = 0, float yy = 0): x(xx), y(yy) {}\r
18 };\r
19 \r
20 void Bezier(wxDC &, point, point, point);\r
21 \r
22 #endif  // __BEZIER_H__\r