summaryrefslogtreecommitdiff
path: root/common/imageloadwrapper.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /common/imageloadwrapper.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'common/imageloadwrapper.h')
-rw-r--r--common/imageloadwrapper.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/common/imageloadwrapper.h b/common/imageloadwrapper.h
new file mode 100644
index 0000000..747c060
--- /dev/null
+++ b/common/imageloadwrapper.h
@@ -0,0 +1,20 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: image functions
+//
+//=============================================================================
+
+#ifndef IMAGELOADWRAPPER_H
+#define IMAGELOADWRAPPER_H
+
+#include "jpegloader.h"
+#include "tgaloader.h"
+#include "pngloader.h"
+
+// Convert any supported image type (jpeg, tga) to RGB
+bool ConvertImageToRGB( const byte *pubImageData, int cubImageData, CUtlBuffer &bufOutput, int &width, int &height );
+
+// Convert any supported image type (jpeg, tga) to RGBA
+bool ConvertImageToRGBA( const byte *pubImageData, int cubImageData, CUtlBuffer &bufOutput, int &width, int &height );
+
+#endif // IMAGELOADWRAPPER_H \ No newline at end of file