diff options
Diffstat (limited to 'agg/inc/agg_renderer_mclip.h')
-rwxr-xr-x | agg/inc/agg_renderer_mclip.h | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/agg/inc/agg_renderer_mclip.h b/agg/inc/agg_renderer_mclip.h index dc758b9ea72d..95a57009a8f6 100755 --- a/agg/inc/agg_renderer_mclip.h +++ b/agg/inc/agg_renderer_mclip.h @@ -2,8 +2,8 @@ // Anti-Grain Geometry - Version 2.3 // Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com) // -// Permission to copy, use, modify, sell and distribute this software -// is granted provided this copyright notice appears in all copies. +// Permission to copy, use, modify, sell and distribute this software +// is granted provided this copyright notice appears in all copies. // This software is provided "as is" without express or implied // warranty, and with no claim as to its suitability for any purpose. // @@ -42,7 +42,7 @@ namespace agg m_bounds(m_ren.xmin(), m_ren.ymin(), m_ren.xmax(), m_ren.ymax()) { } - + //-------------------------------------------------------------------- const pixfmt_type& ren() const { return m_ren.ren(); } pixfmt_type& ren() { return m_ren.ren(); } @@ -66,7 +66,7 @@ namespace agg int bounding_ymax() const { return m_bounds.y2; } //-------------------------------------------------------------------- - void first_clip_box() + void first_clip_box() { m_curr_cb = 0; if(m_clip.size()) @@ -77,15 +77,15 @@ namespace agg } //-------------------------------------------------------------------- - bool next_clip_box() - { + bool next_clip_box() + { if(++m_curr_cb < m_clip.size()) { const rect& cb = m_clip[m_curr_cb]; m_ren.clip_box_naked(cb.x1, cb.y1, cb.x2, cb.y2); return true; } - return false; + return false; } //-------------------------------------------------------------------- @@ -96,11 +96,11 @@ namespace agg m_curr_cb = 0; m_bounds = m_ren.clip_box(); } - + //-------------------------------------------------------------------- void add_clip_box(int x1, int y1, int x2, int y2) { - rect cb(x1, y1, x2, y2); + rect cb(x1, y1, x2, y2); cb.normalize(); if(cb.clip(rect(0, 0, width() - 1, height() - 1))) { @@ -117,7 +117,7 @@ namespace agg { m_ren.clear(c); } - + //-------------------------------------------------------------------- void copy_pixel(int x, int y, const color_type& c) { @@ -186,7 +186,7 @@ namespace agg } //-------------------------------------------------------------------- - void blend_hline(int x1, int y, int x2, + void blend_hline(int x1, int y, int x2, const color_type& c, cover_type cover) { first_clip_box(); @@ -198,7 +198,7 @@ namespace agg } //-------------------------------------------------------------------- - void blend_vline(int x, int y1, int y2, + void blend_vline(int x, int y1, int y2, const color_type& c, cover_type cover) { first_clip_box(); @@ -221,7 +221,7 @@ namespace agg } //-------------------------------------------------------------------- - void blend_bar(int x1, int y1, int x2, int y2, + void blend_bar(int x1, int y1, int x2, int y2, const color_type& c, cover_type cover) { first_clip_box(); @@ -234,7 +234,7 @@ namespace agg //-------------------------------------------------------------------- - void blend_solid_hspan(int x, int y, int len, + void blend_solid_hspan(int x, int y, int len, const color_type& c, const cover_type* covers) { first_clip_box(); @@ -246,7 +246,7 @@ namespace agg } //-------------------------------------------------------------------- - void blend_solid_vspan(int x, int y, int len, + void blend_solid_vspan(int x, int y, int len, const color_type& c, const cover_type* covers) { first_clip_box(); @@ -258,8 +258,8 @@ namespace agg } //-------------------------------------------------------------------- - void blend_color_hspan(int x, int y, int len, - const color_type* colors, + void blend_color_hspan(int x, int y, int len, + const color_type* colors, const cover_type* covers, cover_type cover = cover_full) { @@ -272,8 +272,8 @@ namespace agg } //-------------------------------------------------------------------- - void blend_color_vspan(int x, int y, int len, - const color_type* colors, + void blend_color_vspan(int x, int y, int len, + const color_type* colors, const cover_type* covers, cover_type cover = cover_full) { @@ -287,8 +287,8 @@ namespace agg //-------------------------------------------------------------------- - void blend_qpaque_color_hspan(int x, int y, int len, - const color_type* colors, + void blend_qpaque_color_hspan(int x, int y, int len, + const color_type* colors, const cover_type* covers, cover_type cover = cover_full) { @@ -301,8 +301,8 @@ namespace agg } //-------------------------------------------------------------------- - void blend_opaque_color_vspan(int x, int y, int len, - const color_type* colors, + void blend_opaque_color_vspan(int x, int y, int len, + const color_type* colors, const cover_type* covers, cover_type cover = cover_full) { @@ -316,8 +316,8 @@ namespace agg //-------------------------------------------------------------------- - void blend_color_hspan_no_clip(int x, int y, int len, - const color_type* colors, + void blend_color_hspan_no_clip(int x, int y, int len, + const color_type* colors, const cover_type* covers, cover_type cover = cover_full) { @@ -325,8 +325,8 @@ namespace agg } //-------------------------------------------------------------------- - void blend_color_vspan_no_clip(int x, int y, int len, - const color_type* colors, + void blend_color_vspan_no_clip(int x, int y, int len, + const color_type* colors, const cover_type* covers, cover_type cover = cover_full) { @@ -334,8 +334,8 @@ namespace agg } //-------------------------------------------------------------------- - void blend_opaque_color_hspan_no_clip(int x, int y, int len, - const color_type* colors, + void blend_opaque_color_hspan_no_clip(int x, int y, int len, + const color_type* colors, const cover_type* covers, cover_type cover = cover_full) { @@ -343,8 +343,8 @@ namespace agg } //-------------------------------------------------------------------- - void blend_opaque_color_vspan_no_clip(int x, int y, int len, - const color_type* colors, + void blend_opaque_color_vspan_no_clip(int x, int y, int len, + const color_type* colors, const cover_type* covers, cover_type cover = cover_full) { @@ -353,9 +353,9 @@ namespace agg //-------------------------------------------------------------------- - void copy_from(const rendering_buffer& from, - const rect* rc=0, - int x_to=0, + void copy_from(const rendering_buffer& from, + const rect* rc=0, + int x_to=0, int y_to=0) { first_clip_box(); @@ -365,10 +365,10 @@ namespace agg } while(next_clip_box()); } - + private: renderer_mclip(const renderer_mclip<PixelFormat>&); - const renderer_mclip<PixelFormat>& + const renderer_mclip<PixelFormat>& operator = (const renderer_mclip<PixelFormat>&); base_ren_type m_ren; |