#include <math.h>#include <stdio.h>#include <time.h>#include "agg_math.h"#include "agg_rendering_buffer.h"#include "agg_conv_transform.h"#include "agg_conv_stroke.h"#include "agg_conv_clip_polyline.h"#include "agg_scanline_p.h"#include "agg_renderer_scanline.h"#include "agg_rasterizer_outline_aa.h"#include "agg_rasterizer_scanline_aa.h"#include "agg_pattern_filters_rgba.h"#include "agg_renderer_outline_aa.h"#include "agg_renderer_outline_image.h"#include "agg_path_storage.h"#include "agg_pixfmt_rgb.h"#include "ctrl/agg_slider_ctrl.h"#include "ctrl/agg_bezier_ctrl.h"#include "platform/agg_platform_support.h"Go to the source code of this file.
Classes | |
| class | pattern_src_brightness_to_alpha_rgba8 |
| class | the_application |
Typedefs | |
| typedef agg::pixfmt_bgr24 | pixfmt |
Enumerations | |
| enum | flip_y_e { flip_y = true } |
Functions | |
| int | agg_main (int argc, char *argv[]) |
Variables | |
| static agg::int8u | brightness_to_alpha [256 *3] |
|
|
Definition at line 25 of file line_patterns_clip.cpp. |
|
|
Definition at line 23 of file line_patterns_clip.cpp. 00023 { flip_y = true };
|
|
||||||||||||
|
Definition at line 327 of file line_patterns_clip.cpp. References platform_support::caption(), flip_y, platform_support::img_ext(), platform_support::init(), platform_support::load_img(), platform_support::message(), agg::pix_format_bgr24, platform_support::run(), and agg::window_resize. 00328 { 00329 the_application app(agg::pix_format_bgr24, flip_y); 00330 app.caption("AGG Example. Clipping Lines with Image Patterns"); 00331 00332 if(!app.load_img(0, "1")) 00333 { 00334 char buf[256]; 00335 sprintf(buf, "There must be file 1%s\n", app.img_ext(), app.img_ext()); 00336 app.message(buf); 00337 return 1; 00338 } 00339 00340 if(app.init(500, 500, agg::window_resize)) 00341 { 00342 return app.run(); 00343 } 00344 00345 return 1; 00346 }
|
|
|
Definition at line 28 of file line_patterns_clip.cpp. |