svgconvdata.h 700 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef SVGCONVDATA_H
  2. #define SVGCONVDATA_H
  3. // types and structures used by svgconv generated output
  4. typedef int HGint32;
  5. typedef unsigned int HGuint32;
  6. typedef short HGint16;
  7. typedef unsigned short HGuint16;
  8. typedef signed char HGint8;
  9. typedef unsigned char HGuint8;
  10. typedef int HGbool;
  11. #define HG_FALSE (0 == 1)
  12. #define HG_TRUE (1 == 1)
  13. #define OVG_RGB(r,g,b) ((b<<8)|(g<<16)|(r<<24)|0xff)
  14. typedef struct
  15. {
  16. const float* floats;
  17. const HGuint8* cmds;
  18. HGint32 nCommands;
  19. HGint32 nFloats;
  20. HGuint32 color;
  21. float transform[9];
  22. } PathData;
  23. #define NUM_PATHS (sizeof(_paths)/sizeof(PathData))
  24. #endif // SVGCONVDATA_H