MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / CanImport

Method CanImport

modules/tools/asset_tool/src/gltf_factory.cpp:29–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29bool SGLTFImporterFactoryImpl::CanImport(const skr::String& path) const
30{
31 return skr::stl_u8string_view(path.u8_str()).ends_with(u8".gltf") ||
32 skr::stl_u8string_view(path.u8_str()).ends_with(u8".glb");
33}
34
35int SGLTFImporterFactoryImpl::Import(const skr::String& path)
36{

Callers 1

main_module_execMethod · 0.80

Calls 2

ends_withMethod · 0.45
u8_strMethod · 0.45

Tested by

no test coverage detected