#include <math.h>#include <stdio.h>#include <time.h>#include "agg_rendering_buffer.h"#include "agg_trans_viewport.h"#include "agg_path_storage.h"#include "agg_conv_transform.h"#include "agg_conv_curve.h"#include "agg_conv_stroke.h"#include "agg_gsv_text.h"#include "agg_scanline_u.h"#include "agg_scanline_bin.h"#include "agg_renderer_scanline.h"#include "agg_rasterizer_outline_aa.h"#include "agg_rasterizer_scanline_aa.h"#include "agg_span_allocator.h"#include "agg_gamma_lut.h"#include "agg_pixfmt_rgba.h"#include "agg_bounding_rect.h"#include "platform/agg_platform_support.h"Go to the source code of this file.
Namespaces | |
| namespace | agg |
Classes | |
| struct | path_style |
| class | compound_shape |
| class | the_application |
Typedefs | |
| typedef agg::pixfmt_bgra32_pre | pixfmt |
Enumerations | |
| enum | { flip_y = false } |
Functions | |
| int | agg_main (int argc, char *argv[]) |
|
|
Definition at line 25 of file flash_rasterizer2.cpp. |
|
|
Definition at line 23 of file flash_rasterizer2.cpp. 00023 { flip_y = false };
|
|
||||||||||||
|
Definition at line 509 of file flash_rasterizer2.cpp. References platform_support::caption(), flip_y, platform_support::init(), platform_support::message(), the_application::open(), agg::pix_format_bgra32, the_application::read_next(), platform_support::run(), and agg::window_resize. 00510 { 00511 the_application app(agg::pix_format_bgra32, flip_y); 00512 app.caption("AGG Example - Flash Rasterizer"); 00513 const char* fname = "shapes.txt"; 00514 if(argc > 1) fname = argv[1]; 00515 if(!app.open(fname)) 00516 { 00517 char buf[256]; 00518 if(strcmp(fname, "shapes.txt") == 0) 00519 { 00520 sprintf(buf, "File not found: %s. Download http://www.antigrain.com/%s\n" 00521 "or copy it from another directory if available.", 00522 fname, fname); 00523 } 00524 else 00525 { 00526 sprintf(buf, "File not found: %s", fname); 00527 } 00528 app.message(buf); 00529 return 1; 00530 } 00531 00532 if(app.init(655, 520, agg::window_resize)) 00533 { 00534 app.read_next(); 00535 return app.run(); 00536 } 00537 return 1; 00538 }
|