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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 { | 376 { |
377 FX_FLOAT x; | 377 FX_FLOAT x; |
378 FX_FLOAT y; | 378 FX_FLOAT y; |
379 unsigned cmd; | 379 unsigned cmd; |
380 vs.rewind(path_id); | 380 vs.rewind(path_id); |
381 while(!is_stop(cmd = vs.vertex(&x, &y))) { | 381 while(!is_stop(cmd = vs.vertex(&x, &y))) { |
382 add_vertex(x, y, cmd); | 382 add_vertex(x, y, cmd); |
383 } | 383 } |
384 } | 384 } |
385 template<class VertexSource> | 385 template<class VertexSource> |
386 void add_path_transformed(VertexSource& vs, const CFX_AffineMatrix* pMatrix,
unsigned path_id = 0) | 386 void add_path_transformed(VertexSource& vs, const CFX_Matrix* pMatrix, unsig
ned path_id = 0) |
387 { | 387 { |
388 FX_FLOAT x; | 388 FX_FLOAT x; |
389 FX_FLOAT y; | 389 FX_FLOAT y; |
390 unsigned cmd; | 390 unsigned cmd; |
391 vs.rewind(path_id); | 391 vs.rewind(path_id); |
392 while(!is_stop(cmd = vs.vertex(&x, &y))) { | 392 while(!is_stop(cmd = vs.vertex(&x, &y))) { |
393 if (pMatrix) { | 393 if (pMatrix) { |
394 pMatrix->Transform(x, y); | 394 pMatrix->Transform(x, y); |
395 } | 395 } |
396 add_vertex(x, y, cmd); | 396 add_vertex(x, y, cmd); |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 int m_prev_x; | 466 int m_prev_x; |
467 int m_prev_y; | 467 int m_prev_y; |
468 unsigned m_prev_flags; | 468 unsigned m_prev_flags; |
469 unsigned m_status; | 469 unsigned m_status; |
470 rect m_clip_box; | 470 rect m_clip_box; |
471 bool m_clipping; | 471 bool m_clipping; |
472 int m_cur_y; | 472 int m_cur_y; |
473 }; | 473 }; |
474 } | 474 } |
475 #endif | 475 #endif |
OLD | NEW |