int tsmReqTile ( TsmHandle *tsmh, Pyramid *pyramid, int ix, int iy, int level, int priority )

Add a tile to the request list

Documentation

Add a tile to the request list.

N.B. this function is part of the old style server-centric interface to tsmApi. You should really start using the new leaner, cleaner, and sexier connection-based interface (see tsmConnect). This function is now just an emulation layer on top of the relevant connection-based function(s): tsmTileReqAdd.

In order to support the asynchronous receipt of terrain tile data over a network, we use a model whereby we built a request list of tile data, send that list, and then use the new tile data as it is received from the server. This model can of course be easily applied to local disk access also.

We build the request list by making a call to tsmStartReqTiles, then making multiple calls to tsmReqTiles to specify all of the tiles that we want to receive, then we call tsmStopReqTiles.

Once we have called tsmStopReqTiles then we can start reading in the tiles as they are received (trivial from local disk!) by calling a function such as tsmGetNextTile.

Returns:
TRUE if operation successful, FALSE if an error occurred
Parameters:
tsmh - an open TSM session handle
pyramid - the pyramid to request the tiles from
ix - the x-coordinate of the tile to request
iy - the y-coordinate of the tile to request
level - the level of the pyramid to request the tile from
priority - one of: TSM_NOW, TSM_NEVER, or TSM_LATER
See Also:
tsmStartReqTiles, tsmStopReqTiles, tsmGetNextTile.


TSMAPI_RELEASE 2.1 - Release Date: 2001/01/10 19:01:12

Back to tsmApi Home Page