HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
PixelMapCell.hpp
1// Copyright 2020 Pokitec
2// All rights reserved.
3
4#pragma once
5
6#include "TTauri/Cells/ImageCell.hpp"
7#include "TTauri/GUI/PipelineImage_Image.hpp"
8#include "TTauri/Foundation/PixelMap.hpp"
9#include "TTauri/Foundation/R16G16B16A16SFloat.hpp"
10#include "TTauri/Foundation/URL.hpp"
11
12namespace tt {
13
14class PixelMapCell : public ImageCell {
16
17 mutable PipelineImage::Image backing;
18
19public:
22 PixelMapCell(URL const &url);
23
24 void draw(DrawContext const &drawContext, aarect rectangle, Alignment alignment, float middle) const noexcept override;
25};
26
27}
Definition ImageCell.hpp:10
Definition PixelMapCell.hpp:14
void draw(DrawContext const &drawContext, aarect rectangle, Alignment alignment, float middle) const noexcept override
Draw the cell.
Class which represents an axis-aligned rectangle.
Definition aarect.hpp:13
A 2D canvas of pixels.
Definition PixelMap.hpp:83
Definition URL.hpp:45
Draw context for drawing using the TTauri shaders.
Definition DrawContext.hpp:30
This is a image that is uploaded into the texture atlas.
Definition PipelineImage_Image.hpp:31