From 0b95c1064dae7ff4449858e4ea63d3750fe6f05c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Mon, 27 Jan 2014 17:53:52 +0100 Subject: [PATCH] add platform function comments --- include/llmr/platform/platform.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/llmr/platform/platform.hpp b/include/llmr/platform/platform.hpp index 74144f12e..75d491cb0 100644 --- a/include/llmr/platform/platform.hpp +++ b/include/llmr/platform/platform.hpp @@ -9,8 +9,16 @@ class Tile; namespace platform { +// Restarts painting. This could for example trigger the event loop of the +// controlling application. void restart(void *obj); + +// Download a tile. Obtain the z/x/y from the tile shared_ptr. +// You should perform the download and parsing of the tile in a separate thread! +// Then, call map.tileLoaded(tile); or map.tileFailed(tile); in the main thread. void request(void *obj, std::shared_ptr tile); + +// Returns a relative timestamp in seconds. This value must be monotonic. double time(); }