|
HikoGUI
A low latency retained GUI
|
#include <ttauri/GFX/pipeline_image_image.hpp>
Public Types | |
| enum class | State { Uninitialized , Drawing , Uploaded } |
Public Member Functions | |
| image (device_shared *parent, size_t width_in_px, size_t height_in_px, size_t width_in_pages, size_t height_in_pages, std::vector< Page > &&pages) noexcept | |
| image (image &&other) noexcept | |
| image & | operator= (image &&other) noexcept |
| image (image const &other)=delete | |
| image & | operator= (image const &other)=delete |
| aarectangle | index_to_rect (size_t page_index) const noexcept |
| Find the image coordinates of a page in the image. | |
| void | place_vertices (vspan< vertex > &vertices, aarectangle clipping_rectangle, matrix3 transform) |
| void | upload (pixel_map< sfloat_rgba16 > const &image) noexcept |
| Upload image to atlas. | |
Data Fields | |
| std::atomic< State > | state = State::Uninitialized |
| device_shared * | parent |
| size_t | width_in_px |
| The width of the image in pixels. | |
| size_t | height_in_px |
| The height of the image in pixels. | |
| size_t | width_in_pages |
| The width of the image in pages. | |
| size_t | height_in_pages |
| The height of the image in pages. | |
| std::vector< Page > | pages |
This is a image that is uploaded into the texture atlas.
|
noexcept |
Find the image coordinates of a page in the image.
| pageIndex | Index in the pages-vector. |
| void tt::pipeline_image::image::place_vertices | ( | vspan< vertex > & | vertices, |
| aarectangle | clipping_rectangle, | ||
| matrix3 | transform ) |
Place vertices for this image. An image is build out of atlas pages, that need to be individual rendered. A page with the value std::numeric_limits<uint16_t>::max() is not rendered.
|
noexcept |
Upload image to atlas.
| size_t tt::pipeline_image::image::height_in_pages |
The height of the image in pages.
| size_t tt::pipeline_image::image::height_in_px |
The height of the image in pixels.
| size_t tt::pipeline_image::image::width_in_pages |
The width of the image in pages.
| size_t tt::pipeline_image::image::width_in_px |
The width of the image in pixels.