Clean up use of transforms in scene graph.
This commit is contained in:
parent
3915a40c96
commit
f26ee2ebc4
37 changed files with 238 additions and 242 deletions
|
@ -3,11 +3,12 @@
|
|||
#include "MaterialNode.h"
|
||||
#include "Color.h"
|
||||
|
||||
class SceneModel;
|
||||
|
||||
class GridNode : public MaterialNode
|
||||
{
|
||||
|
||||
public:
|
||||
GridNode(const Point& location);
|
||||
GridNode(const Transform& transform);
|
||||
|
||||
void setNumX(std::size_t numX);
|
||||
|
||||
|
@ -28,7 +29,10 @@ private:
|
|||
std::size_t mNumberY{5};
|
||||
double mWidth{1};
|
||||
double mHeight{1};
|
||||
|
||||
bool mDataDirty = true;
|
||||
bool mGeometryIsDirty = true;
|
||||
|
||||
std::vector<Color> mData;
|
||||
|
||||
std::unique_ptr<SceneModel> mBackgroundModel;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue