TextureTools: don't allocate the output in atlasArrayPowerOfTwo().
I mean, yes, it was already SIGNIFICANTLY better than the atlas() that
took a vector and returned one as well, but still. One of the usual use
cases is that there's an array of structs containing both sizes offsets
and the offsets get written back.
The original versions are deprecated as I really don't see any
convenient use case for these, especially given they return a pair and
not just an array.
MAGNUM_TEXTURETOOLS_EXPORTCORRADE_DEPRECATED("use the overload taking offsets as an output view instead")Containers::Pair<Int,Containers::Array<Vector3i>>atlasArrayPowerOfTwo(constVector2i&layerSize,constContainers::StridedArrayView1D<constVector2i>&sizes);
MAGNUM_TEXTURETOOLS_EXPORTCORRADE_DEPRECATED("use the overload taking offsets as an output view instead")Containers::Pair<Int,Containers::Array<Vector3i>>atlasArrayPowerOfTwo(constVector2i&layerSize,std::initializer_list<Vector2i>sizes);
CORRADE_COMPARE(out.str(),Utility::formatString("TextureTools::atlasArrayPowerOfTwo(): expected layer size to be a non-zero power-of-two square, got {}\n",data.message));
CORRADE_COMPARE(out.str(),Utility::formatString("TextureTools::atlasArrayPowerOfTwo(): expected size 2 to be a non-zero power-of-two square not larger than {{256, 256}} but got {}\n",data.message));
}
#ifdef MAGNUM_BUILD_DEPRECATED
voidAtlasTest::arrayPowerOfTwoDeprecated(){
/* Same as arrayPowerOfTwoAllSameElements(), but with the deprecated API */