add platform function comments

This commit is contained in:
Konstantin Käfer
2014-01-27 17:53:52 +01:00
parent 4d18db14d5
commit 0b95c1064d

View File

@@ -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> tile);
// Returns a relative timestamp in seconds. This value must be monotonic.
double time();
}