Provides specialized flags which can be used to register scene loader plugins.
Macros | |
#define | PLUGINFLAG_SCENELOADER_URL_AWARE |
#define | PLUGINFLAG_SCENELOADER_SUPPORT_ASYNC |
#define | PLUGINFLAG_SCENELOADER_MERGEORIGINAL |
#define PLUGINFLAG_SCENELOADER_URL_AWARE |
Signals that a scene loader can deal with URLs that are not of file scheme as for example asset URLs.
#define PLUGINFLAG_SCENELOADER_SUPPORT_ASYNC |
Signals that a scene loader should run asynchronously.
Registering a scene loader with this flag requires following non-main-thread restrictions within its non-main-thread methods, as for example not performing GUI operations. But a call of SceneLoaderData::Load for such asynchronous laoder can still carry the flags SCENEFILTER::PROGRESSALLOWED and SCENEFILTER::DIALOGSALLOWED. To support these flags, GUI operations must then be dispatched to the main thread with maxon::ExecuteOnMainThread.
#define PLUGINFLAG_SCENELOADER_MERGEORIGINAL |
Signals if a scene loader supports scene merging operations.
When this flag is being set and a user invokes a merging into an active scene, the output of the loader will be merged with the active scene. When this flag is not being set, all imports will be placed in a new scene, regardless of the user inputs.