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

gradients.cpp File Reference

#include <stdio.h>
#include <stdlib.h>
#include "agg_rendering_buffer.h"
#include "agg_rasterizer_scanline_aa.h"
#include "agg_scanline_u.h"
#include "agg_scanline_p.h"
#include "agg_conv_transform.h"
#include "agg_color_rgba.h"
#include "agg_color_gray.h"
#include "agg_span_allocator.h"
#include "agg_span_gradient.h"
#include "agg_span_interpolator_linear.h"
#include "agg_renderer_scanline.h"
#include "ctrl/agg_rbox_ctrl.h"
#include "ctrl/agg_spline_ctrl.h"
#include "ctrl/agg_gamma_ctrl.h"
#include "platform/agg_platform_support.h"
#include "pixel_formats.h"

Go to the source code of this file.

Classes

class  gradient_polymorphic_wrapper_base
class  gradient_polymorphic_wrapper
struct  color_function_profile
class  the_application

Defines

#define AGG_BGR24

Enumerations

enum  flip_y_e { flip_y = true }

Functions

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

Variables

const double center_x = 350
const double center_y = 280


Define Documentation

#define AGG_BGR24
 

Definition at line 21 of file gradients.cpp.


Enumeration Type Documentation

enum flip_y_e
 

Enumerator:
flip_y 

Definition at line 31 of file gradients.cpp.

00031 { flip_y = true };


Function Documentation

int agg_main int  argc,
char *  argv[]
 

Definition at line 511 of file gradients.cpp.

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

00512 {
00513     //#ifdef _WIN32
00514     //    FILE* fd = fopen("stdout.txt", "w"); fclose(fd);
00515     //#endif
00516     //AGG_WATCHDOGGY(wd1, false);
00517 
00518     the_application app(pix_format, flip_y);
00519     app.caption("AGG gradients with Mach bands compensation");
00520 
00521     if(app.init(512, 400, agg::window_resize | agg::window_hw_buffer))
00522     {
00523         return app.run();
00524     }
00525     return 1;
00526 }


Variable Documentation

const double center_x = 350
 

Definition at line 33 of file gradients.cpp.

Referenced by the_application::on_draw().

const double center_y = 280
 

Definition at line 34 of file gradients.cpp.

Referenced by the_application::on_draw().


© sourcejam.com 2005-2008