First opengl/x11/window integration.

This commit is contained in:
James Grogan 2022-11-14 13:07:11 +00:00
parent 7c6a92f4ec
commit cea3d2c39f
30 changed files with 254 additions and 72 deletions

View file

@ -14,11 +14,18 @@ public:
}
virtual ~AbstractVisualNode() = default;
AbstractMesh* getMesh() const
{
return mMesh.get();
}
virtual void updateMesh()
{
}
Image<unsigned char>* getImage() const
{
return mImage.get();
@ -29,7 +36,7 @@ public:
return mLocation;
}
private:
protected:
DiscretePoint mLocation;
std::unique_ptr<AbstractMesh> mMesh;
std::unique_ptr<Image<unsigned char> > mImage;