mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-22 22:13:35 +02:00
146a5e5ef8
- speed of creature-related animation no longer depends on framerate - most of values from cranim.txt are now used correctly - removed BMPPalette struct in favor of SDL_Color - animation group "DEAD" that is used to display dead stacks, by default consists from last frame of "DEATH" group Notes: - animation speed may still need some adjustments - range of config property "battle/animationSpeed" has been changed. This may result in extremely fast animation. To fix - change animation speed via options.
23 lines
578 B
C++
23 lines
578 B
C++
#pragma once
|
|
|
|
/*
|
|
* 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
|
|
*
|
|
*/
|
|
|
|
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
|
|
SDL_Surface * loadBitmap(std::string fname, bool setKey=true);
|
|
}
|