agg_config.h 1.2 KB

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