| 1244 | } |
| 1245 | |
| 1246 | bool COLLADA2GLTF::Writer::writeImage(const COLLADAFW::Image* colladaImage) { |
| 1247 | const COLLADABU::URI imageUri = colladaImage->getImageURI(); |
| 1248 | COLLADABU::URI resolvedPath = COLLADABU::URI::nativePathToUri(_options->basePath + imageUri.originalStr()); |
| 1249 | GLTF::Image* image = GLTF::Image::load(resolvedPath.toNativePath(COLLADABU::Utils::getSystemType())); |
| 1250 | image->stringId = colladaImage->getOriginalId(); |
| 1251 | _images[colladaImage->getUniqueId()] = image; |
| 1252 | return true; |
| 1253 | } |
| 1254 | |
| 1255 | bool COLLADA2GLTF::Writer::writeLight(const COLLADAFW::Light* colladaLight) { |
| 1256 | GLTF::MaterialCommon::Light* light = new GLTF::MaterialCommon::Light(); |
nothing calls this directly
no outgoing calls
no test coverage detected