mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:00:04 +00:00
Load color tables from settings
This commit is contained in:
parent
bcae7d9825
commit
b241703b40
16 changed files with 324 additions and 17 deletions
|
|
@ -35,6 +35,7 @@ public:
|
|||
ColorTable& operator=(ColorTable&&) noexcept;
|
||||
|
||||
boost::gil::rgba8_pixel_t Color(float value) const;
|
||||
bool IsValid() const;
|
||||
|
||||
static std::shared_ptr<ColorTable> Load(const std::string& filename);
|
||||
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ typedef util::Iterator<Level2Product,
|
|||
|
||||
const std::string& GetLevel2Name(Level2Product product);
|
||||
const std::string& GetLevel2Description(Level2Product product);
|
||||
const std::string& GetLevel2Palette(Level2Product product);
|
||||
const Level2Product GetLevel2Product(const std::string& id);
|
||||
|
||||
} // namespace common
|
||||
|
|
|
|||
13
wxdata/include/scwx/util/streams.hpp
Normal file
13
wxdata/include/scwx/util/streams.hpp
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#pragma once
|
||||
|
||||
#include <istream>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace util
|
||||
{
|
||||
|
||||
std::istream& getline(std::istream& is, std::string& t);
|
||||
|
||||
} // namespace util
|
||||
} // namespace scwx
|
||||
Loading…
Add table
Add a link
Reference in a new issue