~linaro-graphics-wg/glmark2/demo

« back to all changes in this revision

Viewing changes to src/main-loop.h

  • Committer: Alexandros Frantzis
  • Date: 2012-02-15 15:56:29 UTC
  • Revision ID: alexandros.frantzis@linaro.org-20120215155629-b8dhbqesx3oxmlgn
Scene,MainLoop: Add support for per-scene FPS options.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include "canvas.h"
26
26
#include "benchmark.h"
27
27
#include "text-renderer.h"
 
28
#include "vec.h"
28
29
#include <vector>
29
30
 
30
31
/**
103
104
 
104
105
    virtual void draw();
105
106
    virtual void before_scene_setup();
 
107
    virtual void after_scene_setup();
106
108
 
107
109
protected:
108
110
    void fps_renderer_update_text(unsigned int fps);
 
111
    LibMatrix::vec2 vec2_from_pos_string(const std::string &s);
 
112
 
 
113
    bool show_fps_;
109
114
    TextRenderer *fps_renderer_;
110
115
    unsigned int last_fps_;
111
116
    uint64_t fps_timestamp_;