1 /* 2 * Copyright 2005, Stephan Aßmus <superstippi@gmx.de>. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * global definitions for the Painter frame work, mainly types for the 6 * AGG pipelines 7 * 8 */ 9 10 #ifndef DEFINES_H 11 #define DEFINES_H 12 13 #include <agg_rasterizer_outline.h> 14 #include <agg_rasterizer_outline_aa.h> 15 #include <agg_rasterizer_scanline_aa.h> 16 //#include <agg_renderer_mclip.h> 17 #include <agg_renderer_outline_aa.h> 18 #include <agg_renderer_primitives.h> 19 #include <agg_renderer_scanline.h> 20 #include <agg_scanline_bin.h> 21 //#include <agg_scanline_p.h> 22 #include <agg_scanline_u.h> 23 #include <agg_rendering_buffer.h> 24 25 #include "agg_renderer_region.h" 26 27 //#include "_for_reference_.h" 28 #include "forwarding_pixfmt.h" 29 30 #define ALIASED_DRAWING 0 31 32 // typedef agg::pixfmt_bgra32 pixfmt; 33 typedef forwarding_pixel_format<agg::order_bgra32> pixfmt; 34 typedef agg::renderer_region<pixfmt> renderer_base; 35 36 #if ALIASED_DRAWING 37 typedef agg::renderer_primitives<renderer_base> outline_renderer_type; 38 typedef agg::rasterizer_outline<outline_renderer_type> outline_rasterizer_type; 39 40 typedef agg::scanline_bin scanline_type; 41 typedef agg::rasterizer_scanline_aa<> rasterizer_type; 42 typedef agg::renderer_scanline_bin_solid<renderer_base> renderer_type; 43 #else 44 typedef agg::renderer_outline_aa<renderer_base> outline_renderer_type; 45 typedef agg::rasterizer_outline_aa<outline_renderer_type> outline_rasterizer_type; 46 47 typedef agg::scanline_u8 scanline_type; 48 typedef agg::rasterizer_scanline_aa<> rasterizer_type; 49 typedef agg::renderer_scanline_aa_solid<renderer_base> renderer_type; 50 #endif 51 52 typedef agg::renderer_scanline_aa_solid<renderer_base> font_renderer_solid_type; 53 typedef agg::renderer_scanline_bin_solid<renderer_base> font_renderer_bin_type; 54 55 56 #endif // DEFINES_H 57 58 59