Example #1
0
 Impl(const CacheId& cacheId, DataSource& dataSource)
 {
     if (!load(cacheId, dataSource))
         LBTHROW(
             CacheLoadException(cacheId,
                                "Unable to construct data cache object"));
 }
Example #2
0
 Impl(const uint64_t cacheId, const Cache& dataCache,
      const DataSource& dataSource, TexturePool& texturePool)
     : _textureState(texturePool)
     , _textureSize(getTextureSize(dataSource))
 {
     LBASSERT(_textureState.textureId);
     if (!load(cacheId, dataCache, dataSource, texturePool))
         LBTHROW(
             CacheLoadException(cacheId,
                                "Unable to construct texture cache object"));
 }