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.

123456789101112131415161718192021222324
  1. /*!
  2. * \file include/utils/pixel.h
  3. * \brief Pixel buffer utilities
  4. *
  5. * \author xythobuz
  6. */
  7. #ifndef _UTILS_PIXEL_H_
  8. #define _UTILS_PIXEL_H_
  9. unsigned char* generateColorTexture(glm::vec4 rgba, unsigned int width,
  10. unsigned int height, unsigned int bpp);
  11. void argb2rgba32(unsigned char* image, unsigned int w, unsigned int h);
  12. // Returns newly allocated buffer
  13. unsigned char* argb16to32(unsigned char* image, unsigned int w, unsigned int h);
  14. unsigned char* grayscale2rgba(unsigned char* image, unsigned int w, unsigned int h);
  15. unsigned char* scaleBuffer(unsigned char* image, unsigned int* w, unsigned int* h,
  16. unsigned int bpp);
  17. #endif