summaryrefslogtreecommitdiff
path: root/common/imageloadwrapper.h
blob: 747c060dad3ea3fd4c03c6aca818c41dc4654d33 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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