/* * Copyright 2005-2006, Stephan Aßmus . * Copyright 2008, Andrej Spielmann . * All rights reserved. Distributed under the terms of the MIT License. * * global definitions for the Painter frame work, mainly types for the * AGG pipelines * */ #ifndef DEFINES_H #define DEFINES_H #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "agg_clipped_alpha_mask.h" #include "agg_rasterizer_scanline_aa_subpix.h" #include "agg_renderer_region.h" #include "agg_renderer_scanline_subpix.h" #include "agg_scanline_p_subpix.h" #include "agg_scanline_p_subpix_avrg_filtering.h" #include "agg_scanline_u_subpix.h" #include "agg_scanline_u_subpix_avrg_filtering.h" #include "GlobalSubpixelSettings.h" #include "drawing_modes/PixelFormat.h" #define ALIASED_DRAWING 0 typedef PixelFormat pixfmt; typedef agg::renderer_region renderer_base; #if ALIASED_DRAWING typedef agg::renderer_primitives outline_renderer_type; typedef agg::rasterizer_outline outline_rasterizer_type; typedef agg::scanline_bin scanline_unpacked_type; typedef agg::scanline_bin scanline_packed_type; typedef agg::renderer_scanline_bin_solid renderer_type; #else typedef agg::renderer_outline_aa outline_renderer_type; typedef agg::rasterizer_outline_aa outline_rasterizer_type; typedef agg::scanline_u8 scanline_unpacked_type; typedef agg::scanline_p8 scanline_packed_type; #ifdef AVERAGE_BASED_SUBPIXEL_FILTERING typedef agg::scanline_p8_subpix_avrg_filtering scanline_packed_subpix_type; typedef agg::scanline_u8_subpix_avrg_filtering scanline_unpacked_subpix_type; #else typedef agg::scanline_p8_subpix scanline_packed_subpix_type; typedef agg::scanline_u8_subpix scanline_unpacked_subpix_type; #endif typedef agg::scanline_u8_am scanline_unpacked_masked_type; typedef agg::renderer_scanline_aa_solid renderer_type; #endif // !ALIASED_DRAWING typedef agg::renderer_scanline_bin_solid renderer_bin_type; typedef agg::renderer_scanline_subpix_solid renderer_subpix_type; typedef agg::rasterizer_scanline_aa<> rasterizer_type; typedef agg::rasterizer_scanline_aa_subpix<> rasterizer_subpix_type; #endif // DEFINES_H