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

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

Load actual texture data into tile.

See Tile::Load

Reimplemented from Tile.

Definition at line 67 of file TextureTile.cc.

References RawBuffer::Data(), Tile::Load(), Texture::LoadJPEG(), m_Texture, and RawBuffer::Size().

      Texture *tex = new Texture;

      try {
            tex->LoadJPEG(TEXTURE_SOURCE_MEM, data->Data(), data->Size());
      } catch (...) {
            delete tex;
            delete data;

      m_Texture = tex;
      Tile::Load(data, keep);

Generated by  Doxygen 1.6.0   Back to index