source-engine-2018-hl2_src/common/pngloader.h

17 lines
548 B
C
Raw Normal View History

2020-04-23 00:56:21 +08:00
//========= 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 );