Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

flash_rasterizer.cpp File Reference

#include <math.h>
#include <stdio.h>
#include <time.h>
#include <stdlib.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_scanline_aa.h"
#include "agg_rasterizer_compound_aa.h"
#include "agg_span_allocator.h"
#include "agg_gamma_lut.h"
#include "agg_pixfmt_rgba.h"
#include "agg_bounding_rect.h"
#include "agg_color_gray.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  test_styles
class  the_application

Typedefs

typedef agg::pixfmt_bgra32_pre pixfmt

Enumerations

enum  { flip_y = false }

Functions

int agg_main (int argc, char *argv[])


Typedef Documentation

typedef agg::pixfmt_bgra32_pre pixfmt
 

Definition at line 28 of file flash_rasterizer.cpp.


Enumeration Type Documentation

anonymous enum
 

Enumerator:
flip_y 

Definition at line 26 of file flash_rasterizer.cpp.

00026 { flip_y = false };


Function Documentation

int agg_main int  argc,
char *  argv[]
 

Definition at line 537 of file flash_rasterizer.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.

00538 {
00539     the_application app(agg::pix_format_bgra32, flip_y);
00540     app.caption("AGG Example - Flash Rasterizer");
00541     const char* fname = "shapes.txt";
00542     if(argc > 1) fname = argv[1];
00543     if(!app.open(fname))
00544     {
00545         char buf[256];
00546         if(strcmp(fname, "shapes.txt") == 0)
00547         {
00548             sprintf(buf, "File not found: %s. Download http://www.antigrain.com/%s\n"
00549                          "or copy it from another directory if available.",
00550                     fname, fname);
00551         }
00552         else
00553         {
00554             sprintf(buf, "File not found: %s", fname);
00555         }
00556         app.message(buf);
00557         return 1;
00558     }
00559 
00560     if(app.init(655, 520, agg::window_resize))
00561     {
00562         app.read_next();
00563         return app.run();
00564     }
00565     return 1;
00566 }


© sourcejam.com 2005-2008