Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GltfLoader::new. #9120

Merged
merged 2 commits into from Jul 14, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 13 additions & 0 deletions crates/bevy_gltf/src/loader.rs
Expand Up @@ -74,6 +74,19 @@ pub struct GltfLoader {
pub(crate) custom_vertex_attributes: HashMap<String, MeshVertexAttribute>,
}

impl GltfLoader {
/// Creates a new glTF loader.
pub fn new(
supported_compressed_formats: CompressedImageFormats,
custom_vertex_attributes: HashMap<String, MeshVertexAttribute>,
) -> Self {
GltfLoader {
supported_compressed_formats,
custom_vertex_attributes,
}
}
}

impl AssetLoader for GltfLoader {
fn load<'a>(
&'a self,
Expand Down