changed draw_frame() into separate update() and render() functions

This commit is contained in:
Bob Polis 2020-11-15 13:14:27 +01:00
parent 2494f4c5eb
commit c3935312c4

View File

@ -20,7 +20,8 @@ class ScreensaverPlugin {
virtual void setup(cairo_t* context, const cairo_rectangle_t& rect);
virtual int fps() const;
virtual void draw_frame() = 0;
virtual void update() = 0; // advance state for next frame
virtual void render() = 0; // draw next frame
protected:
cairo_t* _c {nullptr};