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

freetype_test.cpp File Reference

#include <stdio.h>
#include "agg_basics.h"
#include "agg_rendering_buffer.h"
#include "agg_scanline_u.h"
#include "agg_scanline_bin.h"
#include "agg_renderer_scanline.h"
#include "agg_renderer_primitives.h"
#include "agg_rasterizer_scanline_aa.h"
#include "agg_conv_curve.h"
#include "agg_conv_contour.h"
#include "agg_pixfmt_rgb.h"
#include "agg_font_freetype.h"
#include "platform/agg_platform_support.h"
#include "ctrl/agg_slider_ctrl.h"
#include "ctrl/agg_cbox_ctrl.h"
#include "ctrl/agg_rbox_ctrl.h"

Go to the source code of this file.

Classes

class  the_application

Defines

#define pix_format   agg::pix_format_bgr24

Typedefs

typedef agg::pixfmt_bgr24 pixfmt_type

Enumerations

enum  flip_y_e { flip_y = true }

Functions

template<class VS>
void dump_path (VS &path)
int agg_main (int argc, char *argv[])

Variables

bool font_flip_y = !flip_y
static char text []


Define Documentation

#define pix_format   agg::pix_format_bgr24
 

Definition at line 24 of file freetype_test.cpp.


Typedef Documentation

typedef agg::pixfmt_bgr24 pixfmt_type
 

Definition at line 25 of file freetype_test.cpp.


Enumeration Type Documentation

enum flip_y_e
 

Enumerator:
flip_y 

Definition at line 20 of file freetype_test.cpp.

00020 { flip_y = true };


Function Documentation

int agg_main int  argc,
char *  argv[]
 

Definition at line 472 of file freetype_test.cpp.

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

00473 {
00474     the_application app(pix_format, flip_y);
00475     app.caption("AGG Example. Rendering Fonts with FreeType");
00476 
00477     if(app.init(640, 520, agg::window_resize))
00478     {
00479         return app.run();
00480     }
00481     return 1;
00482 }

void dump_path VS &  path  ) 
 

Definition at line 146 of file freetype_test.cpp.

References agg::is_stop().

00147 {
00148     FILE* fd = fopen("dump_path", "a");
00149     fprintf(fd, "-------\n");
00150     path.rewind(0);
00151     unsigned cmd;
00152     double x, y;
00153     while(!agg::is_stop(cmd = path.vertex(&x, &y)))
00154     {
00155         fprintf(fd, "%02X %8.2f %8.2f\n", cmd, x, y);
00156     }
00157     fclose(fd);
00158 }


Variable Documentation

bool font_flip_y = !flip_y
 

Definition at line 21 of file freetype_test.cpp.

Referenced by the_application::draw_text(), and the_application::on_key().

char text[] [static]
 

Definition at line 28 of file freetype_test.cpp.


© sourcejam.com 2005-2008