Anti-Grain Geometry Tutorial
agg_config.h
1 #ifndef AGG_CONFIG_INCLUDED
2 #define AGG_CONFIG_INCLUDED
3 
4 // This file can be used to redefine certain data types.
5 
6 //---------------------------------------
7 // 1. Default basic types such as:
8 //
9 // AGG_INT8
10 // AGG_INT8U
11 // AGG_INT16
12 // AGG_INT16U
13 // AGG_INT32
14 // AGG_INT32U
15 // AGG_INT64
16 // AGG_INT64U
17 //
18 // Just replace this file with new defines if necessary.
19 // For example, if your compiler doesn't have a 64 bit integer type
20 // you can still use AGG if you define the follows:
21 //
22 // #define AGG_INT64 int
23 // #define AGG_INT64U unsigned
24 //
25 // It will result in overflow in 16 bit-per-component image/pattern resampling
26 // but it won't result any crash and the rest of the library will remain
27 // fully functional.
28 
29 
30 //---------------------------------------
31 // 2. Default rendering_buffer type. Can be:
32 //
33 // Provides faster access for massive pixel operations,
34 // such as blur, image filtering:
35 // #define AGG_RENDERING_BUFFER row_ptr_cache<int8u>
36 //
37 // Provides cheaper creation and destruction (no mem allocs):
38 // #define AGG_RENDERING_BUFFER row_accessor<int8u>
39 //
40 // You can still use both of them simultaneously in your applications
41 // This #define is used only for default rendering_buffer type,
42 // in short hand typedefs like pixfmt_rgba32.
43 
44 #endif