Magnum/TextureTools/Atlas.h file

Function Magnum::TextureTools::atlas(), Magnum::TextureTools::atlasArrayPowerOfTwo()

Namespaces

namespace Magnum
Root namespace.
namespace Magnum::TextureTools
Texture tools.

Functions

auto atlas(const Vector2i& atlasSize, const std::vector<Vector2i>& sizes, const Vector2i& padding = Vector2i()) -> std::vector<Range2Di>
Pack textures into texture atlas.
auto atlasArrayPowerOfTwo(const Vector2i& layerSize, Containers::StridedArrayView1D<const Vector2i> sizes) -> Containers::Pair<Int, Containers::Array<Vector3i>> new in Git master
Pack square power-of-two textures into a texture atlas array.
auto atlasArrayPowerOfTwo(const Vector2i& layerSize, std::initializer_list<Vector2i> sizes) -> Containers::Pair<Int, Containers::Array<Vector3i>> new in Git master