Files
MapLibreParticleLab/include/llmr/platform/platform.hpp
Justin R. Miller 828d8ba26f refs #60: first cut of POI rendering
* add basic marker style to stylesheet
 * pass through marker style to PBF conversion
 * marker/point tile parsing, bucket, buffer, shaders, etc.
 * new sprite hosting for 1x/2x variants
 * sprite load accepts screen scale argument
2014-02-14 18:13:12 -08:00

36 lines
740 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 "https://dl.dropboxusercontent.com/u/575564/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, std::function<void()> cb);
// Returns a relative timestamp in seconds. This value must be monotonic.
double time();
}
}
#endif