renderbug-cpp/lib/Figments/Surface.h

22 lines
451 B
C
Raw Normal View History

2021-03-29 08:10:55 +00:00
#include <FastLED.h>
2019-05-10 05:17:29 +00:00
#include "./Geometry.h"
2021-03-29 08:10:55 +00:00
#include <functional>
2019-05-10 05:17:29 +00:00
class Display;
class Surface {
public:
Surface(Display* dpy, const VirtualCoordinates& start, const VirtualCoordinates& end);
2021-03-29 08:10:55 +00:00
Surface& operator=(const CRGB& color);
Surface& operator+=(const CRGB& color);
2019-05-10 05:17:29 +00:00
2021-03-29 08:10:55 +00:00
void paintWith(std::function<void(CRGB&)> func);
2019-05-10 05:17:29 +00:00
const PhysicalCoordinates start;
const PhysicalCoordinates end;
private:
Display* m_display;
};