add rapidjson for parsing sprite json files

This commit is contained in:
Konstantin Käfer
2014-02-03 11:36:34 +01:00
parent c7b012ba42
commit 202e0270f7
22 changed files with 2868 additions and 17 deletions

View File

@@ -74,9 +74,9 @@ void Tile::request() {
// Note: Somehow this feels slower than the change to request_http()
std::shared_ptr<Tile> tile = shared_from_this();
platform::request_http(url, [=](const platform::Response& res) {
platform::request_http(url, [=](platform::Response& res) {
if (res.code == 200) {
tile->data.assign(res.body, res.body + res.length);
tile->data.swap(res.body);
platform::async([tile]() {
tile->parse();