35#ifndef CRAB_IMAGEMANAGER_H
36#define CRAB_IMAGEMANAGER_H
38#include "crab/image/Image.h"
39#include "crab/TMX/TMXTileSet.h"
41#include "common/hashmap.h"
49#define loadImgKey loadNum
90 void loadMap(
const Common::Path &filename,
const MapID &mapid = MAP_CURRENT);
92 void getTexture(
const ImageKey &
id,
Image &data);
93 Image &getTexture(
const ImageKey &
id);
94 bool validTexture(
const ImageKey &
id);
96 void draw(
const int &x,
const int &y,
const ImageKey &
id,
97 Common::Rect *clip =
nullptr,
const TextureFlipType &flip = FLIP_NONE);
98 void draw(
const int &x,
const int &y,
const ImageKey &
id,
99 Rect *clip,
const TextureFlipType &flip = FLIP_NONE);
105 void notifyDraw(
const int &x,
const int &y) {
106 auto *k = &getTexture(_notify);
107 draw(x - k->w() / 2, y - k->h() / 2, _notify);
Definition: TMXTileSet.h:86
Definition: ImageManager.h:63
Definition: Rectangle.h:42