//----------------------------------------------------------------// void MOAIGfxDevice::ResetResources () { ResourceIt resourceIt = this->mResources.Head (); for ( ; resourceIt; resourceIt = resourceIt->Next ()) { resourceIt->Data ()->Invalidate (); resourceIt->Data ()->Load (); } }
//----------------------------------------------------------------// void MOAIGfxDevice::ReleaseResources () { ResourceIt resourceIt = this->mResources.Head (); for ( ; resourceIt; resourceIt = resourceIt->Next ()) { resourceIt->Data ()->Destroy (); } }
//----------------------------------------------------------------// void MOAIGfxDevice::RenewResources () { ResourceIt resourceIt = this->mResources.Head (); for ( ; resourceIt; resourceIt = resourceIt->Next ()) { resourceIt->Data ()->RenewGfxResource (); } }
//----------------------------------------------------------------// void MOAIGfxDevice::SoftReleaseResources ( u32 age ) { ResourceIt resourceIt = this->mResources.Head (); for ( ; resourceIt; resourceIt = resourceIt->Next ()) { resourceIt->Data ()->SoftRelease ( age ); } // Horrible to call this, but generally soft release is only used // in response to a low memory warning and we want to free as soon as possible. glFlush (); }