INNER CODE UNIT · C++

imageData

mosra/magnum-integration · src/Magnum/DartIntegration/ConvertShapeNode.cpp:317

                Containers::Optional<Trade::ImageData2D> imageData = importer->image2D(textureData->image());
                if(!imageData) {
                    Warning{} << "DartIntegration::convertShapeNode(): cannot load texture image, skipping";
                    continue;
                }

                textures[i] = std::move(textureData);
                images[i] = std::move(imageData);
            }
        }

        if(convertTypes & ConvertShapeType::Mesh) {
            shapeData.meshes = Containers::Array<Trade::MeshData>(NoInit, meshes.size());
            for(UnsignedInt m = 0; m < meshes.size(); m++)
                new(&shapeData.meshes[m]) Trade::MeshData{std::move(*meshes[m])};
        }

        if(convertTypes & ConvertShapeType::Material) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…