diff --git a/package/ci/appveyor-desktop-gles.bat b/package/ci/appveyor-desktop-gles.bat index 223133b..da0fe55 100644 --- a/package/ci/appveyor-desktop-gles.bat +++ b/package/ci/appveyor-desktop-gles.bat @@ -76,10 +76,10 @@ cmake .. ^ -DCMAKE_INSTALL_PREFIX=%APPVEYOR_BUILD_FOLDER%/deps ^ -DBUILD_STATIC=%BUILD_STATIC% ^ -DWITH_DDSIMPORTER=ON ^ + -DWITH_GLTFIMPORTER=ON ^ -DWITH_STANFORDSCENECONVERTER=ON ^ -DWITH_STBIMAGECONVERTER=ON ^ -DWITH_STBIMAGEIMPORTER=ON ^ - -DWITH_CGLTFIMPORTER=ON ^ -G Ninja || exit /b cmake --build . || exit /b cmake --build . --target install || exit /b diff --git a/package/ci/appveyor-desktop.bat b/package/ci/appveyor-desktop.bat index 92db445..fe5a3d1 100644 --- a/package/ci/appveyor-desktop.bat +++ b/package/ci/appveyor-desktop.bat @@ -83,10 +83,10 @@ cmake .. ^ -DCMAKE_INSTALL_PREFIX=%APPVEYOR_BUILD_FOLDER%/deps ^ -DBUILD_STATIC=%BUILD_STATIC% ^ -DWITH_DDSIMPORTER=ON ^ + -DWITH_GLTFIMPORTER=ON ^ -DWITH_STANFORDSCENECONVERTER=ON ^ -DWITH_STBIMAGECONVERTER=ON ^ -DWITH_STBIMAGEIMPORTER=ON ^ - -DWITH_CGLTFIMPORTER=ON ^ %COMPILER_EXTRA% -G Ninja || exit /b cmake --build . || exit /b cmake --build . --target install || exit /b diff --git a/package/ci/unix-desktop-gles.sh b/package/ci/unix-desktop-gles.sh index a6bd398..0d2cc82 100755 --- a/package/ci/unix-desktop-gles.sh +++ b/package/ci/unix-desktop-gles.sh @@ -63,10 +63,10 @@ cmake .. \ -DCMAKE_INSTALL_RPATH="$HOME/deps/lib;$HOME/swiftshader/lib" \ -DBUILD_STATIC=$BUILD_STATIC \ -DWITH_DDSIMPORTER=ON \ + -DWITH_GLTFIMPORTER=ON \ -DWITH_STANFORDSCENECONVERTER=ON \ -DWITH_STBIMAGECONVERTER=ON \ -DWITH_STBIMAGEIMPORTER=ON \ - -DWITH_CGLTFIMPORTER=ON \ -G Ninja ninja install cd ../.. diff --git a/package/ci/unix-desktop.sh b/package/ci/unix-desktop.sh index b26f584..f283a91 100755 --- a/package/ci/unix-desktop.sh +++ b/package/ci/unix-desktop.sh @@ -67,10 +67,10 @@ cmake .. \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_STATIC=$BUILD_STATIC \ -DWITH_DDSIMPORTER=ON \ + -DWITH_GLTFIMPORTER=ON \ -DWITH_STANFORDSCENECONVERTER=ON \ -DWITH_STBIMAGECONVERTER=ON \ -DWITH_STBIMAGEIMPORTER=ON \ - -DWITH_CGLTFIMPORTER=ON \ -G Ninja ninja install cd ../.. diff --git a/src/python/magnum/test/test_trade.py b/src/python/magnum/test/test_trade.py index 25faa06..61f0889 100644 --- a/src/python/magnum/test/test_trade.py +++ b/src/python/magnum/test/test_trade.py @@ -92,7 +92,7 @@ class ImageData(unittest.TestCase): class MeshData(unittest.TestCase): def test(self): # The only way to get a mesh instance is through a manager - importer = trade.ImporterManager().load_and_instantiate('CgltfImporter') + importer = trade.ImporterManager().load_and_instantiate('GltfImporter') importer.open_file(os.path.join(os.path.dirname(__file__), 'mesh.glb')) mesh = importer.mesh(0) @@ -210,7 +210,7 @@ class Importer(unittest.TestCase): def test_mesh(self): # importer refcounting tested in image2d - importer = trade.ImporterManager().load_and_instantiate('CgltfImporter') + importer = trade.ImporterManager().load_and_instantiate('GltfImporter') importer.open_file(os.path.join(os.path.dirname(__file__), 'mesh.glb')) self.assertEqual(importer.mesh_count, 3) self.assertEqual(importer.mesh_level_count(0), 1) @@ -221,28 +221,28 @@ class Importer(unittest.TestCase): self.assertEqual(mesh.primitive, MeshPrimitive.TRIANGLES) def test_mesh_level_oob(self): - importer = trade.ImporterManager().load_and_instantiate('CgltfImporter') + importer = trade.ImporterManager().load_and_instantiate('GltfImporter') importer.open_file(os.path.join(os.path.dirname(__file__), 'mesh.glb')) with self.assertRaises(IndexError): importer.mesh(0, 1) def test_mesh_by_name(self): - importer = trade.ImporterManager().load_and_instantiate('CgltfImporter') + importer = trade.ImporterManager().load_and_instantiate('GltfImporter') importer.open_file(os.path.join(os.path.dirname(__file__), 'mesh.glb')) mesh = importer.mesh('Non-indexed mesh') self.assertEqual(mesh.primitive, MeshPrimitive.TRIANGLES) def test_mesh_by_name_not_found(self): - importer = trade.ImporterManager().load_and_instantiate('CgltfImporter') + importer = trade.ImporterManager().load_and_instantiate('GltfImporter') importer.open_file(os.path.join(os.path.dirname(__file__), 'mesh.glb')) with self.assertRaises(KeyError): importer.mesh('Nonexistent') def test_mesh_by_name_level_oob(self): - importer = trade.ImporterManager().load_and_instantiate('CgltfImporter') + importer = trade.ImporterManager().load_and_instantiate('GltfImporter') importer.open_file(os.path.join(os.path.dirname(__file__), 'mesh.glb')) with self.assertRaises(IndexError): @@ -322,7 +322,7 @@ class ImageConverter(unittest.TestCase): class SceneConverter(unittest.TestCase): def test_mesh(self): - importer = trade.ImporterManager().load_and_instantiate('CgltfImporter') + importer = trade.ImporterManager().load_and_instantiate('GltfImporter') importer.open_file(os.path.join(os.path.dirname(__file__), 'mesh.glb')) mesh = importer.mesh(0) @@ -333,7 +333,7 @@ class SceneConverter(unittest.TestCase): self.assertTrue(os.path.exists(os.path.join(tmp, "mesh.ply"))) def test_mesh_failed(self): - importer = trade.ImporterManager().load_and_instantiate('CgltfImporter') + importer = trade.ImporterManager().load_and_instantiate('GltfImporter') importer.open_file(os.path.join(os.path.dirname(__file__), 'mesh.glb')) mesh = importer.mesh(0)