Texture Viewer
|
Helper class used in Texture constructors. More...
Public Member Functions | |
constexpr | ArraySize () noexcept |
Constructs a null size. More... | |
constexpr | ArraySize (int levels, int layers=1) noexcept |
Constructs an ArraySize instance with the given levels and layers. | |
constexpr | ArraySize (IsCubemap isCumemap, int levels=1, int layers=1) noexcept |
Constructs an ArraySize instance with the given isCumemap, levels and layers. | |
constexpr bool | isNull () const noexcept |
This property holds if the ArraySize instance is null. More... | |
constexpr bool | isValid () const noexcept |
This property holds if the ArraySize instance is valid. More... | |
constexpr int | faces () const noexcept |
Return the faces count. | |
constexpr int | levels () const noexcept |
Returns the levels count. | |
constexpr void | setLevels (int levels) noexcept |
Sets the levels count. | |
constexpr int | layers () const noexcept |
Returns the layers count. | |
constexpr void | setLayers (int layers) noexcept |
Sets the layers count. | |
Helper class used in Texture constructors.
This class simplifies construction of the Texture instances by encapsulating levels, layers and faces dimensions in a single parameter passed to a constructor.
So, the texture can be created as follows.
|
inlinenoexcept |
|
inlinenoexcept |
This property holds if the ArraySize instance is null.
A null instance has zero faces, levels and layers.
|
inlinenoexcept |
This property holds if the ArraySize instance is valid.
A valid instance has faces, levels and layers greater than zero.