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.

15 lines
607 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: tga functions
  4. //
  5. //=============================================================================
  6. #include "tier0/platform.h"
  7. // parses out a tga file into an RGBA memory buffer
  8. bool LoadTGA( int32 iBytes, char *pData, byte **rawImage, int * rawImageBytes, int * width, int *height );
  9. // puts a simple raw 32bpp tga onto disk
  10. void WriteTGA( const char *pchFileName, void *rgba, int wide, int tall );
  11. // returns the image size of a tga
  12. bool GetTGADimensions( int32 iBytes, char *pData, int * width, int *height );