Team Fortress 2 Source Code as on 22/4/2020
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.

19 lines
697 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: image functions
  4. //
  5. //=============================================================================
  6. #ifndef IMAGELOADWRAPPER_H
  7. #define IMAGELOADWRAPPER_H
  8. #include "jpegloader.h"
  9. #include "tgaloader.h"
  10. #include "pngloader.h"
  11. // Convert any supported image type (jpeg, tga) to RGB
  12. bool ConvertImageToRGB( const byte *pubImageData, int cubImageData, CUtlBuffer &bufOutput, int &width, int &height );
  13. // Convert any supported image type (jpeg, tga) to RGBA
  14. bool ConvertImageToRGBA( const byte *pubImageData, int cubImageData, CUtlBuffer &bufOutput, int &width, int &height );
  15. #endif // IMAGELOADWRAPPER_H