mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Created separate classes for shared, unchangeable image and image
manipulators owned by UI elements
This commit is contained in:
@@ -11,9 +11,11 @@
|
||||
|
||||
#include "../render/IImageLoader.h"
|
||||
|
||||
class SDLImageConst;
|
||||
|
||||
class SDLImageLoader : public IImageLoader
|
||||
{
|
||||
SDLImage * image;
|
||||
SDLImageConst * image;
|
||||
ui8 * lineStart;
|
||||
ui8 * position;
|
||||
public:
|
||||
@@ -25,7 +27,7 @@ public:
|
||||
//init image with these sizes and palette
|
||||
void init(Point SpriteSize, Point Margins, Point FullSize, SDL_Color *pal);
|
||||
|
||||
SDLImageLoader(SDLImage * Img);
|
||||
SDLImageLoader(SDLImageConst * Img);
|
||||
~SDLImageLoader();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user