~glmark2-dev/glmark2/jellyfish

« back to all changes in this revision

Viewing changes to src/scene-jellyfish.cpp

  • Committer: Jesse Barker
  • Date: 2012-07-02 18:37:38 UTC
  • Revision ID: jesse.barker@linaro.org-20120702183738-f9d9lpz719s6ul37
SceneJellyfish: A couple of small tweaks to get the geometry rendering and the
sense of time somewhat smoothed out.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
 
59
59
    // Set up our private object that does all of the lifting
60
60
    priv_ = new JellyfishPrivate();
61
 
    priv_->initialize();
 
61
    priv_->initialize(startTime_);
62
62
}
63
63
 
64
64
void
72
72
SceneJellyfish::update()
73
73
{
74
74
    Scene::update();
 
75
    double elapsed_time = lastUpdateTime_ - startTime_;
75
76
    priv_->update_viewport(LibMatrix::vec2(canvas_.width(), canvas_.height()));
76
 
    priv_->update_time();
 
77
    priv_->update_time(elapsed_time);
77
78
}
78
79
 
79
80
void