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 // |
11 //---------------------------------------------------------------------------- | 11 //---------------------------------------------------------------------------- |
12 // Contact: mcseem@antigrain.com | 12 // Contact: mcseem@antigrain.com |
13 // mcseemagg@yahoo.com | 13 // mcseemagg@yahoo.com |
14 // http://www.antigrain.com | 14 // http://www.antigrain.com |
15 //---------------------------------------------------------------------------- | 15 //---------------------------------------------------------------------------- |
16 // | 16 // |
17 // Adaptation for 32-bit screen coordinates (scanline32_u) has been sponsored by | 17 // Adaptation for 32-bit screen coordinates (scanline32_u) has been sponsored by |
18 // Liberty Technology Systems, Inc., visit http://lib-sys.com | 18 // Liberty Technology Systems, Inc., visit http://lib-sys.com |
19 // | 19 // |
20 // Liberty Technology Systems, Inc. is the provider of | 20 // Liberty Technology Systems, Inc. is the provider of |
21 // PostScript and PDF technology for software developers. | 21 // PostScript and PDF technology for software developers. |
22 // | 22 // |
23 //---------------------------------------------------------------------------- | 23 //---------------------------------------------------------------------------- |
24 #ifndef AGG_SCANLINE_U_INCLUDED | 24 #ifndef AGG_SCANLINE_U_INCLUDED |
25 #define AGG_SCANLINE_U_INCLUDED | 25 #define AGG_SCANLINE_U_INCLUDED |
26 #include "agg_array.h" | 26 #include "agg_array.h" |
27 namespace agg | 27 namespace agg |
28 { | 28 { |
29 template<class CoverT> class scanline_u : public CFX_Object | 29 template<class CoverT> class scanline_u |
30 { | 30 { |
31 public: | 31 public: |
32 typedef scanline_u<CoverT> self_type; | 32 typedef scanline_u<CoverT> self_type; |
33 typedef CoverT cover_type; | 33 typedef CoverT cover_type; |
34 typedef int16 coord_type; | 34 typedef int16 coord_type; |
35 struct span : public CFX_Object { | 35 struct span { |
36 coord_type x; | 36 coord_type x; |
37 coord_type len; | 37 coord_type len; |
38 cover_type* covers; | 38 cover_type* covers; |
39 }; | 39 }; |
40 typedef span* iterator; | 40 typedef span* iterator; |
41 typedef const span* const_iterator; | 41 typedef const span* const_iterator; |
42 ~scanline_u() | 42 ~scanline_u() |
43 { | 43 { |
44 FX_Free(m_spans); | 44 FX_Free(m_spans); |
45 FX_Free(m_covers); | 45 FX_Free(m_covers); |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 unsigned m_max_len; | 141 unsigned m_max_len; |
142 int m_last_x; | 142 int m_last_x; |
143 int m_y; | 143 int m_y; |
144 cover_type* m_covers; | 144 cover_type* m_covers; |
145 span* m_spans; | 145 span* m_spans; |
146 span* m_cur_span; | 146 span* m_cur_span; |
147 }; | 147 }; |
148 typedef scanline_u<int8u> scanline_u8; | 148 typedef scanline_u<int8u> scanline_u8; |
149 } | 149 } |
150 #endif | 150 #endif |
OLD | NEW |