本文整理汇总了C++中LLViewerImage::getBoostLevel方法的典型用法代码示例。如果您正苦于以下问题:C++ LLViewerImage::getBoostLevel方法的具体用法?C++ LLViewerImage::getBoostLevel怎么用?C++ LLViewerImage::getBoostLevel使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LLViewerImage
的用法示例。
在下文中一共展示了LLViewerImage::getBoostLevel方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: export_next_texture
void primbackup::export_next_texture()
{
if(textures.empty())
{
llinfos << "Finished exporting textures "<<llendl;
return;
}
std::list<LLUUID>::iterator iter;
iter = textures.begin();
LLUUID id;
while(1)
{
if(iter==textures.end())
{
m_nexttextureready=true;
return;
}
id=(*iter);
LLViewerImage * imagep = gImageList.hasImage(id);
if(imagep!=NULL)
{
S32 cur_discard = imagep->getDiscardLevel();
if(cur_discard>0)
{
if(imagep->getBoostLevel()!=LLViewerImageBoostLevel::BOOST_PREVIEW)
imagep->setBoostLevel(LLViewerImageBoostLevel::BOOST_PREVIEW); //we want to force discard 0 this one does this.
}
else
{
break;
}
}
else
{
llwarns<<" We *DONT* have the texture "<<llendl;
}
iter++;
}
textures.remove(id);
llinfos<<"Requesting texture "<<id<<llendl;
LLImageJ2C * mFormattedImage = new LLImageJ2C;
CacheReadResponder* responder = new CacheReadResponder(id, mFormattedImage);
LLAppViewer::getTextureCache()->readFromCache(id,LLWorkerThread::PRIORITY_HIGH,0,999999,responder);
}
示例2: dump
void LLViewerImageList::dump()
{
llinfos << "LLViewerImageList::dump()" << llendl;
for (image_priority_list_t::iterator it = mImageList.begin(); it != mImageList.end(); ++it)
{
LLViewerImage* image = *it;
llinfos << "priority " << image->getDecodePriority()
<< " boost " << image->getBoostLevel()
<< " size " << image->getWidth() << "x" << image->getHeight()
<< " discard " << image->getDiscardLevel()
<< " desired " << image->getDesiredDiscardLevel()
<< " http://asset.siva.lindenlab.com/" << image->getID() << ".texture"
<< llendl;
}
}