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

idea.cpp File Reference

#include "agg_basics.h"
#include "agg_rendering_buffer.h"
#include "agg_rasterizer_scanline_aa.h"
#include "agg_scanline_p.h"
#include "agg_renderer_scanline.h"
#include "agg_trans_affine.h"
#include "agg_conv_stroke.h"
#include "agg_conv_transform.h"
#include "ctrl/agg_cbox_ctrl.h"
#include "ctrl/agg_slider_ctrl.h"
#include "platform/agg_platform_support.h"
#include "pixel_formats.h"

Go to the source code of this file.

Classes

struct  path_attributes
struct  trans_roundoff
class  the_application

Defines

#define AGG_BGR24
#define AGG_POLY_SIZE(p)   (sizeof(p) / (sizeof(*p) * 2))

Enumerations

enum  flip_y_e { flip_y = false }

Functions

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

Variables

static double g_poly_bulb []
static double g_poly_beam1 []
static double g_poly_beam2 []
static double g_poly_beam3 []
static double g_poly_beam4 []
static double g_poly_fig1 []
static double g_poly_fig2 []
static double g_poly_fig3 []
static double g_poly_fig4 []
static double g_poly_fig5 []
static double g_poly_fig6 []
static path_attributes g_attr [3]
static agg::path_storage g_path
static unsigned g_npaths = 0
static agg::filling_rule_e g_pflag = agg::fill_non_zero
static agg::rasterizer_scanline_aa g_rasterizer
static agg::scanline_p8 g_scanline
static double g_angle = 0.0


Define Documentation

#define AGG_BGR24
 

Definition at line 13 of file idea.cpp.

#define AGG_POLY_SIZE  )     (sizeof(p) / (sizeof(*p) * 2))
 

Definition at line 140 of file idea.cpp.

Referenced by the_application::the_application().


Enumeration Type Documentation

enum flip_y_e
 

Enumerator:
flip_y 

Definition at line 23 of file idea.cpp.

00023 { flip_y = false };


Function Documentation

int agg_main int  argc,
char *  argv[]
 

Definition at line 350 of file idea.cpp.

References platform_support::caption(), flip_y, platform_support::init(), pix_format, platform_support::run(), and agg::window_resize.

00351 {
00352     the_application app(pix_format, flip_y);
00353     app.caption("AGG Example. Idea");
00354 
00355     if(app.init(250, 280, agg::window_resize))
00356     {
00357         return app.run();
00358     }
00359     return 1;
00360 }


Variable Documentation

double g_angle = 0.0 [static]
 

Definition at line 138 of file idea.cpp.

path_attributes g_attr[3] [static]
 

Definition at line 132 of file idea.cpp.

unsigned g_npaths = 0 [static]
 

Definition at line 134 of file idea.cpp.

agg::path_storage g_path [static]
 

Definition at line 133 of file idea.cpp.

agg::filling_rule_e g_pflag = agg::fill_non_zero [static]
 

Definition at line 135 of file idea.cpp.

Referenced by the_application::on_draw().

double g_poly_beam1[] [static]
 

Initial value:

 
{
    -14,-84,-22,-85,-23,-87,-22,-88,-21,-88
}

Definition at line 56 of file idea.cpp.

Referenced by the_application::the_application().

double g_poly_beam2[] [static]
 

Initial value:

 
{
   -10,-92,   -14,-96,   -14,-98,   -12,-99,   -11,-97
}

Definition at line 61 of file idea.cpp.

Referenced by the_application::the_application().

double g_poly_beam3[] [static]
 

Initial value:

 
{
   -1,-92,     -2,-98,    0,-100,    2,-100,    1,-98
}

Definition at line 66 of file idea.cpp.

Referenced by the_application::the_application().

double g_poly_beam4[] [static]
 

Initial value:

 
{
    5,-89,      11,-94,   13,-93,    13,-92,    12,-91
}

Definition at line 71 of file idea.cpp.

Referenced by the_application::the_application().

double g_poly_bulb[] [static]
 

Initial value:

 
{
    -6,-67,    -6,-71,   -7,-74,    -8,-76,    -10,-79,
    -10,-82,   -9,-84,   -6,-86,    -4,-87,    -2,-86,
    -1,-86,     1,-84,    2,-82,     2,-79,     0,-77,
    -2,-73,    -2,-71,   -2,-69,    -3,-67,    -4,-65
}

Definition at line 48 of file idea.cpp.

Referenced by the_application::the_application().

double g_poly_fig1[] [static]
 

Initial value:

 
{
    1,-48,-3,-54,-7,-58,-12,-58,-17,-55,-20,-52,-21,-47,
    -20,-40,-17,-33,-11,-28,-6,-26,-2,-25,2,-26,4,-28,5,
    -33,5,-39,3,-44,12,-48,12,-50,12,-51,3,-46
}

Definition at line 77 of file idea.cpp.

Referenced by the_application::the_application().

double g_poly_fig2[] [static]
 

Initial value:

 
{
    11,-27,6,-23,4,-22,3,-19,5,
    -16,6,-15,11,-17,19,-23,25,-30,32,-38,32,-41,32,-50,30,-64,32,-72,
    32,-75,31,-77,28,-78,26,-80,28,-87,27,-89,25,-88,24,-79,24,-76,23,
    -75,20,-76,17,-76,17,-74,19,-73,22,-73,24,-71,26,-69,27,-64,28,-55,
    28,-47,28,-40,26,-38,20,-33,14,-30
}

Definition at line 85 of file idea.cpp.

Referenced by the_application::the_application().

double g_poly_fig3[] [static]
 

Initial value:

 
{
    -6,-20,-9,-21,-15,-21,-20,-17,
    -28,-8,-32,-1,-32,1,-30,6,-26,8,-20,10,-16,12,-14,14,-15,16,-18,20,
    -22,20,-25,19,-27,20,-26,22,-23,23,-18,23,-14,22,-11,20,-10,17,-9,14,
    -11,11,-16,9,-22,8,-26,5,-28,2,-27,-2,-23,-8,-19,-11,-12,-14,-6,-15,
    -6,-18
}

Definition at line 95 of file idea.cpp.

Referenced by the_application::the_application().

double g_poly_fig4[] [static]
 

Initial value:

 
{
    11,-6,8,-16,5,-21,-1,-23,-7,
   -22,-10,-17,-9,-10,-8,0,-8,10,-10,18,-11,22,-10,26,-7,28,-3,30,0,31,
    5,31,10,27,14,18,14,11,11,2
}

Definition at line 105 of file idea.cpp.

Referenced by the_application::the_application().

double g_poly_fig5[] [static]
 

Initial value:

 
{
    0,22,-5,21,-8,22,-9,26,-8,49,
    -8,54,-10,64,-10,75,-9,81,-10,84,-16,89,-18,95,-18,97,-13,100,-12,99,
    -12,95,-10,90,-8,87,-6,86,-4,83,-3,82,-5,80,-6,79,-7,74,-6,63,-3,52,
    0,42,1,31
}

Definition at line 113 of file idea.cpp.

Referenced by the_application::the_application().

double g_poly_fig6[] [static]
 

Initial value:

 
{
    12,31,12,24,8,21,3,21,2,24,3,
    30,5,40,8,47,10,56,11,64,11,71,10,76,8,77,8,79,10,81,13,82,17,82,26,
    84,28,87,32,86,33,81,32,80,25,79,17,79,14,79,13,76,14,72,14,64,13,55,
    12,44,12,34
}

Definition at line 122 of file idea.cpp.

Referenced by the_application::the_application().

agg::rasterizer_scanline_aa g_rasterizer [static]
 

Definition at line 136 of file idea.cpp.

agg::scanline_p8 g_scanline [static]
 

Definition at line 137 of file idea.cpp.


© sourcejam.com 2005-2008