9#ifndef AVARA3D_CUBEIMAGE_H
10#define AVARA3D_CUBEIMAGE_H
31 enum class Face : uint8_t {
51 explicit CubeImage(std::array<std::unique_ptr<Image>, 6> faces);
78 std::array<std::unique_ptr<
Image>, 6> _faces;
82 unsigned _bytesPerPixel;
Owns the six images used as cubemap faces.
CubeImage(std::array< std::unique_ptr< Image >, 6 > faces)
Takes ownership of the six cubemap face images.
unsigned width() const
Returns the common face width in pixels.
unsigned height() const
Returns the common face height in pixels.
Image * face(Face face) const
Returns the Image owned for face.
unsigned bytesPerPixel() const
Returns the common number of bytes per pixel.
Face
Identifies a cubemap face by its outward axis direction.
Owns decoded pixel data and its dimensions.