util.h 570 B

12345678910111213141516171819202122232425
  1. #ifndef UTIL_H_
  2. #define UTIL_H_
  3. #ifdef __cplusplus
  4. extern "C"
  5. {
  6. #endif
  7. void initBiomeColours(unsigned char biomeColours[256][3]);
  8. void initBiomeTypeColours(unsigned char biomeColours[256][3]);
  9. int biomesToImage(unsigned char *pixels,
  10. const unsigned char biomeColours[256][3], const int *biomes,
  11. const unsigned int sx, const unsigned int sy,
  12. const unsigned int pixscale, const int flip);
  13. int savePPM(const char* path, const unsigned char *pixels,
  14. const unsigned int sx, const unsigned int sy);
  15. #ifdef __cplusplus
  16. }
  17. #endif
  18. #endif