28 #ifndef TMXLITE_IMAGELAYER_HPP_ 29 #define TMXLITE_IMAGELAYER_HPP_ 31 #include <tmxlite/Config.hpp> 32 #include <tmxlite/Layer.hpp> 33 #include <tmxlite/Types.hpp> 48 Type
getType()
const override {
return Layer::Type::Image; }
49 void parse(
const pugi::xml_node&)
override;
72 std::string m_workingDir;
73 std::string m_filePath;
74 Colour m_transparencyColour;
75 bool m_hasTransparency;
79 #endif //TMXLITE_IMAGELAYER_HPP_
Contains the red, green, blue and alpha values of a colour in the range 0 - 255.
Definition: Types.hpp:109
Type getType() const override
Returns a Type value representing the concrete type.
Definition: ImageLayer.hpp:48
const Vector2u & getImageSize() const
Returns the size of the image of the image layer in pixels.
Definition: ImageLayer.hpp:69
const Colour & getTransparencyColour() const
Returns the colour used by the image to represent transparent pixels. By default this is (0...
Definition: ImageLayer.hpp:60
Represents a layer of a tmx format tile map. This is an abstract base class from which all layer type...
Definition: Layer.hpp:52
const std::string & getImagePath() const
Returns the path, relative to the working directory, of the image used by the image layer...
Definition: ImageLayer.hpp:55
Image layers contain a single image which make up that layer. The parser contains the fully resolved ...
Definition: ImageLayer.hpp:42
bool hasTransparency() const
Returns true if the image used by this layer specifically states a colour to use as transparency...
Definition: ImageLayer.hpp:65