void PythonScriptModule::Load() { /// \todo This should print a error as PythonScriptModule::Load might have done this already! How to avoid? framework_->Scene()->RegisterComponentFactory(ComponentFactoryPtr(new GenericComponentFactory<EC_Script>)); framework_->Asset()->RegisterAssetTypeFactory(AssetTypeFactoryPtr(new ScriptAssetFactory())); }
void C3DUiModule::Load() { framework_->Scene()->RegisterComponentFactory(ComponentFactoryPtr(new GenericComponentFactory<EC_VisualContainer>)); }
void UrhoRenderer::Load() { SceneAPI* scene = framework->Scene(); scene->RegisterComponentFactory(ComponentFactoryPtr(new GenericComponentFactory<Placeable>())); scene->RegisterComponentFactory(ComponentFactoryPtr(new GenericComponentFactory<Mesh>())); scene->RegisterComponentFactory(ComponentFactoryPtr(new GenericComponentFactory<Camera>())); scene->RegisterComponentFactory(ComponentFactoryPtr(new GenericComponentFactory<Light>())); scene->RegisterComponentFactory(ComponentFactoryPtr(new GenericComponentFactory<AnimationController>())); scene->RegisterComponentFactory(ComponentFactoryPtr(new GenericComponentFactory<EnvironmentLight>())); scene->RegisterComponentFactory(ComponentFactoryPtr(new GenericComponentFactory<Terrain>())); scene->RegisterComponentFactory(ComponentFactoryPtr(new GenericComponentFactory<Sky>())); scene->RegisterComponentFactory(ComponentFactoryPtr(new GenericComponentFactory<ParticleSystem>)); scene->RegisterComponentFactory(ComponentFactoryPtr(new GenericComponentFactory<Fog>)); scene->RegisterComponentFactory(ComponentFactoryPtr(new GenericComponentFactory<WaterPlane>)); /// \todo Check and add new supported texture extensions StringList textureExtensions; textureExtensions.Push(".crn"); // CRN to DDS decompression implemented in TextureAsset textureExtensions.Push(".dds"); textureExtensions.Push(".png"); textureExtensions.Push(".jpeg"); textureExtensions.Push(".jpg"); textureExtensions.Push(".gif"); textureExtensions.Push(".bmp"); textureExtensions.Push(".tga"); textureExtensions.Push(".psd"); framework->Asset()->RegisterAssetTypeFactory(AssetTypeFactoryPtr(new GenericAssetFactory<UrhoMeshAsset>("UrhoMesh", ".mdl"))); framework->Asset()->RegisterAssetTypeFactory(AssetTypeFactoryPtr(new GenericAssetFactory<OgreMeshAsset>("OgreMesh", ".mesh"))); framework->Asset()->RegisterAssetTypeFactory(AssetTypeFactoryPtr(new GenericAssetFactory<OgreMaterialAsset>("OgreMaterial", ".material"))); framework->Asset()->RegisterAssetTypeFactory(AssetTypeFactoryPtr(new GenericAssetFactory<OgreSkeletonAsset>("OgreSkeleton", ".skeleton"))); framework->Asset()->RegisterAssetTypeFactory(AssetTypeFactoryPtr(new GenericAssetFactory<OgreParticleAsset>("OgreParticle", ".particle"))); framework->Asset()->RegisterAssetTypeFactory(AssetTypeFactoryPtr(new GenericAssetFactory<TextureAsset>("Texture", textureExtensions))); }