| 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 #ifndef AGG_CONV_ADAPTOR_VCGEN_INCLUDED | 16 #ifndef AGG_CONV_ADAPTOR_VCGEN_INCLUDED |
| 17 #define AGG_CONV_ADAPTOR_VCGEN_INCLUDED | 17 #define AGG_CONV_ADAPTOR_VCGEN_INCLUDED |
| 18 #include "agg_basics.h" | 18 #include "agg_basics.h" |
| 19 namespace agg | 19 namespace agg |
| 20 { | 20 { |
| 21 struct null_markers : public CFX_Object { | 21 struct null_markers { |
| 22 void remove_all() {} | 22 void remove_all() {} |
| 23 void add_vertex(FX_FLOAT, FX_FLOAT, unsigned) {} | 23 void add_vertex(FX_FLOAT, FX_FLOAT, unsigned) {} |
| 24 void prepare_src() {} | 24 void prepare_src() {} |
| 25 void rewind(unsigned) {} | 25 void rewind(unsigned) {} |
| 26 unsigned vertex(FX_FLOAT*, FX_FLOAT*) | 26 unsigned vertex(FX_FLOAT*, FX_FLOAT*) |
| 27 { | 27 { |
| 28 return path_cmd_stop; | 28 return path_cmd_stop; |
| 29 } | 29 } |
| 30 }; | 30 }; |
| 31 template<class VertexSource, | 31 template<class VertexSource, |
| 32 class Generator, | 32 class Generator, |
| 33 class Markers = null_markers> class conv_adaptor_vcgen : public CFX_Obj
ect | 33 class Markers = null_markers> class conv_adaptor_vcgen |
| 34 { | 34 { |
| 35 enum status { | 35 enum status { |
| 36 initial, | 36 initial, |
| 37 accumulate, | 37 accumulate, |
| 38 generate | 38 generate |
| 39 }; | 39 }; |
| 40 public: | 40 public: |
| 41 conv_adaptor_vcgen(VertexSource& source) : | 41 conv_adaptor_vcgen(VertexSource& source) : |
| 42 m_source(&source), | 42 m_source(&source), |
| 43 m_status(initial) | 43 m_status(initial) |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 break; | 129 break; |
| 130 } | 130 } |
| 131 done = true; | 131 done = true; |
| 132 break; | 132 break; |
| 133 } | 133 } |
| 134 } | 134 } |
| 135 return cmd; | 135 return cmd; |
| 136 } | 136 } |
| 137 } | 137 } |
| 138 #endif | 138 #endif |
| OLD | NEW |