OLD | NEW |
1 | 1 |
2 //---------------------------------------------------------------------------- | 2 //---------------------------------------------------------------------------- |
3 // XYQ: 2006-01-22 Copied from AGG project. | 3 // XYQ: 2006-01-22 Copied from AGG project. |
4 // TODO: This file uses intensive floating point operations, so it's NOT suitabl
e | 4 // TODO: This file uses intensive floating point operations, so it's NOT suitabl
e |
5 // for platforms like Symbian OS. We need to change to FIX format. | 5 // for platforms like Symbian OS. We need to change to FIX format. |
6 //---------------------------------------------------------------------------- | 6 //---------------------------------------------------------------------------- |
7 //---------------------------------------------------------------------------- | 7 //---------------------------------------------------------------------------- |
8 // Anti-Grain Geometry - Version 2.3 | 8 // Anti-Grain Geometry - Version 2.3 |
9 // Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com) | 9 // Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com) |
10 // | 10 // |
11 // Permission to copy, use, modify, sell and distribute this software | 11 // Permission to copy, use, modify, sell and distribute this software |
12 // is granted provided this copyright notice appears in all copies. | 12 // is granted provided this copyright notice appears in all copies. |
13 // This software is provided "as is" without express or implied | 13 // This software is provided "as is" without express or implied |
14 // warranty, and with no claim as to its suitability for any purpose. | 14 // warranty, and with no claim as to its suitability for any purpose. |
15 // | 15 // |
16 //---------------------------------------------------------------------------- | 16 //---------------------------------------------------------------------------- |
17 // Contact: mcseem@antigrain.com | 17 // Contact: mcseem@antigrain.com |
18 // mcseemagg@yahoo.com | 18 // mcseemagg@yahoo.com |
19 // http://www.antigrain.com | 19 // http://www.antigrain.com |
20 //---------------------------------------------------------------------------- | 20 //---------------------------------------------------------------------------- |
21 // | 21 // |
22 // Stroke generator | 22 // Stroke generator |
23 // | 23 // |
24 //---------------------------------------------------------------------------- | 24 //---------------------------------------------------------------------------- |
25 | 25 |
26 #include "agg_vcgen_stroke.h" | 26 #include "agg_vcgen_stroke.h" |
27 #include "core/fxcrt/include/fx_basic.h" | 27 #include "core/fxcrt/fx_basic.h" |
28 | 28 |
29 namespace agg | 29 namespace agg |
30 { | 30 { |
31 | 31 |
32 vcgen_stroke::vcgen_stroke() : | 32 vcgen_stroke::vcgen_stroke() : |
33 m_src_vertices(), | 33 m_src_vertices(), |
34 m_out_vertices(), | 34 m_out_vertices(), |
35 m_width(0.5f), | 35 m_width(0.5f), |
36 m_miter_limit(4 * 1.0f), | 36 m_miter_limit(4 * 1.0f), |
37 m_inner_miter_limit(1.0f + 1.0f / 100), | 37 m_inner_miter_limit(1.0f + 1.0f / 100), |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 m_status = m_prev_status; | 206 m_status = m_prev_status; |
207 return path_cmd_end_poly | path_flags_close | path_flags_cw; | 207 return path_cmd_end_poly | path_flags_close | path_flags_cw; |
208 case stop: | 208 case stop: |
209 cmd = path_cmd_stop; | 209 cmd = path_cmd_stop; |
210 break; | 210 break; |
211 } | 211 } |
212 } | 212 } |
213 return cmd; | 213 return cmd; |
214 } | 214 } |
215 } | 215 } |
OLD | NEW |