Magnum/TextureTools/Atlas.h file

Class Magnum::TextureTools::AtlasLandfill, enum Magnum::TextureTools::AtlasLandfillFlag, enum set Magnum::TextureTools::AtlasLandfillFlags, function Magnum::TextureTools::atlas(), Magnum::TextureTools::atlasArrayPowerOfTwo()

Namespaces

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

Classes

class Magnum::TextureTools::AtlasLandfill new in Git master
Landfill texture atlas packer.

Enums

enum class AtlasLandfillFlag { RotatePortrait = 1 << 0, RotateLandscape = 1 << 1, WidestFirst = 1 << 2, NarrowestFirst = 1 << 3, ReverseDirectionAlways = 1 << 4 } new in Git master
Landfill texture atlas packer behavior flag.

Typedefs

using AtlasLandfillFlags = Containers::EnumSet<AtlasLandfillFlag> new in Git master
Landfill texture atlas packer behavior flags.

Functions

auto operator<<(Debug& output, AtlasLandfillFlag value) -> Debug&
Debug output operator.
auto operator<<(Debug& output, AtlasLandfillFlags value) -> Debug&
Debug output operator.
auto atlas(const Vector2i& atlasSize, const std::vector<Vector2i>& sizes, const Vector2i& padding = {}) -> std::vector<Range2Di> deprecated in Git master
Pack textures into a texture atlas.
auto atlasArrayPowerOfTwo(const Vector2i& layerSize, const Containers::StridedArrayView1D<const Vector2i>& sizes, const Containers::StridedArrayView1D<Vector3i>& offsets) -> Int 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, const Containers::StridedArrayView1D<Vector3i>& offsets) -> Int new in Git master
auto atlasArrayPowerOfTwo(const Vector2i& layerSize, const Containers::StridedArrayView1D<const Vector2i>& sizes) -> Containers::Pair<Int, Containers::Array<Vector3i>> deprecated 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>> deprecated in Git master
auto atlasTextureCoordinateTransformation(const Vector2i& atlasSize, const Vector2i& size, const Vector2i& offset) -> Matrix3 new in Git master
Calculate a texture coordinate transformation matrix for an atlas-packed item.
auto atlasTextureCoordinateTransformationRotatedCounterClockwise(const Vector2i& atlasSize, const Vector2i& size, const Vector2i& offset) -> Matrix3 new in Git master
Calculate a texture coordinate transformation matrix for an atlas-packed item rotated counterclockwise.
auto atlasTextureCoordinateTransformationRotatedClockwise(const Vector2i& atlasSize, const Vector2i& size, const Vector2i& offset) -> Matrix3 new in Git master
Calculate a texture coordinate transformation matrix for an atlas-packed item rotated clockwise.