MCPcopy Create free account
hub / github.com/comaps/comaps / ParseColorsList

Function ParseColorsList

libs/drape/texture_manager.cpp:58–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56
57template <typename ToDo>
58void 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
70m2::PointU StipplePenTextureSize(size_t patternsCount, uint32_t maxTextureSize)
71{

Callers 1

InitMethod · 0.85

Calls 1

GetReaderMethod · 0.45

Tested by

no test coverage detected