Open Source Tomb Raider Engine
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

pcx.h 671B

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