|
@@ -756,19 +756,17 @@ namespace glTF
|
|
virtual void AttachToDocument(Document& doc) = 0;
|
|
virtual void AttachToDocument(Document& doc) = 0;
|
|
virtual void DetachFromDocument() = 0;
|
|
virtual void DetachFromDocument() = 0;
|
|
|
|
|
|
-#ifdef GLTF_ASSET_WITH_EXPORT_SUPPORT
|
|
|
|
virtual void WriteObjects(AssetWriter& writer) = 0;
|
|
virtual void WriteObjects(AssetWriter& writer) = 0;
|
|
-#endif
|
|
|
|
};
|
|
};
|
|
|
|
|
|
-#ifdef GLTF_ASSET_WITH_EXPORT_SUPPORT
|
|
|
|
|
|
+
|
|
template<class T>
|
|
template<class T>
|
|
class LazyDict;
|
|
class LazyDict;
|
|
|
|
|
|
//! (Implemented in glTFAssetWriter.h)
|
|
//! (Implemented in glTFAssetWriter.h)
|
|
template<class T>
|
|
template<class T>
|
|
void WriteLazyDict(LazyDict<T>& d, AssetWriter& w);
|
|
void WriteLazyDict(LazyDict<T>& d, AssetWriter& w);
|
|
-#endif
|
|
|
|
|
|
+
|
|
|
|
|
|
//! Manages lazy loading of the glTF top-level objects, and keeps a reference to them by ID
|
|
//! Manages lazy loading of the glTF top-level objects, and keeps a reference to them by ID
|
|
//! It is the owner the loaded objects, so when it is destroyed it also deletes them
|
|
//! It is the owner the loaded objects, so when it is destroyed it also deletes them
|
|
@@ -790,10 +788,8 @@ namespace glTF
|
|
void AttachToDocument(Document& doc);
|
|
void AttachToDocument(Document& doc);
|
|
void DetachFromDocument();
|
|
void DetachFromDocument();
|
|
|
|
|
|
-#ifdef GLTF_ASSET_WITH_EXPORT_SUPPORT
|
|
|
|
void WriteObjects(AssetWriter& writer)
|
|
void WriteObjects(AssetWriter& writer)
|
|
{ WriteLazyDict<T>(*this, writer); }
|
|
{ WriteLazyDict<T>(*this, writer); }
|
|
-#endif
|
|
|
|
|
|
|
|
Ref<T> Add(T* obj);
|
|
Ref<T> Add(T* obj);
|
|
|
|
|