...
|
...
|
@@ -33,18 +33,26 @@ |
|
|
#include <stdint.h>
|
|
|
|
|
|
/*! \struct RMTile
|
|
|
Uniquely specifies coordinates and zoom level for a particular tile in some tile source.
|
|
|
\brief Uniquely specifies coordinates and zoom level for a particular tile in some tile source.
|
|
|
|
|
|
This is a 3-field number. If you want the image associated with an RMTile, you're looking for RMTileImage
|
|
|
*/
|
|
|
typedef struct{
|
|
|
uint32_t x, y;
|
|
|
short zoom;
|
|
|
} RMTile;
|
|
|
|
|
|
/*! \struct RMTilePoint
|
|
|
\brief Don't know what this is for.
|
|
|
*/
|
|
|
typedef struct{
|
|
|
RMTile tile;
|
|
|
CGPoint offset;
|
|
|
} RMTilePoint;
|
|
|
|
|
|
/*! \struct RMTileRect
|
|
|
\brief Don't know what this is for.
|
|
|
*/
|
|
|
typedef struct{
|
|
|
RMTilePoint origin;
|
|
|
CGSize size;
|
...
|
...
|
@@ -55,19 +63,19 @@ char RMTilesEqual(RMTile one, RMTile two); |
|
|
char RMTileIsDummy(RMTile tile);
|
|
|
RMTile RMTileDummy();
|
|
|
|
|
|
// Return a hash of the tile
|
|
|
/// Return a hash of the tile
|
|
|
uint64_t RMTileHash(RMTile tile);
|
|
|
|
|
|
// Returns a unique key of the tile
|
|
|
/// Returns a unique key of the tile for use in the SQLite cache
|
|
|
uint64_t RMTileKey(RMTile tile);
|
|
|
|
|
|
// Round the rectangle to whole numbers of tiles
|
|
|
/// Round the rectangle to whole numbers of tiles
|
|
|
RMTileRect RMTileRectRound(RMTileRect rect);
|
|
|
/*
|
|
|
// Calculate and return the intersection of two rectangles
|
|
|
/// Calculate and return the intersection of two rectangles
|
|
|
TileRect TileRectIntersection(TileRect one, TileRect two);
|
|
|
|
|
|
// Calculate and return the union of two rectangles
|
|
|
/// Calculate and return the union of two rectangles
|
|
|
TileRect TileRectUnion(TileRect one, TileRect two);
|
|
|
*/
|
|
|
#endif |
...
|
...
|
|