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