#pragma once #include #include #include #include #include #include #include namespace mbgl { namespace style { class Image; } // namespace style // Extracts an individual image from a spritesheet from the given location. std::unique_ptr createStyleImage(const PremultipliedImage&, uint32_t srcX, uint32_t srcY, uint32_t srcWidth, uint32_t srcHeight, double ratio, bool sdf); using Images = std::map>; // Parses an image and an associated JSON file and returns the sprite objects. Images parseSprite(const std::string& image, const std::string& json); } // namespace mbgl