1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef MOJO_EXAMPLES_SAMPLE_APP_SPINNING_CUBE_H_
6 #define MOJO_EXAMPLES_SAMPLE_APP_SPINNING_CUBE_H_
10 #include "base/memory/scoped_ptr.h"
19 void Init(uint32_t width, uint32_t height);
20 void set_direction(int direction) { direction_ = direction; }
21 void set_color(float r, float g, float b) {
26 void SetFlingMultiplier(float drag_distance, float drag_time);
27 void UpdateForTimeDelta(float delta_time);
28 void UpdateForDragDistance(float distance);
31 void OnGLContextLost();
41 scoped_ptr<GLState> state_;
42 float fling_multiplier_;
47 } // namespace examples
49 #endif // MOJO_EXAMPLES_SAMPLE_APP_SPINNING_CUBE_H_