예제 #1
0
        public Importer(GltfContainer container, IResourceLoader loader)
        {
            Container  = container;
            Cache      = new ResourcesCache <int>();
            BufferView = new ResourcesStore(container.Gltf, container.Buffer, loader);

            Nodes     = new NodeImporter(this);
            Meshes    = new MeshImporter(this);
            Materials = new MaterialImporter(this);
            Textures  = new TextureImporter(this);
            Images    = new ImageImporter(this);
        }
예제 #2
0
파일: Exporter.cs 프로젝트: magicinn/VGltf
        public Exporter()
        {
            Gltf          = new Types.Gltf();
            Cache         = new ResourcesCache <string>();
            BufferBuilder = new BufferBuilder();

            Nodes     = new NodeExporter(this);
            Meshes    = new MeshExporter(this);
            Materials = new MaterialExporter(this);
            Textures  = new TextureExporter(this);
            Images    = new ImageExporter(this);

            // Asset
            Gltf.Asset = new Types.Asset
            {
                Version = "2.0", // glTF 2.0
            };
        }