|
| | pixel_map () noexcept |
| | Construct an empty pixel-map.
|
| |
| | pixel_map (T *pixels, std::size_t width, std::size_t height, std::size_t stride) noexcept |
| | Construct an pixel-map from memory received from an API.
|
| |
| | pixel_map (T *pixels, std::size_t width, std::size_t height) noexcept |
| | Construct an pixel-map from memory received from an API.
|
| |
| | pixel_map (std::size_t width, std::size_t height, std::size_t stride) noexcept |
| | Construct an pixel-map without a memory association.
|
| |
| | pixel_map (std::size_t width, std::size_t height) noexcept |
| | Construct an pixel-map without a memory association.
|
| |
| | pixel_map (pixel_map const &other) noexcept |
| | Copy constructor of other.
|
| |
|
| pixel_map (pixel_map &&other) noexcept |
| |
|
| operator bool () const noexcept |
| |
|
std::size_t | width () const noexcept |
| |
|
std::size_t | height () const noexcept |
| |
|
std::size_t | stride () const noexcept |
| |
| pixel_map & | operator= (pixel_map const &other) |
| | 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 | submap (std::size_t x, std::size_t y, std::size_t width, std::size_t height) const noexcept |
| | Get a (smaller) view of the map.
|
| |
|
pixel_map | submap (aarectangle rectangle) const noexcept |
| |
|
pixel_row< T > const | operator[] (std::size_t rowNr) const noexcept |
| |
|
pixel_row< T > | operator[] (std::size_t rowNr) noexcept |
| |
|
pixel_row< T > const | at (std::size_t rowNr) const noexcept |
| |
|
pixel_row< T > | at (std::size_t rowNr) noexcept |
| |
template<
typename T>
class v1::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.