Hook up d2d offscreen rendering.
This commit is contained in:
parent
0c84a53643
commit
53a9f7bd15
9 changed files with 130 additions and 58 deletions
|
@ -1,14 +1,14 @@
|
|||
#include "Grid.h"
|
||||
|
||||
template<typename T>
|
||||
Grid<T>::Grid(const Rectangle& bounds)
|
||||
Grid<T>::Grid(const ntk::Rectangle& bounds)
|
||||
: mBounds(bounds)
|
||||
{
|
||||
mValues = std::vector<T>(mNumX*mNumY, T());
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
const Rectangle& Grid<T>::getBounds() const
|
||||
const ntk::Rectangle& Grid<T>::getBounds() const
|
||||
{
|
||||
return mBounds;
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ const std::vector<T>& Grid<T>::getValues() const
|
|||
}
|
||||
|
||||
template<typename T>
|
||||
void Grid<T>::resetBounds(const Rectangle& bounds)
|
||||
void Grid<T>::resetBounds(const ntk::Rectangle& bounds)
|
||||
{
|
||||
mBounds = bounds;
|
||||
mValues = std::vector<T>(mNumX*mNumY, T());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue