X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fscreen.h;h=aed042d51ae345b6b0cdd05d8e65c7cccdcb2e8a;hp=85b3c27ba36799364d558b89e46ac49ea28ea189;hb=888817a67a9d840be66b52811b01eb77f10ff3e6;hpb=55790e6cc129dcac3b3d001c7f5c74c288642123 diff --git a/src/screen.h b/src/screen.h index 85b3c27..aed042d 100644 --- a/src/screen.h +++ b/src/screen.h @@ -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; }; }