summaryrefslogtreecommitdiff
path: root/common/pngloader.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/pngloader.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'common/pngloader.h')
-rw-r--r--common/pngloader.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/common/pngloader.h b/common/pngloader.h
new file mode 100644
index 0000000..eec9731
--- /dev/null
+++ b/common/pngloader.h
@@ -0,0 +1,16 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: png functions
+//
+//=============================================================================
+
+#include "tier0/platform.h"
+#include "tier1/utlbuffer.h"
+
+// Get dimensions out of PNG header
+bool GetPNGDimensions( const byte *pubPNGData, int cubPNGData, uint32 &width, uint32 &height );
+
+// parses out a png file into an RGBA memory buffer
+bool ConvertPNGToRGBA( const byte *pubPNGData, int cubPNGData, CUtlBuffer &bufOutput, int &width, int &height );
+
+