Utility functions especially created for functions not yet designated for direct API integration.
More...
#include <ramses-hmi-utils.h>
Utility functions especially created for functions not yet designated for direct API integration.
◆ AllResourcesForSceneKnown()
static bool ramses::RamsesHMIUtils::AllResourcesForSceneKnown |
( |
const Scene & |
scene | ) |
|
|
static |
Checks if all resources for scene are locally available.
This method can be called to verify that at the time of calling all resources that are used inside scene are locally available. That means this scene could be mapped on a renderer and the renderer would be able to retrieve all needed resources. It does not check for resources in remote providers or resource caches.
- Parameters
-
[in] | scene | The scene to verify resources for |
- Returns
- True when all resources are available, false if not
◆ DumpUnrequiredSceneObjects()
static void ramses::RamsesHMIUtils::DumpUnrequiredSceneObjects |
( |
const Scene & |
scene | ) |
|
|
static |
Dumps all objects of a scene which do not contribute to the visual appearance of the scene on screen. This includes disabled RenderPass-es, invisible MeshNode-s, client resources which are not used by the scene, and so on. The output is in text form, starts with a list of all unrequired objects and their names and concludes with a statistic (number of unrequired objects out of all objects of that type)
- Parameters
-
[in] | scene | the source scene |
◆ DumpUnrequiredSceneObjectsToFile()
static void ramses::RamsesHMIUtils::DumpUnrequiredSceneObjectsToFile |
( |
const Scene & |
scene, |
|
|
std::ostream & |
out |
|
) |
| |
|
static |
◆ GetResourceDataPoolForClient()
◆ SaveResourcesOfSceneToResourceFile()
static bool ramses::RamsesHMIUtils::SaveResourcesOfSceneToResourceFile |
( |
Scene const & |
scene, |
|
|
std::string const & |
filename, |
|
|
bool |
compress |
|
) |
| |
|
static |
Saves all resources of a scene to a resource file, which can be opened in a ResourceDataPool.
- Deprecated:
- This functionality is deprecated. See ramses::ResourceDataPool for details.
- Parameters
-
[in] | scene | The scene to save resource of. |
[in] | filename | The file path to write the resource file to. |
[in] | compress | if set to true, resources might be compressed before saving otherwise, uncompressed data will be saved return True if operation succeeded. |
The documentation for this class was generated from the following file:
- /home/runner/work/ramses/ramses/client/ramses-client/ramses-client-api/include/ramses-hmi-utils.h