| 56 | |
| 57 | template <typename ToDo> |
| 58 | void ParseColorsList(std::string const & colorsFile, ToDo toDo) |
| 59 | { |
| 60 | ReaderStreamBuf buffer(GetPlatform().GetReader(colorsFile)); |
| 61 | std::istream is(&buffer); |
| 62 | while (is.good()) |
| 63 | { |
| 64 | uint32_t color; |
| 65 | is >> color; |
| 66 | toDo(dp::Color::FromARGB(color)); |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | m2::PointU StipplePenTextureSize(size_t patternsCount, uint32_t maxTextureSize) |
| 71 | { |