diff options
| author | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:31:46 -0800 |
|---|---|---|
| committer | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:46:31 -0800 |
| commit | f56bb35301836e56582a575a75864392a0177875 (patch) | |
| tree | de61ddd39de3e7df52759711950b4c288592f0dc /mp/src/public/bitmap/tgaloader.h | |
| parent | Mark some more files as text. (diff) | |
| download | source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip | |
Fix line endings. WHAMMY.
Diffstat (limited to 'mp/src/public/bitmap/tgaloader.h')
| -rw-r--r-- | mp/src/public/bitmap/tgaloader.h | 90 |
1 files changed, 45 insertions, 45 deletions
diff --git a/mp/src/public/bitmap/tgaloader.h b/mp/src/public/bitmap/tgaloader.h index 9be4a5f6..413eb178 100644 --- a/mp/src/public/bitmap/tgaloader.h +++ b/mp/src/public/bitmap/tgaloader.h @@ -1,45 +1,45 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $Workfile: $
-// $Date: $
-// $NoKeywords: $
-//===========================================================================//
-
-#ifndef TGALOADER_H
-#define TGALOADER_H
-
-#ifdef _WIN32
-#pragma once
-#endif
-
-#include "bitmap/imageformat.h"
-#include "tier1/utlmemory.h"
-
-
-//-----------------------------------------------------------------------------
-// Forward declarations
-//-----------------------------------------------------------------------------
-class CUtlBuffer;
-
-
-namespace TGALoader
-{
-
-int TGAHeaderSize();
-
-bool GetInfo( const char *fileName, int *width, int *height, ImageFormat *imageFormat, float *sourceGamma );
-bool GetInfo( CUtlBuffer &buf, int *width, int *height, ImageFormat *imageFormat, float *sourceGamma );
-
-bool Load( unsigned char *imageData, const char *fileName, int width, int height,
- ImageFormat imageFormat, float targetGamma, bool mipmap );
-bool Load( unsigned char *imageData, CUtlBuffer &buf, int width, int height,
- ImageFormat imageFormat, float targetGamma, bool mipmap );
-
-bool LoadRGBA8888( const char *pFileName, CUtlMemory<unsigned char> &outputData, int &outWidth, int &outHeight );
-bool LoadRGBA8888( CUtlBuffer &buf, CUtlMemory<unsigned char> &outputData, int &outWidth, int &outHeight );
-
-} // end namespace TGALoader
-
-#endif // TGALOADER_H
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $Workfile: $ +// $Date: $ +// $NoKeywords: $ +//===========================================================================// + +#ifndef TGALOADER_H +#define TGALOADER_H + +#ifdef _WIN32 +#pragma once +#endif + +#include "bitmap/imageformat.h" +#include "tier1/utlmemory.h" + + +//----------------------------------------------------------------------------- +// Forward declarations +//----------------------------------------------------------------------------- +class CUtlBuffer; + + +namespace TGALoader +{ + +int TGAHeaderSize(); + +bool GetInfo( const char *fileName, int *width, int *height, ImageFormat *imageFormat, float *sourceGamma ); +bool GetInfo( CUtlBuffer &buf, int *width, int *height, ImageFormat *imageFormat, float *sourceGamma ); + +bool Load( unsigned char *imageData, const char *fileName, int width, int height, + ImageFormat imageFormat, float targetGamma, bool mipmap ); +bool Load( unsigned char *imageData, CUtlBuffer &buf, int width, int height, + ImageFormat imageFormat, float targetGamma, bool mipmap ); + +bool LoadRGBA8888( const char *pFileName, CUtlMemory<unsigned char> &outputData, int &outWidth, int &outHeight ); +bool LoadRGBA8888( CUtlBuffer &buf, CUtlMemory<unsigned char> &outputData, int &outWidth, int &outHeight ); + +} // end namespace TGALoader + +#endif // TGALOADER_H |