From 3ecf5bbc1c81908bfd3355999a37e8e96e15b8b5 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Mon, 22 Feb 2021 22:46:44 -0500 Subject: Generalized upper/lower layer map rendering Map layers can have a flag on them that specifies that they should be rendered as part of the upper set (rendered above the normal sprite layer but below the above sprite layer). Also added map connections between hallucination_interior and hallucination_cliff. And named the layers in the map files bc why not. --- src/renderer.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/renderer.h') diff --git a/src/renderer.h b/src/renderer.h index 489a7ec..4c6ccc4 100644 --- a/src/renderer.h +++ b/src/renderer.h @@ -138,13 +138,13 @@ private: void renderSprite(const Sprite& sprite); // Map rendering - texture_ptr renderMapLayer(const Map& map, int layer); + texture_ptr renderMapLayer(const Map& map, bool above); std::string cachedMapName_; std::string cachedTilesetName_; texture_ptr tilesetTex_; - texture_ptr renLay0_; - texture_ptr renLay1_; + texture_ptr renLowerLayer_; + texture_ptr renUpperLayer_; texture_ptr mapSwapTex_; // Text rendering -- cgit 1.4.1