1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00
This commit is contained in:
AlexVinS 2016-10-16 04:36:03 +03:00
parent 055c84bc7a
commit 7ca9ab665a
2 changed files with 9 additions and 5 deletions

View File

@ -4,7 +4,6 @@
#include "SDL.h"
#include "SDL_image.h"
#include "CBitmapHandler.h"
#include "CDefHandler.h"
#include "gui/SDL_Extensions.h"
#include "../lib/vcmi_endian.h"
@ -18,6 +17,14 @@
*
*/
namespace BitmapHandler
{
SDL_Surface * loadH3PCX(ui8 * data, size_t size);
SDL_Surface * loadBitmapFromDir(std::string path, std::string fname, bool setKey=true);
}
bool isPCX(const ui8 *header)//check whether file can be PCX according to header
{
int fSize = read_le_u32(header + 0);

View File

@ -14,9 +14,6 @@ struct SDL_Surface;
namespace BitmapHandler
{
SDL_Surface * loadH3PCX(ui8 * data, size_t size);
//Load file from specific LOD
SDL_Surface * loadBitmapFromDir(std::string path, std::string fname, bool setKey=true);
//Load file from any LODs
//Load file from /DATA or /SPRITES
SDL_Surface * loadBitmap(std::string fname, bool setKey=true);
}