summaryrefslogtreecommitdiff
path: root/common/pngloader.h
diff options
context:
space:
mode:
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 );
+
+