Exemplo n.º 1
0
        public static DeviceModelCollection ConvertToDevice(Assimp.Scene srcScene, DeviceMeshFactory meshFactory)
        {
            if (meshFactory == null)
            {
                throw new ArgumentNullException();
            }

            var content = ConvertToContent(srcScene);

            return(DeviceModelCollection.CreateFrom(content, meshFactory.CreateMeshCollection));
        }
Exemplo n.º 2
0
        public DeviceModelCollection ConvertToDevice(SharpGLTF.Schema2.ModelRoot srcModel, DeviceMeshFactory meshFactory)
        {
            if (meshFactory == null)
            {
                throw new ArgumentNullException();
            }

            var content = ConvertToContent(srcModel);

            return(DeviceModelCollection.CreateFrom(content, meshFactory.CreateMeshCollection));
        }