From 886e766ae6465e958a562ce12ef8558038d7a69c Mon Sep 17 00:00:00 2001 From: Tyler Perkins Date: Tue, 21 Dec 2021 17:07:59 -0500 Subject: [PATCH] Make update and update_texture required functions for panels --- src/panel/panel.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/panel/panel.hpp b/src/panel/panel.hpp index 7d0a70d..0e6e57f 100644 --- a/src/panel/panel.hpp +++ b/src/panel/panel.hpp @@ -30,6 +30,9 @@ namespace dashboard::panel { protected: SDL_Texture* _texture; + + virtual void update() = 0; + virtual void update_texture() = 0; virtual void initTexture() = 0; }; }