OSDN Git Service

形状データインポート処理の整理
[qtgeoviewer/QtGeoViewer.git] / Src / LibQtGeoViewerCore / Format / DaeLoader.cpp
index eb8f170..2347c2a 100644 (file)
@@ -7,10 +7,15 @@
 
 
 
-bool DaeLoader::Load(SceneMain& scene, const std::string& filename)
+GeomObject* DaeLoader::LoadGeom(SceneMain& scene, const std::string& filename)
 {
        AssimpReader reader(geom::GeomFileFormat::Collada);
-       geom::GeomObject* geom = reader.LoadGeom(scene, filename);
+       return reader.LoadGeom(scene, filename);
+}
+
+bool DaeLoader::Load(SceneMain& scene, const std::string& filename)
+{
+       GeomObject* geom = LoadGeom(scene, filename);
        if (geom == NULL)
                return false;