stuff-from-scratch/src/graphics/AbstractPainter.h

21 lines
369 B
C
Raw Normal View History

2022-11-14 11:19:51 +00:00
#pragma once
class DrawingContext;
class AbstractPainter
{
public:
2023-01-05 12:06:17 +00:00
AbstractPainter(DrawingContext* context)
: mDrawingContext(context)
{
}
2022-11-14 11:19:51 +00:00
virtual ~AbstractPainter() = default;
2023-01-05 12:06:17 +00:00
virtual void paint() = 0;
virtual bool supportsGeometryPrimitives() const { return false; };
2023-01-05 12:06:17 +00:00
protected:
DrawingContext* mDrawingContext{ nullptr };
2022-11-14 11:19:51 +00:00
};