Hook up d2d offscreen rendering.

This commit is contained in:
jmsgrogan 2023-01-11 17:16:55 +00:00
parent 0c84a53643
commit 53a9f7bd15
9 changed files with 130 additions and 58 deletions

View file

@ -7,10 +7,9 @@ template<typename T>
class Grid
{
public:
Grid(const ntk::Rectangle& bounds);
Grid(const Rectangle& bounds);
const Rectangle& getBounds() const;
const ntk::Rectangle& getBounds() const;
double getXSpacing() const;
@ -18,12 +17,12 @@ public:
const std::vector<T>& getValues() const;
void resetBounds(const Rectangle& bounds);
void resetBounds(const ntk::Rectangle& bounds);
void setValues(const std::vector<std::size_t>& indices, T value);
private:
Rectangle mBounds;
ntk::Rectangle mBounds;
std::vector<T> mValues;
unsigned mNumX{5};
unsigned mNumY{5};