2006-01-31 23:09:52 +00:00
|
|
|
#ifndef AGG_CONFIG_INCLUDED
|
|
|
|
#define AGG_CONFIG_INCLUDED
|
|
|
|
|
2006-11-09 23:44:34 +00:00
|
|
|
// This file can be used to redefine certain data types.
|
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
// 1. Default basic types such as:
|
2006-01-31 23:09:52 +00:00
|
|
|
//
|
|
|
|
// AGG_INT8
|
|
|
|
// AGG_INT8U
|
|
|
|
// AGG_INT16
|
|
|
|
// AGG_INT16U
|
|
|
|
// AGG_INT32
|
|
|
|
// AGG_INT32U
|
|
|
|
// AGG_INT64
|
|
|
|
// AGG_INT64U
|
|
|
|
//
|
|
|
|
// Just replace this file with new defines if necessary.
|
|
|
|
// For example, if your compiler doesn't have a 64 bit integer type
|
|
|
|
// you can still use AGG if you define the follows:
|
|
|
|
//
|
|
|
|
// #define AGG_INT64 int
|
|
|
|
// #define AGG_INT64U unsigned
|
|
|
|
//
|
|
|
|
// It will result in overflow in 16 bit-per-component image/pattern resampling
|
|
|
|
// but it won't result any crash and the rest of the library will remain
|
|
|
|
// fully functional.
|
|
|
|
|
2006-11-09 23:44:34 +00:00
|
|
|
|
|
|
|
//---------------------------------------
|
|
|
|
// 2. Default rendering_buffer type. Can be:
|
|
|
|
//
|
|
|
|
// Provides faster access for massive pixel operations,
|
|
|
|
// such as blur, image filtering:
|
|
|
|
|
2008-06-29 10:58:29 +00:00
|
|
|
#define AGG_RENDERING_BUFFER row_ptr_cache<int8u>
|
2006-11-09 23:44:34 +00:00
|
|
|
//
|
|
|
|
// Provides cheaper creation and destruction (no mem allocs):
|
2007-09-16 11:23:51 +00:00
|
|
|
// #define AGG_RENDERING_BUFFER row_accessor<int8u>
|
2006-11-09 23:44:34 +00:00
|
|
|
//
|
|
|
|
// You can still use both of them simultaneouslyin your applications
|
|
|
|
// This #define is used only for default rendering_buffer type,
|
|
|
|
// in short hand typedefs like pixfmt_rgba32.
|
|
|
|
|
2006-01-31 23:09:52 +00:00
|
|
|
#endif
|