A structure stores format information about image.
More...
#include <full_image.hpp>
|
uint32_t | width = 0 |
| It is a width of image in pixels.
|
|
uint32_t | height = 0 |
| It is a height of image in pixels.
|
|
std::optional< float > | fov = std::nullopt |
| It is a field of view in degrees.
|
|
camera_orientation | orientation = camera_orientation::deg_270 |
| It is a camera orientation in degrees as enum value (. More...
|
|
bool | require_mirroring = false |
| This value is responsible for mirroring image during rendering.
|
|
int | face_orientation = 0 |
| It is a face orientation in degrees.
|
|
A structure stores format information about image.
Definition at line 85 of file full_image.hpp.
◆ image_format()
bnb::image_format::image_format |
( |
uint32_t |
width, |
|
|
uint32_t |
height, |
|
|
camera_orientation |
orientation, |
|
|
bool |
require_mirroring, |
|
|
int |
face_orientation, |
|
|
std::optional< float > |
fov = std::nullopt |
|
) |
| |
Construct a new image format object with user's params.
- Parameters
-
width | is a width of image in pixels. |
height | is a height of image in pixels. |
orientation | is a camera orientation in degrees as enum value ( |
- See also
- camera_orientation).
- Parameters
-
require_mirroring | is a variable responsible for mirroring image during rendering, i.e. if it is true the image will mirror during rendering and won't in another way. |
face_orientation | is a face orientation in degrees. |
fov | is a field of view in degrees. |
◆ size()
uint32_t bnb::image_format::size |
( |
| ) |
const |
|
noexcept |
- Returns
- Returns the image size in pixels, i.e. width * height.
◆ orientation
It is a camera orientation in degrees as enum value (.
- See also
- camera_orientation).
Definition at line 95 of file full_image.hpp.
The documentation for this struct was generated from the following file: