summaryrefslogtreecommitdiff
path: root/src/resources/mapreader.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-06 22:35:47 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-06 22:35:47 +0300
commitee41cd5a5a37e4d41df49cd92c61868fe2ce1a51 (patch)
tree4a189407ebb6240fd52b1909f38cb539ac1ef029 /src/resources/mapreader.h
parent89c3f9e88ab1a11959eacc18c6b4c9fb6e4a3dc9 (diff)
downloadManaVerse-ee41cd5a5a37e4d41df49cd92c61868fe2ce1a51.tar.gz
ManaVerse-ee41cd5a5a37e4d41df49cd92c61868fe2ce1a51.tar.bz2
ManaVerse-ee41cd5a5a37e4d41df49cd92c61868fe2ce1a51.tar.xz
ManaVerse-ee41cd5a5a37e4d41df49cd92c61868fe2ce1a51.zip
Load special tilesets in ignored atlas.
Special tilesets for now is collision and levels. After can be other.
Diffstat (limited to 'src/resources/mapreader.h')
-rw-r--r--src/resources/mapreader.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/resources/mapreader.h b/src/resources/mapreader.h
index 37b511d03..48a9edd0c 100644
--- a/src/resources/mapreader.h
+++ b/src/resources/mapreader.h
@@ -30,6 +30,7 @@
class Map;
class MapHeights;
class Properties;
+class Resource;
class Tileset;
/**
@@ -62,6 +63,11 @@ class MapReader final
static void readLayer(const XmlNodePtr node,
Map *const map) A_NONNULL(2);
+#ifdef USE_OPENGL
+ static void loadEmptyAtlas();
+ static void unloadEmptyAtlas();
+#endif // USE_OPENGL
+
private:
/**
* Reads the properties element.
@@ -105,6 +111,10 @@ class MapReader final
static void loadLayers(const std::string &path);
static void unloadTempLayers();
+
+#ifdef USE_OPENGL
+ static Resource *mEmptyAtlas;
+#endif // USE_OPENGL
};
#endif // RESOURCES_MAPREADER_H