1 /* 2 * Copyright 2005-2006, 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_outline_aa.h> 17 #include <agg_renderer_primitives.h> 18 #include <agg_renderer_scanline.h> 19 #include <agg_scanline_bin.h> 20 #include <agg_scanline_p.h> 21 #include <agg_scanline_u.h> 22 #include <agg_rendering_buffer.h> 23 24 #include "agg_renderer_region.h" 25 26 #include "PixelFormat.h" 27 28 #define ALIASED_DRAWING 0 29 30 typedef PixelFormat pixfmt; 31 typedef agg::renderer_region<pixfmt> renderer_base; 32 33 #if ALIASED_DRAWING 34 typedef agg::renderer_primitives<renderer_base> outline_renderer_type; 35 typedef agg::rasterizer_outline<outline_renderer_type> outline_rasterizer_type; 36 37 typedef agg::scanline_bin scanline_unpacked_type; 38 typedef agg::scanline_bin scanline_packed_type; 39 typedef agg::renderer_scanline_bin_solid<renderer_base> renderer_type; 40 #else 41 typedef agg::renderer_outline_aa<renderer_base> outline_renderer_type; 42 typedef agg::rasterizer_outline_aa<outline_renderer_type> outline_rasterizer_type; 43 44 typedef agg::scanline_u8 scanline_unpacked_type; 45 typedef agg::scanline_p8 scanline_packed_type; 46 typedef agg::renderer_scanline_aa_solid<renderer_base> renderer_type; 47 #endif 48 49 typedef agg::renderer_scanline_bin_solid<renderer_base> renderer_bin_type; 50 51 typedef agg::rasterizer_scanline_aa<> rasterizer_type; 52 53 54 #endif // DEFINES_H 55 56 57