26 if (width == height / 6)
30 else if (width == height * 6)
34 else if (width == (height / 4) * 3)
38 else if (width == (height * 4) / 3)
42 else if (width == height * 2)
46 else if (width == height)
Graphics library interface.
std::uint32_t infer_cube_map_face_width(std::uint32_t width, std::uint32_t height, cube_map_layout layout) noexcept
Infers the width of a cube map face from its dimensons and layout.
cube_map_layout infer_cube_map_layout(std::uint32_t width, std::uint32_t height) noexcept
Infers the layout of a cube map from its dimensions.
cube_map_layout
Cube map layouts.
@ column
Faces are stored consecutively in a single column.
@ spherical
Faces are stored in a spherical projection.
@ horizontal_cross
Faces are stored in a horizontal cross.
@ equirectangular
Faces are stored in an equirectangular projection.
@ vertical_cross
Faces are stored in a vertical cross.
@ row
Faces are stored consecutively in a single row.