From c3935312c4966a4775a45ec405e59ea874c0f95d Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Sun, 15 Nov 2020 13:14:27 +0100 Subject: [PATCH] changed draw_frame() into separate update() and render() functions --- src/ScreensaverPlugin.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ScreensaverPlugin.hpp b/src/ScreensaverPlugin.hpp index e1a0099..8f77403 100644 --- a/src/ScreensaverPlugin.hpp +++ b/src/ScreensaverPlugin.hpp @@ -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};