|
| AddToSceneResult | superdex::prefab::AddToScene (ScenePrefab const &prefab, Scene *scene, Error &error) |
| | Overload of AddToScene that instantiates a ScenePrefab using default PrefabParams.
|
| AddToSceneResult | superdex::prefab::AddToScene (ScenePrefab const &prefab, Scene *scene, PrefabParams const ¶ms, Error &error) |
| | Instantiate a ScenePrefab and add it to a Scene.
|
| AddToSceneResult | superdex::prefab::AddToScene (std::string_view prefabPath, std::string_view rootPath, Scene *scene, Error &error) |
| | Overload of AddToScene that loads a prefab from a file and instantiates it using default PrefabParams.
|
| AddToSceneResult | superdex::prefab::AddToScene (std::string_view prefabPath, std::string_view rootPath, Scene *scene, PrefabParams const ¶ms, Error &error) |
| | Load a scene prefab from a file and create an instance of it in the Scene.
|
| void | superdex::prefab::EnsureFullyLoaded (ScenePrefab &prefab, std::string_view rootPath, Context *context, Error &error) |
| | Ensure that all nested prefabs and shape files are loaded, skipping any that are already loaded.
|
| void | superdex::prefab::ExportActor (Actor const *actor, std::string_view exportName, std::string_view outputDir, Error &error) |
| | Export a single actor to a prefab file under outputDir/exportName/<exportName>.mochi_scene.
|
| void | superdex::prefab::ExportScene (Scene const *scene, std::string_view exportName, std::string_view outputDir, Error &error) |
| | Export a Scene to a folder containing a prefab file and all generated mesh files.
|
| void | superdex::prefab::ExportSceneExcluding (Scene const *scene, std::string_view exportName, std::string_view outputDir, Span< ActorHandle const > excludeActors, Error &error) |
| | Export a Scene to a folder containing a prefab file and all generated mesh files, omitting a caller-provided set of actors.
|
| DynamicString | superdex::prefab::GetPrefabFullPath (std::string_view inputPath, std::string_view rootForRelativePath, std::string_view prefabFilePath) |
| | Resolve a path referenced inside a prefab to a full path.
|
| ScenePrefab | superdex::prefab::LoadFromFile (std::string_view prefabPath, std::string_view rootPath, Context *context, Error &error) |
| | Fully load a ScenePrefab from a file, including all nested prefabs and shapes.
|
| ScenePrefab | superdex::prefab::LoadFromJsonString (std::string_view json, std::string_view rootPath, Context *context, Error &error) |
| | Fully load a ScenePrefab from a JSON string, including all nested prefabs and shapes.
|
| void | superdex::prefab::LoadNestedPrefabs (ScenePrefab &prefab, std::string_view rootPath, Error &error) |
| | Load nested prefab files recursively.
|
| void | superdex::prefab::LoadShapes (ScenePrefab &prefab, std::string_view rootPath, Context *context, Error &error) |
| | Load shape files referenced by prefab and its loaded nested prefabs.
|
| void | superdex::prefab::SaveToJsonFile (ScenePrefab const &prefab, std::string_view path, Error &error) |
| | Serialize a ScenePrefab to a JSON file.
|
| DynamicString | superdex::prefab::SaveToJsonString (ScenePrefab const &prefab, Error &error) |
| | Serialize a ScenePrefab to a JSON string.
|
| ScenePrefab | superdex::prefab::ShallowLoadFromFile (std::string_view path, Error &error) |
| | Deserialize a single ScenePrefab from a file, without loading any nested files.
|
| ScenePrefab | superdex::prefab::ShallowLoadFromJsonString (std::string_view json, Error &error) |
| | Deserialize a single ScenePrefab from a JSON string, without loading any nested files.
|