1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Reorganized includes for new layout. New class - IImageLoader

This commit is contained in:
Ivan Savenko
2023-02-01 20:42:06 +02:00
parent 84dfcacafd
commit 108a42e4ba
109 changed files with 487 additions and 1109 deletions

View File

@@ -9,29 +9,10 @@
*/
#pragma once
#include "../../lib/GameConstants.h"
#include "../../lib/vcmi_endian.h"
#ifdef IN
#undef IN
#endif
#ifdef OUT
#undef OUT
#endif
VCMI_LIB_NAMESPACE_BEGIN
class JsonNode;
class Rect;
class Point;
VCMI_LIB_NAMESPACE_END
struct SDL_Surface;
class IImageLoader;
struct SDL_Color;
class CDefFile;
class ColorFilter;
/// Class for def loading
/// After loading will store general info (palette and frame offsets) and pointer to file itself
@@ -62,8 +43,7 @@ public:
~CDefFile();
//load frame as SDL_Surface
template<class ImageLoader>
void loadFrame(size_t frame, size_t group, ImageLoader &loader) const;
void loadFrame(size_t frame, size_t group, IImageLoader &loader) const;
const std::map<size_t, size_t> getEntries() const;
};