| OLD | NEW |
| 1 | 1 |
| 2 //---------------------------------------------------------------------------- | 2 //---------------------------------------------------------------------------- |
| 3 // Anti-Grain Geometry - Version 2.3 | 3 // Anti-Grain Geometry - Version 2.3 |
| 4 // Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com) | 4 // Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com) |
| 5 // | 5 // |
| 6 // Permission to copy, use, modify, sell and distribute this software | 6 // Permission to copy, use, modify, sell and distribute this software |
| 7 // is granted provided this copyright notice appears in all copies. | 7 // is granted provided this copyright notice appears in all copies. |
| 8 // This software is provided "as is" without express or implied | 8 // This software is provided "as is" without express or implied |
| 9 // warranty, and with no claim as to its suitability for any purpose. | 9 // warranty, and with no claim as to its suitability for any purpose. |
| 10 // | 10 // |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 typedef AGG_INT64 int64; | 51 typedef AGG_INT64 int64; |
| 52 typedef AGG_INT64U int64u; | 52 typedef AGG_INT64U int64u; |
| 53 typedef unsigned char cover_type; | 53 typedef unsigned char cover_type; |
| 54 enum cover_scale_e { | 54 enum cover_scale_e { |
| 55 cover_shift = 8, | 55 cover_shift = 8, |
| 56 cover_size = 1 << cover_shift, | 56 cover_size = 1 << cover_shift, |
| 57 cover_mask = cover_size - 1, | 57 cover_mask = cover_size - 1, |
| 58 cover_none = 0, | 58 cover_none = 0, |
| 59 cover_full = cover_mask | 59 cover_full = cover_mask |
| 60 }; | 60 }; |
| 61 template<class T> struct rect_base : public CFX_Object { | 61 template<class T> struct rect_base { |
| 62 typedef rect_base<T> self_type; | 62 typedef rect_base<T> self_type; |
| 63 T x1; | 63 T x1; |
| 64 T y1; | 64 T y1; |
| 65 T x2; | 65 T x2; |
| 66 T y2; | 66 T y2; |
| 67 rect_base() {} | 67 rect_base() {} |
| 68 rect_base(T x1_, T y1_, T x2_, T y2_) : | 68 rect_base(T x1_, T y1_, T x2_, T y2_) : |
| 69 x1(x1_), y1(y1_), x2(x2_), y2(y2_) {} | 69 x1(x1_), y1(y1_), x2(x2_), y2(y2_) {} |
| 70 const self_type& normalize() | 70 const self_type& normalize() |
| 71 { | 71 { |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 inline unsigned get_orientation(unsigned c) | 250 inline unsigned get_orientation(unsigned c) |
| 251 { | 251 { |
| 252 c &= ~path_flags_jr; | 252 c &= ~path_flags_jr; |
| 253 return c & (path_flags_cw | path_flags_ccw); | 253 return c & (path_flags_cw | path_flags_ccw); |
| 254 } | 254 } |
| 255 inline unsigned set_orientation(unsigned c, unsigned o) | 255 inline unsigned set_orientation(unsigned c, unsigned o) |
| 256 { | 256 { |
| 257 c &= ~path_flags_jr; | 257 c &= ~path_flags_jr; |
| 258 return clear_orientation(c) | o; | 258 return clear_orientation(c) | o; |
| 259 } | 259 } |
| 260 struct point_type : public CFX_Object { | 260 struct point_type { |
| 261 FX_FLOAT x, y; | 261 FX_FLOAT x, y; |
| 262 unsigned flag; | 262 unsigned flag; |
| 263 point_type() {} | 263 point_type() {} |
| 264 point_type(FX_FLOAT x_, FX_FLOAT y_, unsigned flag_ = 0) : x(x_), y(y_), fla
g(flag_) {} | 264 point_type(FX_FLOAT x_, FX_FLOAT y_, unsigned flag_ = 0) : x(x_), y(y_), fla
g(flag_) {} |
| 265 }; | 265 }; |
| 266 struct point_type_flag : public point_type { | 266 struct point_type_flag : public point_type { |
| 267 unsigned flag; | 267 unsigned flag; |
| 268 point_type_flag() | 268 point_type_flag() |
| 269 { | 269 { |
| 270 flag = 0; | 270 flag = 0; |
| 271 } | 271 } |
| 272 point_type_flag(FX_FLOAT x_, FX_FLOAT y_, unsigned flag_ = 0) : point_type(x
_, y_), flag(flag_) {} | 272 point_type_flag(FX_FLOAT x_, FX_FLOAT y_, unsigned flag_ = 0) : point_type(x
_, y_), flag(flag_) {} |
| 273 }; | 273 }; |
| 274 struct vertex_type : public CFX_Object { | 274 struct vertex_type { |
| 275 FX_FLOAT x, y; | 275 FX_FLOAT x, y; |
| 276 unsigned cmd; | 276 unsigned cmd; |
| 277 vertex_type() {} | 277 vertex_type() {} |
| 278 vertex_type(FX_FLOAT x_, FX_FLOAT y_, unsigned cmd_) : | 278 vertex_type(FX_FLOAT x_, FX_FLOAT y_, unsigned cmd_) : |
| 279 x(x_), y(y_), cmd(cmd_) {} | 279 x(x_), y(y_), cmd(cmd_) {} |
| 280 }; | 280 }; |
| 281 } | 281 } |
| 282 #endif | 282 #endif |
| OLD | NEW |