Adding menus.

This commit is contained in:
Ben Vanik
2015-06-22 23:30:34 -07:00
parent b9c39d1b33
commit 9441808b40
12 changed files with 210 additions and 67 deletions

View File

@@ -176,6 +176,8 @@ class Profiler {
static void OnMouseUp();
static void OnMouseMove(int x, int y);
static void OnMouseWheel(int x, int y, int dy);
static void ToggleDisplay();
static void TogglePause();
// Gets the current display, if any.
static ProfilerDisplay* display() { return display_.get(); }
@@ -184,8 +186,6 @@ class Profiler {
// Presents the profiler to the bound display, if any.
static void Present();
// TODO(benvanik): display mode/pause/etc?
private:
static std::unique_ptr<ProfilerDisplay> display_;
};