Open Source Tomb Raider Engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425
  1. /*!
  2. * \file include/utils/pcx.h
  3. * \brief PCX image reader
  4. *
  5. * Based on official technical documentation from ZSoft:
  6. * http://bespin.org/~qz/pc-gpe/pcx.txt
  7. *
  8. * \author xythobuz
  9. */
  10. #ifndef _UTILS_PCX_H_
  11. #define _UTILS_PCX_H_
  12. /*!
  13. * \brief Load a PCX image file into a RGBA buffer
  14. * \param filename path of file to read
  15. * \param image place where allocated buffer of size (width * height * 4) will be allocated
  16. * \param width place where image width will be stored
  17. * \param height place where image height will be stored
  18. * \returns 0 on success
  19. */
  20. int pcxLoad(const char *filename, unsigned char **image, unsigned int *width, unsigned int *height);
  21. #endif