MCPcopy Create free account
hub / github.com/bumptop/BumpTop / onImageUpdate

Method onImageUpdate

trunk/win/Source/BT_RSSPhotoFrameSource.cpp:276–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276void RSSPhotoFrameSource::onImageUpdate(const FileTransfer& transfer)
277{
278 // rename the image back to the original filename
279 QString texPath = _current.getTexturePath();
280 QFile::rename(transfer.getLocalPath(), texPath);
281
282 // load the image (so that it will swap)
283 GLTextureObject obj(Load|Compress|Reload, _textureBufferId, _current.getTexturePath(), SampledImage, IdlePriority);
284 texMgr->loadTexture(obj);
285
286 // bump up image loaded count
287 ++_imageUpdateCount;
288}
289
290void RSSPhotoFrameSource::preparePhotoFrameDialog(PhotoFrameDialog * dialog) const
291{

Callers

nothing calls this directly

Calls 4

getTexturePathMethod · 0.80
getLocalPathMethod · 0.80
loadTextureMethod · 0.80
renameFunction · 0.50

Tested by

no test coverage detected