diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-03-12 11:23:01 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-03-12 11:23:01 +0100 |
commit | 91d42911fb1099569e99753034abaff8b7fee2f4 (patch) | |
tree | 18a64fe4ebc0fa7673bc57f3d56f57df9da8c4fe /include/llmr/style/style.hpp | |
parent | 60229ed7db4e58bf9b6c8fdf36fc3e20ae656351 (diff) | |
download | qtlocation-mapboxgl-91d42911fb1099569e99753034abaff8b7fee2f4.tar.gz |
parse the json stylesheet
Diffstat (limited to 'include/llmr/style/style.hpp')
-rw-r--r-- | include/llmr/style/style.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llmr/style/style.hpp b/include/llmr/style/style.hpp index 7a491d810d..2b7562244b 100644 --- a/include/llmr/style/style.hpp +++ b/include/llmr/style/style.hpp @@ -19,14 +19,14 @@ class Sprite; class Style { public: + struct exception : std::runtime_error { exception(const char *msg) : std::runtime_error(msg) {} }; + +public: Style(); void reset(); - void load(const uint8_t *const data, size_t bytes); - // This is commented out because it is not fully implemented yet. For now, - // we keep using the protobuf stylesheet format - // void loadJSON(const std::string& data); + void loadJSON(const uint8_t *const data, size_t bytes); void cascade(float z); |