#pragma once
/*
- * Copyright (C) 2005-2012 Team XBMC
- * http://www.xbmc.org
+ * Copyright (C) 2005-2013 Team XBMC
+ * http://xbmc.org
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
class CImageLoader : public CJob
{
public:
- CImageLoader(const CStdString &path);
+ CImageLoader(const CStdString &path, const bool useCache);
virtual ~CImageLoader();
/*!
*/
virtual bool DoWork();
+ bool m_use_cache; ///< Whether or not to use any caching with this image
CStdString m_path; ///< path of image to load
CBaseTexture *m_texture; ///< Texture object to load the image into \sa CBaseTexture.
};
\return true if the image exists, else false.
\sa CGUITextureArray and CGUITexture
*/
- bool GetImage(const CStdString &path, CTextureArray &texture, bool firstRequest);
+ bool GetImage(const CStdString &path, CTextureArray &texture, bool firstRequest, bool useCache = true);
/*!
\brief Request a texture to be unloaded.
unsigned int m_timeToDelete;
};
- void QueueImage(const CStdString &path);
+ void QueueImage(const CStdString &path, bool useCache = true);
std::vector< std::pair<unsigned int, CLargeTexture *> > m_queued;
std::vector<CLargeTexture *> m_allocated;