![]() | |
Scene |
public static void RegisterVisual3DToSceneNodeCreator( Type visual3DType, SceneNodeFactoryVisual3DToSceneNodeCreatorDelegate creatorFunction )
RegisterVisual3DCreator registers a delegate that will be used to convert specified WPF Visual3D type into DXEngine's SceneNode.
NOTE: The order in which the RegisterVisual3DCreator methods are called is important. Visual3D types that are registered later are checked first - this way it is possible to first register base types and than specific types.
If RegisterVisual3DToSceneNodeCreator is called again with the same visual3DType, then the previous delegate is overwritten with the new creatorFunction.
To unregister a type use the UnRegisterVisual3DToSceneNodeCreator(Type) or UnregisterAllVisual3DToSceneNodeCreators methods.
Method is thread safe and can be called from any thread.