update headers to Filament v1.25.0
This commit is contained in:
@@ -27,10 +27,11 @@ namespace filament {
|
||||
class Engine;
|
||||
}
|
||||
|
||||
namespace gltfio {
|
||||
namespace filament::gltfio {
|
||||
|
||||
struct FFilamentAsset;
|
||||
class AssetPool;
|
||||
class TextureProvider;
|
||||
|
||||
/**
|
||||
* \struct ResourceConfiguration ResourceLoader.h gltfio/ResourceLoader.h
|
||||
@@ -53,8 +54,8 @@ struct ResourceConfiguration {
|
||||
//! do not need this, but it is useful for robustness.
|
||||
bool recomputeBoundingBoxes;
|
||||
|
||||
//! If true, ignore skinned primitives bind transform when compute bounding box. Implicitly true
|
||||
//! for instanced asset. Only applicable when recomputeBoundingBoxes is set to true
|
||||
//! If true, ignores skinning when computing bounding boxes. Implicitly true for instanced
|
||||
//! assets. Only applicable when recomputeBoundingBoxes is set to true.
|
||||
bool ignoreBindTransform;
|
||||
};
|
||||
|
||||
@@ -94,6 +95,13 @@ public:
|
||||
*/
|
||||
void addResourceData(const char* uri, BufferDescriptor&& buffer);
|
||||
|
||||
/**
|
||||
* Register a plugin that can consume PNG / JPEG content and produce filament::Texture objects.
|
||||
*
|
||||
* Destruction of the given provider is the client's responsibility.
|
||||
*/
|
||||
void addTextureProvider(const char* mimeType, TextureProvider* provider);
|
||||
|
||||
/**
|
||||
* Checks if the given resource has already been added to the URI cache.
|
||||
*/
|
||||
@@ -153,7 +161,6 @@ public:
|
||||
|
||||
private:
|
||||
bool loadResources(FFilamentAsset* asset, bool async);
|
||||
void applySparseData(FFilamentAsset* asset) const;
|
||||
void normalizeSkinningWeights(FFilamentAsset* asset) const;
|
||||
void updateBoundingBoxes(FFilamentAsset* asset) const;
|
||||
AssetPool* mPool;
|
||||
@@ -161,7 +168,7 @@ private:
|
||||
Impl* pImpl;
|
||||
};
|
||||
|
||||
} // namespace gltfio
|
||||
} // namespace filament::gltfio
|
||||
|
||||
#endif // GLTFIO_RESOURCELOADER_H
|
||||
|
||||
|
||||
Reference in New Issue
Block a user