Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions tmxlite/include/tmxlite/ImageLayer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ namespace tmx
const Colour& getTransparencyColour() const { return m_transparencyColour; }

/*!
\brief Returns true if the image used by this layer specifically states a
\brief Returns true if the image used by this layer specifically states a
colour to use as transparency
*/
bool hasTransparency() const { return m_hasTransparency; }
Expand All @@ -70,17 +70,22 @@ namespace tmx
const Vector2u& getImageSize() const { return m_imageSize; }

/*!
\brief Returns true if the image drawn by this layer is repeated along
\brief Returns true if the image drawn by this layer is repeated along
the X axis.
*/
bool hasRepeatX() const { return m_hasRepeatX; }

/*!
\brief Returns true if the image drawn by this layer is repeated along
\brief Returns true if the image drawn by this layer is repeated along
the Y axis.
*/
bool hasRepeatY() const { return m_hasRepeatY; }

/*!
\brief Returns true if the image drawn by this layer is locked.
*/
bool locked() const {return m_locked;}

private:
std::string m_workingDir;
std::string m_filePath;
Expand All @@ -89,6 +94,7 @@ namespace tmx
Vector2u m_imageSize;
bool m_hasRepeatX;
bool m_hasRepeatY;
bool m_locked;
};

template <>
Expand Down
1 change: 1 addition & 0 deletions tmxlite/src/ImageLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ void ImageLayer::parse(const pugi::xml_node& node, Map*)

m_hasRepeatX = node.attribute("repeatx").as_bool(false);
m_hasRepeatY = node.attribute("repeaty").as_bool(false);
m_locked = node.attribute("locked").as_bool(false);

for (const auto& child : node.children())
{
Expand Down