summaryrefslogtreecommitdiff
path: root/common/pngloader.h
blob: eec9731f6b1479deaa3bc5bd6a4f401205be522c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 );