GIF
};
- enum Location
+ enum ProtocolType
{
LOCAL, ///< file in local file system
TEXTURE, ///< texture uploaded to texture manager
* Is the URL is local to the device, or remote?
* @return the location of the resource
*/
- Location GetLocation() const;
+ ProtocolType GetProtocolType() const;
/**
* Is the URL valid?
*/
bool IsLocalResource() const;
+ /**
+ * @return the location part of the url
+ */
+ std::string GetLocation() const;
+
+ /**
+ * Helper to create a URL of type TEXTURE
+ * @param location the location of the texture
+ * @return the Url
+ */
+ static std::string CreateTextureUrl( const std::string& location );
+
private:
std::string mUrl;
Type mType;
- Location mLocation;
+ ProtocolType mLocation;
};