|
| | pixel_map () noexcept |
| | Construct an empty pixel-map.
|
| |
| | pixel_map (T *pixels, ssize_t width, ssize_t height, ssize_t stride) noexcept |
| | Construct an pixel-map from memory received from an API.
|
| |
| | pixel_map (T *pixels, ssize_t width, ssize_t height) noexcept |
| | Construct an pixel-map from memory received from an API.
|
| |
| | pixel_map (ssize_t width, ssize_t height, ssize_t stride) noexcept |
| | Construct an pixel-map from memory received from an API.
|
| |
| | pixel_map (ssize_t width, ssize_t height) noexcept |
| | Construct an pixel-map from memory received from an API.
|
| |
| | pixel_map (pixel_map const &other)=delete |
| | Disallowing copying so that life-time of selfAllocated pixels is easy to understand.
|
| |
|
pixel_map | copy () const noexcept |
| |
|
| pixel_map (pixel_map &&other) noexcept |
| |
|
| operator bool () const noexcept |
| |
|
ssize_t | width () const noexcept |
| |
|
ssize_t | height () const noexcept |
| |
|
ssize_t | stride () const noexcept |
| |
| pixel_map & | operator= (pixel_map const &other)=delete |
| | Disallowing copying so that life-time of selfAllocated pixels is easy to understand.
|
| |
|
pixel_map & | operator= (pixel_map &&other) noexcept |
| |
|
extent2 | extent () const noexcept |
| |
| pixel_map< T > | submap (ssize_t x, ssize_t y, ssize_t width, ssize_t height) const noexcept |
| | Get a (smaller) view of the map.
|
| |
|
pixel_map< T > | submap (aarectangle rectangle) const noexcept |
| |
|
pixel_row< T > const | operator[] (ssize_t rowNr) const noexcept |
| |
|
pixel_row< T > | operator[] (ssize_t rowNr) noexcept |
| |
|
pixel_row< T > const | at (ssize_t rowNr) const noexcept |
| |
|
pixel_row< T > | at (ssize_t rowNr) noexcept |
| |
template<typename T>
class tt::pixel_map< T >
A 2D canvas of pixels.
This class may either allocate its own memory, or gives access to memory allocated by another API, such as a Vulkan texture.