Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | Related Pages | Examples

agg Namespace Reference


Detailed Description

Anti-grain graphics library.


Typedefs

typedef signed char int8
typedef unsigned char int8u
typedef signed short int16
typedef unsigned short int16u
typedef signed int int32
typedef unsigned int int32u
typedef unsigned char cover_type
typedef rect_base< int > rect
typedef rect_base< double > rect_d
typedef pixfmt_gray8_base< 1, 0 > pixfmt_gray8
typedef pixfmt_gray8_base< 3, 0 > pixfmt_gray8_rgb24r
typedef pixfmt_gray8_base< 3, 1 > pixfmt_gray8_rgb24g
typedef pixfmt_gray8_base< 3, 2 > pixfmt_gray8_rgb24b
typedef pixfmt_gray8_base< 3, 2 > pixfmt_gray8_bgr24r
typedef pixfmt_gray8_base< 3, 1 > pixfmt_gray8_bgr24g
typedef pixfmt_gray8_base< 3, 0 > pixfmt_gray8_bgr24b
typedef pixfmt_gray8_base< 4, 0 > pixfmt_gray8_rgba32r
typedef pixfmt_gray8_base< 4, 1 > pixfmt_gray8_rgba32g
typedef pixfmt_gray8_base< 4, 2 > pixfmt_gray8_rgba32b
typedef pixfmt_gray8_base< 4, 3 > pixfmt_gray8_rgba32a
typedef pixfmt_gray8_base< 4, 1 > pixfmt_gray8_argb32r
typedef pixfmt_gray8_base< 4, 2 > pixfmt_gray8_argb32g
typedef pixfmt_gray8_base< 4, 3 > pixfmt_gray8_argb32b
typedef pixfmt_gray8_base< 4, 0 > pixfmt_gray8_argb32a
typedef pixfmt_gray8_base< 4, 2 > pixfmt_gray8_bgra32r
typedef pixfmt_gray8_base< 4, 1 > pixfmt_gray8_bgra32g
typedef pixfmt_gray8_base< 4, 0 > pixfmt_gray8_bgra32b
typedef pixfmt_gray8_base< 4, 3 > pixfmt_gray8_bgra32a
typedef pixfmt_gray8_base< 4, 3 > pixfmt_gray8_abgr32r
typedef pixfmt_gray8_base< 4, 2 > pixfmt_gray8_abgr32g
typedef pixfmt_gray8_base< 4, 1 > pixfmt_gray8_abgr32b
typedef pixfmt_gray8_base< 4, 0 > pixfmt_gray8_abgr32a
typedef pixel_formats_rgba32<
order_rgba32 > 
pixfmt_rgba32
typedef pixel_formats_rgba32<
order_argb32 > 
pixfmt_argb32
typedef pixel_formats_rgba32<
order_abgr32 > 
pixfmt_abgr32
typedef pixel_formats_rgba32<
order_bgra32 > 
pixfmt_bgra32
typedef row_ptr_cache< int8u > rendering_buffer
typedef scanline_u< int8u > scanline_u8
typedef scanline_u< int16u > scanline_u16
typedef scanline_u< int32u > scanline_u32

Enumerations

enum  { cover_shift = 8, cover_size = 1 << cover_shift, cover_mask = cover_size - 1, cover_none = 0, cover_full = cover_mask }
enum  path_commands_e {
  path_cmd_stop = 0, path_cmd_move_to = 1, path_cmd_line_to = 2, path_cmd_curve3 = 3, path_cmd_curve4 = 4, path_cmd_end_poly = 6,
  path_cmd_mask = 0x0F
}
enum  path_flags_e { path_flags_none = 0, path_flags_ccw = 0x10, path_flags_cw = 0x20, path_flags_close = 0x40, path_flags_mask = 0xF0 }
enum  { qsort_threshold = 9 }
enum  { poly_base_shift = 8, poly_base_size = 1 << poly_base_shift, poly_base_mask = poly_base_size - 1 }
enum  filling_rule_e { fill_non_zero, fill_even_odd }
enum  { gradient_subpixel_shift = 4, gradient_subpixel_size = 1 << gradient_subpixel_shift, gradient_subpixel_mask = gradient_subpixel_size - 1 }

Functions

double deg2rad (double deg)
double rad2deg (double rad)
template<class Rect>
Rect intersect_rectangles (const Rect &r1, const Rect &r2)
template<class Rect>
Rect unite_rectangles (const Rect &r1, const Rect &r2)
bool is_vertex (unsigned c)
bool is_stop (unsigned c)
bool is_move_to (unsigned c)
bool is_line_to (unsigned c)
bool is_curve (unsigned c)
bool is_curve3 (unsigned c)
bool is_curve4 (unsigned c)
bool is_end_poly (unsigned c)
bool is_close (unsigned c)
bool is_next_poly (unsigned c)
bool is_cw (unsigned c)
bool is_ccw (unsigned c)
bool is_oriented (unsigned c)
bool is_closed (unsigned c)
unsigned get_close_flag (unsigned c)
unsigned clear_orientation (unsigned c)
unsigned get_orientation (unsigned c)
unsigned set_orientation (unsigned c, unsigned o)
template<class T>
unsigned clipping_flags (T x, T y, const rect_base< T > &clip_box)
template<class T>
unsigned clip_liang_barsky (T x1, T y1, T x2, T y2, const rect_base< T > &clip_box, T *x, T *y)
rgba rgba_pre (double r, double g, double b, double a=1.0)
rgba rgba_pre (const rgba &c)
rgba rgba_pre (const rgba &c, double a)
rgba8 rgba8_pre (unsigned r, unsigned g, unsigned b, unsigned a=255)
rgba8 rgba8_pre (const rgba &c)
rgba8 rgba8_pre (const rgba8 &c, unsigned a)
double calc_point_location (double x1, double y1, double x2, double y2, double x, double y)
bool point_in_triangle (double x1, double y1, double x2, double y2, double x3, double y3, double x, double y)
double calc_distance (double x1, double y1, double x2, double y2)
double calc_point_line_distance (double x1, double y1, double x2, double y2, double x, double y)
bool calc_intersection (double ax, double ay, double bx, double by, double cx, double cy, double dx, double dy, double *x, double *y)
void calc_orthogonal (double thickness, double x1, double y1, double x2, double y2, double *x, double *y)
void dilate_triangle (double x1, double y1, double x2, double y2, double x3, double y3, double *x, double *y, double d)
template<class Storage>
double calc_polygon_area (const Storage &st)
unsigned fast_sqrt (unsigned val)
int16u rgb555 (unsigned r, unsigned g, unsigned b)
int16u rgb565 (unsigned r, unsigned g, unsigned b)
template<class T>
static void swap_cells (T *a, T *b)
template<class T>
static bool less_than (T *a, T *b)
int poly_coord (double c)
template<class Rasterizer, class Scanline, class Renderer>
void render_scanlines (Rasterizer &ras, Scanline &sl, Renderer &ren)
template<class Rasterizer, class Scanline, class Renderer, class VertexSource, class ColorStorage, class PathId>
void render_all_paths (Rasterizer &ras, Scanline &sl, Renderer &r, VertexSource &vs, const ColorStorage &as, const PathId &id, unsigned num_paths)
bool is_equal_eps (double v1, double v2, double epsilon)

Variables

const double pi = 3.14159265358979323846
const double intersection_epsilon = 1.0e-8
int16u g_sqrt_table [1024]
int8 g_elder_bit_table [256]
const double affine_epsilon = 1e-14


Variable Documentation

int8 agg::g_elder_bit_table
 

Initial value:

 
    {
        0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
        5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,
        6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
        6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,
        7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
        7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
        7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,
        7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7
    }


Generated on Wed Feb 9 11:31:37 2005 for OpenGUI by  doxygen 1.4.0