Logo Search packages:      
Sourcecode: gaia version File versions  Download package

void Tile::Load ( RawBuffer data,
int  keep 
) [virtual]

Load actual data into tile.

Parameters:
data buffer containing raw (compressed) tile data
keep whether to store raw data (for later saving)
For image tiles, for example, data contains compressed JPEG data, and `loading' means uncompressing it and preparing for usage as texture in OpenGL. If keep is set, data isr preserved insided for later saving. data should not be used after it was passed to Tile.

See also:
ReleaseRawData

Reimplemented in TextureTile.

Definition at line 83 of file Tile.cc.

References m_RawData.

Referenced by TextureTile::Load().

                                         {
      if (keep)
            m_RawData = data;
      else 
            delete data;
}


Generated by  Doxygen 1.6.0   Back to index