From 07f32ee1293924ffaff96a4c147c1ab590d36551 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sat, 18 Feb 2023 13:05:07 +0100 Subject: [PATCH] include/Spectre/Graphics.h: Adding getDisplay() --- include/Spectre/Graphics.h | 2 ++ source/Graphics/Graphics.cpp | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/include/Spectre/Graphics.h b/include/Spectre/Graphics.h index ceb35fb..ce2e75a 100644 --- a/include/Spectre/Graphics.h +++ b/include/Spectre/Graphics.h @@ -45,6 +45,8 @@ public : GfxDriver* getDriver(); + Display* getDisplay(); + protected : int m_width; diff --git a/source/Graphics/Graphics.cpp b/source/Graphics/Graphics.cpp index 0430e26..ece6e87 100644 --- a/source/Graphics/Graphics.cpp +++ b/source/Graphics/Graphics.cpp @@ -79,4 +79,9 @@ void Graphics::swapBuffers() m_display->swapBuffers(); } +Display* Graphics::getDisplay() +{ + return m_display; +} + } // namespace sp