- typedef std::function<void(int x, int y, int button, int wheel)> MouseHandler;
+ typedef void(*MouseHandler)(int x, int y, int button, int wheel, Screen * scr, View * view);
void RenderPixels(int x, int y, int w, int h, uint8_t * pixels) const;
void RenderPixels(int x, int y, int w, int h, uint8_t * pixels) const;
// Returns the CPU time (in seconds) it took to render the last completed frame.
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;
// Returns the CPU time (in seconds) it took to render the last completed frame.
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;}
GraphicsBuffer m_debug_font_indices;
int m_debug_font_vertex_head;
int m_debug_font_index_head;
GraphicsBuffer m_debug_font_indices;
int m_debug_font_vertex_head;
int m_debug_font_index_head;