Diligent Engine
Loading...
Searching...
No Matches
Diligent::IRadientSceneImporter Struct Referenceabstract

Imports external scene descriptions into a Radient scene. More...

#include <RadientSceneImporter.h>

Inheritance diagram for Diligent::IRadientSceneImporter:
Diligent.IObject

Public Member Functions

virtual RADIENT_STATUS DILIGENT_CALL_TYPE ImportScene (const RadientSceneLoadInfo &LoadInfo, const RadientSceneInstantiateInfo &InstantiateInfo, IRadientSceneAsset **ppScene, RadientEntityID &RootEntity)=0
virtual RADIENT_STATUS DILIGENT_CALL_TYPE InstantiateScene (IRadientSceneAsset *pScene, const RadientSceneInstantiateInfo &InstantiateInfo, RadientEntityID &RootEntity)=0
virtual RADIENT_STATUS DILIGENT_CALL_TYPE ProcessPendingImports ()=0
 Completes pending asynchronous imports whose assets have finished loading.
Public Member Functions inherited from Diligent.IObject
virtual void DILIGENT_CALL_TYPE QueryInterface (const INTERFACE_ID &IID, IObject **ppInterface)=0
 Queries the specific interface.
template<typename DerivedType, typename = typename std::enable_if<std::is_base_of<IObject, DerivedType>::value>::type>
void QueryInterface (const INTERFACE_ID &IID, DerivedType **ppInterface)
virtual ReferenceCounterValueType DILIGENT_CALL_TYPE AddRef ()=0
 Increments the number of strong references by 1.
virtual ReferenceCounterValueType DILIGENT_CALL_TYPE Release ()=0
virtual IReferenceCounters *DILIGENT_CALL_TYPE GetReferenceCounters () const =0

Detailed Description

Imports external scene descriptions into a Radient scene.

Member Function Documentation

◆ ImportScene()

virtual RADIENT_STATUS DILIGENT_CALL_TYPE Diligent::IRadientSceneImporter::ImportScene ( const RadientSceneLoadInfo & LoadInfo,
const RadientSceneInstantiateInfo & InstantiateInfo,
IRadientSceneAsset ** ppScene,
RadientEntityID & RootEntity )
pure virtual

Loads a scene asset from a URI and instantiates its scene graph. If loading continues asynchronously, this method creates the import root, schedules the scene graph instantiation, and returns RADIENT_STATUS_PENDING.

◆ InstantiateScene()

virtual RADIENT_STATUS DILIGENT_CALL_TYPE Diligent::IRadientSceneImporter::InstantiateScene ( IRadientSceneAsset * pScene,
const RadientSceneInstantiateInfo & InstantiateInfo,
RadientEntityID & RootEntity )
pure virtual

Instantiates a previously loaded scene asset into the scene graph. If the scene metadata is still loading, this method creates the import root, schedules the scene graph instantiation, and returns RADIENT_STATUS_PENDING.