Hook up d2d offscreen rendering.
This commit is contained in:
parent
0c84a53643
commit
53a9f7bd15
9 changed files with 130 additions and 58 deletions
|
@ -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};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue