diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /common/tgaloader.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'common/tgaloader.h')
| -rw-r--r-- | common/tgaloader.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/common/tgaloader.h b/common/tgaloader.h new file mode 100644 index 0000000..798b4e1 --- /dev/null +++ b/common/tgaloader.h @@ -0,0 +1,15 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: tga functions +// +//============================================================================= + +#include "tier0/platform.h" + +// parses out a tga file into an RGBA memory buffer +bool LoadTGA( int32 iBytes, char *pData, byte **rawImage, int * rawImageBytes, int * width, int *height ); + +// puts a simple raw 32bpp tga onto disk +void WriteTGA( const char *pchFileName, void *rgba, int wide, int tall ); +// returns the image size of a tga +bool GetTGADimensions( int32 iBytes, char *pData, int * width, int *height ); |