csgo-2018-source/public/vtf/convert_ps3.h

19 lines
910 B
C
Raw Normal View History

2021-07-24 21:11:47 -07:00
//////////////////////////////////////////////////////////////////////////
//
// Tool for vtf texture file conversion from PC to Ps3 format
// Allows conversion to be performed on PC prior to running the game
// - Clara McEwen December 2006
//
// Copyright (c) Electronic Arts 2006
//
//////////////////////////////////////////////////////////////////////////
#ifndef CONVERT_PS3_H
#define CONVERT_PS3_H
#include "tier1/UtlBuffer.h"
typedef bool (*CompressFunc_t)( CUtlBuffer &inputBuffer, CUtlBuffer &outputBuffer );
bool ConvertVTFToPS3Format( const char *pDebugName, CUtlBuffer &sourceBuf, CUtlBuffer &targetBuf, CompressFunc_t pCompressFunc);
bool ConvertVTFToPS3Format( const char *pDebugName, CUtlBuffer &sourceBuf, CUtlBuffer &targetBuf, CompressFunc_t pCompressFunc, int textureCap);
bool GetVTFPreloadPs3Data( const char *pDebugName, CUtlBuffer &fileBufferIn, CUtlBuffer &preloadBufferOut );
#endif