- 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.
// 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.
GLint m_colour_uniform_location;
GraphicsBuffer m_viewport_ubo;
stbtt_bakedchar m_debug_font_rects[96];
GLint m_colour_uniform_location;
GraphicsBuffer m_viewport_ubo;
stbtt_bakedchar m_debug_font_rects[96];
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;