335 auto s = Director::getInstance()->getWinSize();
337 auto imgMipMap = Sprite::create(
"Images/logo-mipmap.pvr");
340 imgMipMap->setPosition(Vec2( s.width/2.0f-100, s.height/2.0f));
344 Texture2D::TexParams texParams = {
345 backend::SamplerFilter::LINEAR_MIPMAP_LINEAR,
346 backend::SamplerFilter::LINEAR,
347 backend::SamplerAddressMode::CLAMP_TO_EDGE,
348 backend::SamplerAddressMode::CLAMP_TO_EDGE };
349 imgMipMap->getTexture()->setTexParameters(texParams);
352 auto img = Sprite::create(
"Images/logo-nomipmap.pvr");
355 img->setPosition(Vec2( s.width/2.0f+100, s.height/2.0f));
358 auto scale1 = EaseOut::create(ScaleBy::create(4, 0.01f), 3);
359 auto sc_back = scale1->reverse();
361 auto scale2 = scale1->clone();
362 auto sc_back2 = scale2->reverse();
364 imgMipMap->runAction(RepeatForever::create(Sequence::create(scale1, sc_back,
nullptr)));
365 img->runAction(RepeatForever::create(Sequence::create(scale2, sc_back2,
nullptr)));
367 log(
"%s\n", Director::getInstance()->getTextureCache()->getCachedTextureInfo().c_str());
virtual void onEnter() override