![]() ![]() A warning is emitted in case an option set is not present in the default configuration of the target plugin.Ĭalls to the animation(), scene(), light(), camera(), object2D(), object3D(), skin2D(), skin3D(), mesh(), material(), texture(), image1D(), image2D(), image3D() and corresponding count-/name-related functions are then proxied to the concrete implementation. After that, flags set via setFlags(), file callbacks set via setFileCallback() and options set through configuration() are propagated to the concrete implementation. On a call to openFile(), a file format is detected from the extension and a corresponding plugin is loaded. Interface proxying and option propagation See Downloading and building, Usage with CMake, Loading and using plugins and File format support for more information. target_link_libraries ( your-app PRIVATE Magnum::AnySceneImporter ) To use as a static plugin or as a dependency of another plugin with CMake, you need to request the AnySceneImporter component of the Magnum package in CMake and link to the Magnum::AnySceneImporter target: find_package ( Magnum REQUIRED AnySceneImporter ) #. To use as a dynamic plugin, load "AnySceneImporter" via Corrade:: PluginManager:: Manager.Īdditionally, if you're using Magnum as a CMake subproject, do the following: set ( MAGNUM_WITH_ANYSCENEIMPORTER ON CACHE BOOL "" FORCE ) add_subdirectory ( magnum EXCLUDE_FROM_ALL ) # So the dynamically loaded plugin gets built implicitly add_dependencies ( your-app Magnum::AnySceneImporter ) This plugin depends on the Trade library and is built if MAGNUM_WITH_ANYSCENEIMPORTER is enabled when building Magnum. Only loading from files is supported as the filename is used to detect the format, however ImporterFeature:: FileCallback is supported as well. XGL ( *.xgl, *.zgl), loaded with any plugin that provides XglImporter.Valve Model ( *.smd, *.vta), loaded with any plugin that provides ValveImporter.Unreal ( *.3d), loaded with any plugin that provides UnrealImporter.TrueSpace ( *.cob, *.scn), loaded with any plugin that provides TrueSpaceImporter.Stereolitography ( *.stl), loaded with any plugin that provides StlImporter.Stanford ( *.ply), loaded with StanfordImporter or any other plugin that provides it.OpenGEX ( *.ogex), loaded with OpenGexImporter or any other plugin that provides it.Ogre XML ( *.xml), loaded with any plugin that provides OgreImporter. ![]() Wavefront OBJ ( *.obj), loaded with ObjImporter or any other plugin that provides it.Milkshape 3D ( *.ms3d), loaded with any plugin that provides MilkshapeImporter.Modo ( *.lxo), loaded with any plugin that provides ModoImporter.LightWave, LightWave Scene ( *.lwo, *.lws), loaded with any plugin that provides LightWaveImporter.Irrlicht Mesh and Scene ( *.irrmesh, *.irr), loaded with any plugin that provides IrrlichtImporter.Industry Foundation Classes (IFC/Step) ( *.ifc), loaded with any plugin that provides IfcImporter.glTF ( *.gltf, *.glb), loaded with GltfImporter or any other plugin that provides it.Autodesk FBX ( *.fbx), loaded with any plugin that provides FbxImporter.AutoCAD DXF ( *.dxf), loaded with any plugin that provides DxfImporter.DirectX X ( *.x), loaded with any plugin that provides DirectXImporter.COLLADA ( *.dae), loaded with any plugin that provides ColladaImporter.CharacterStudio Motion ( *.csm), loaded with any plugin that provides CsmImporter. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |