From 582de4df22ee495a0a8d5e8e9f25c33e76a47b59 Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Sat, 24 Oct 2020 18:02:12 +0200 Subject: [PATCH] added getter for the texture --- Window.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Window.hpp b/Window.hpp index c1adb6e..26f7187 100644 --- a/Window.hpp +++ b/Window.hpp @@ -37,6 +37,8 @@ namespace sc { SDL_Window* window() const { return _w.get(); } SDL_Renderer* renderer() const { return _r.get(); } + SDL_Texture* texture() const { return _t.get(); } + void set_size(int w, int h); void update() const;