Clean up use of transforms in scene graph.

This commit is contained in:
jmsgrogan 2023-01-19 17:37:26 +00:00
parent 3915a40c96
commit f26ee2ebc4
37 changed files with 238 additions and 242 deletions

View file

@ -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;