X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fscreen.h;h=aed042d51ae345b6b0cdd05d8e65c7cccdcb2e8a;hp=2d28db2d734952e901546bead6baa3eb9afc6b43;hb=d272af0f7f981cea9d1024b6a730be73dd22276a;hpb=f71f97f4fd251d02882ace4be3ead033ced434c4 diff --git a/src/screen.h b/src/screen.h index 2d28db2..aed042d 100644 --- a/src/screen.h +++ b/src/screen.h @@ -1,7 +1,7 @@ #ifndef _SCREEN_H #define _SCREEN_H -#include +#include "SDL.h" #include @@ -69,6 +69,12 @@ namespace IPDF double GetLastFrameTimeCPU() const { return m_last_frame_time / SDL_GetPerformanceFrequency(); } // Returns the GPU time (in seconds) it took to render the last completed frame. double GetLastFrameTimeGPU() const; + + void RequestQuit() {m_no_quit_requested = false;} + bool QuitRequested() const {return !m_no_quit_requested;} + + void ShowDebugFont(bool show = true) {m_show_debug_font = show;} + bool DebugFontShown() const {return m_show_debug_font;} private: void ResizeViewport(int width, int height); void DebugFontFlush(); @@ -100,6 +106,8 @@ namespace IPDF int m_debug_font_vertex_head; int m_debug_font_index_head; View * m_view; + bool m_no_quit_requested; + bool m_show_debug_font; }; }