summaryrefslogtreecommitdiffstats
path: root/o3d/import/cross/raw_data.h
diff options
context:
space:
mode:
Diffstat (limited to 'o3d/import/cross/raw_data.h')
-rw-r--r--o3d/import/cross/raw_data.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/o3d/import/cross/raw_data.h b/o3d/import/cross/raw_data.h
index 092c800..96ea3f4 100644
--- a/o3d/import/cross/raw_data.h
+++ b/o3d/import/cross/raw_data.h
@@ -62,6 +62,11 @@ class RawData : public ParamObject {
const String &uri,
const String& filename);
+ // Creates a RawData object, taking as input a string containing a
+ // data URL.
+ static RawData::Ref CreateFromDataURL(ServiceLocator* service_locator,
+ const String& data_url);
+
virtual ~RawData();
const uint8 *GetData() const;
@@ -110,6 +115,10 @@ class RawData : public ParamObject {
bool SetFromFile(const String& filename);
+ // Decodes data from a data URL and stores that data in this
+ // RawData object. Returns false on error, true otherwise
+ bool SetFromDataURL(const String& data_url);
+
friend class IClassManager;
friend class Pack;