git.ucc.asn.au
/
ipdf
/
code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More broken quadtree monstrosity.
[ipdf/code.git]
/
src
/
screen.h
diff --git
a/src/screen.h
b/src/screen.h
index
85b3c27
..
aed042d
100644
(file)
--- 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;
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();
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;
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;
};
}
};
}
UCC
git Repository :: git.ucc.asn.au