Represents the options for rendering a texture.
More...
#include <render_Renderer.hpp>
|
| constexpr | TextureRenderOptions (std::optional< u8 > alpha, std::optional< i32 > width, std::optional< i32 > height, std::optional< float > rot_angle, std::optional< i32 > src_x, std::optional< i32 > src_y) |
| | Creates a new TextureRenderOptions with the specified parameters.
|
| |
| constexpr | TextureRenderOptions () |
| | Creates a new TextureRenderOptions with default parameters (no alpha modifications, no custom width, no custom height, no rotation, no custom source X, no custom source Y).
|
| |
Represents the options for rendering a texture.
◆ TextureRenderOptions() [1/2]
| pu::ui::render::TextureRenderOptions::TextureRenderOptions |
( |
std::optional< u8 > | alpha, |
|
|
std::optional< i32 > | width, |
|
|
std::optional< i32 > | height, |
|
|
std::optional< float > | rot_angle, |
|
|
std::optional< i32 > | src_x, |
|
|
std::optional< i32 > | src_y ) |
|
inlineconstexpr |
Creates a new TextureRenderOptions with the specified parameters.
- Parameters
-
| alpha | The alpha to use for the texture, or nothing to make no alpha modifications. |
| width | The width to use for the texturem or nothing to use the texture's base width. |
| height | The height to use for the texture, or nothing to use the texture's base height. |
| rot_angle | The rotation angle to use for the texture, or nothing to make no rotation. |
| src_x | The source X to use for the texture, or nothing to use the entire texture source (0). |
| src_y | The source Y to use for the texture, or nothing to use the entire texture source (0). |
◆ TextureRenderOptions() [2/2]
| pu::ui::render::TextureRenderOptions::TextureRenderOptions |
( |
| ) |
|
|
inlineconstexpr |
Creates a new TextureRenderOptions with default parameters (no alpha modifications, no custom width, no custom height, no rotation, no custom source X, no custom source Y).
◆ alpha_mod
| i32 pu::ui::render::TextureRenderOptions::alpha_mod |
◆ height
| i32 pu::ui::render::TextureRenderOptions::height |
◆ NoAlpha
| i32 pu::ui::render::TextureRenderOptions::NoAlpha = -1 |
|
staticconstexpr |
◆ NoHeight
| i32 pu::ui::render::TextureRenderOptions::NoHeight = -1 |
|
staticconstexpr |
◆ NoRotation
| float pu::ui::render::TextureRenderOptions::NoRotation = -1.0f |
|
staticconstexpr |
◆ NoSourceX
| i32 pu::ui::render::TextureRenderOptions::NoSourceX = -1 |
|
staticconstexpr |
◆ NoSourceY
| i32 pu::ui::render::TextureRenderOptions::NoSourceY = -1 |
|
staticconstexpr |
◆ NoWidth
| i32 pu::ui::render::TextureRenderOptions::NoWidth = -1 |
|
staticconstexpr |
◆ rot_angle
| float pu::ui::render::TextureRenderOptions::rot_angle |
◆ src_x
| i32 pu::ui::render::TextureRenderOptions::src_x |
◆ src_y
| i32 pu::ui::render::TextureRenderOptions::src_y |
◆ width
| i32 pu::ui::render::TextureRenderOptions::width |
The documentation for this struct was generated from the following file: