2011-12-14 00:23:17 +03:00
|
|
|
#pragma once
|
|
|
|
|
2009-04-16 14:14:13 +03:00
|
|
|
|
|
|
|
|
|
|
|
struct SDL_Surface;
|
|
|
|
|
2009-04-15 17:03:31 +03:00
|
|
|
/*
|
|
|
|
* CBitmapHandler.h, part of VCMI engine
|
|
|
|
*
|
|
|
|
* Authors: listed in file AUTHORS in main folder
|
|
|
|
*
|
|
|
|
* License: GNU General Public License v2.0 or later
|
|
|
|
* Full text of license available in license.txt file, in main folder
|
|
|
|
*
|
2009-04-16 14:14:13 +03:00
|
|
|
*/
|
|
|
|
|
2011-02-22 13:52:36 +02:00
|
|
|
/// Struct which stands for a simple rgba palette
|
2009-04-16 14:14:13 +03:00
|
|
|
struct BMPPalette
|
|
|
|
{
|
2011-12-14 00:23:17 +03:00
|
|
|
ui8 R,G,B,F;
|
2009-04-16 14:14:13 +03:00
|
|
|
};
|
2009-09-27 14:37:15 +03:00
|
|
|
|
2009-04-16 14:14:13 +03:00
|
|
|
namespace BitmapHandler
|
|
|
|
{
|
2012-08-01 15:02:54 +03:00
|
|
|
SDL_Surface * loadH3PCX(ui8 * data, size_t size);
|
2011-07-18 18:21:16 +03:00
|
|
|
//Load file from specific LOD
|
2012-08-01 15:02:54 +03:00
|
|
|
SDL_Surface * loadBitmapFromDir(std::string path, std::string fname, bool setKey=true);
|
2011-07-18 18:21:16 +03:00
|
|
|
//Load file from any LODs
|
2009-08-17 11:50:31 +03:00
|
|
|
SDL_Surface * loadBitmap(std::string fname, bool setKey=true);
|
2012-09-15 22:16:16 +03:00
|
|
|
}
|