|
| constexpr | Size () noexcept=default |
| | Constructs a null size. More...
|
| |
|
constexpr | Size (int width) noexcept |
| | Constructs a Size instance with the given width.
|
| |
|
constexpr | Size (int width, int height) noexcept |
| | Constructs a Size instance with the given width and height.
|
| |
|
constexpr | Size (int width, int height, int depth) noexcept |
| | Constructs a Size instance with the given width, height and depth.
|
| |
| constexpr bool | isNull () const noexcept |
| | This property holds if the Size instance is null. More...
|
| |
| constexpr bool | isValid () const noexcept |
| | This property holds if the Size instance is valid. More...
|
| |
| constexpr int | width () const noexcept |
| | Returns the width. More...
|
| |
| constexpr void | setWidth (int w) noexcept |
| | Sets the width. More...
|
| |
| constexpr int | height () const |
| | Returns the height. More...
|
| |
| constexpr void | setHeight (int h) noexcept |
| | Sets the height. More...
|
| |
| constexpr int | depth () const |
| | Returns the height. More...
|
| |
| constexpr void | setDepth (int d) noexcept |
| | Sets the depth. More...
|
| |
Helper class used in Texture constructors.
This class simplifies construction of the Texture instances by encapsulating 1D, 2D and 3D sizes in a single parameter passed to a constructor.
So, the texture can be created as follows.
auto format = TextureFormat::ARGB8_Unorm;
Or, in a more verbose way
auto texture =
Texture(TextureFormat::ARGB8_Unorm,
size);