Files
MapLibreParticleLab/include/llmr/platform/platform.hpp
artemp d6654ccaed c++
* fix typedef's
* fix virtual dtor's
* make ctor's with one argument explicit
* util::noncopyable utility class  ( class my_object : private noncopyable {} )
* update kTileURL
2014-02-06 10:33:46 +00:00

39 lines
880 B
C++

#ifndef LLMR_PLATFORM_IOS
#define LLMR_PLATFORM_IOS
#include <memory>
#include <functional>
#include <string>
#define kTileURL "http://a.gl-api-us-east-1.tilestream.net/v3/mapbox.mapbox-streets-v4/%d/%d/%d.gl.pbf"
#define kSpriteURL "http://mapbox:magic@kkaefer.net/gl/debug/img/sprite"
namespace llmr {
class Tile;
namespace platform {
// Restarts painting. This could for example trigger the event loop of the
// controlling application.
void restart(void *obj);
struct Response {
int16_t code = -1;
std::string body;
};
void request_http(std::string url, std::function<void(Response&)> func);
void request_http(std::string url, std::function<void(Response&)> func, std::function<void()> cb);
void async(std::function<void()> fn, std::function<void()> cb);
// Returns a relative timestamp in seconds. This value must be monotonic.
double time();
}
}
#endif