| Index: mojo/examples/sample_app/spinning_cube.h
|
| diff --git a/mojo/examples/sample_app/spinning_cube.h b/mojo/examples/sample_app/spinning_cube.h
|
| index 9cd78b8f899ca8bbe1e7b1ba858dd012b7962a4e..9f7cdc427a687e5365e337139f9c5764acfcc955 100644
|
| --- a/mojo/examples/sample_app/spinning_cube.h
|
| +++ b/mojo/examples/sample_app/spinning_cube.h
|
| @@ -19,6 +19,11 @@ class SpinningCube {
|
|
|
| void Init(uint32_t width, uint32_t height);
|
| void set_direction(int direction) { direction_ = direction; }
|
| + void set_color(float r, float g, float b) {
|
| + color_[0] = r;
|
| + color_[1] = g;
|
| + color_[2] = b;
|
| + }
|
| void SetFlingMultiplier(float drag_distance, float drag_time);
|
| void UpdateForTimeDelta(float delta_time);
|
| void UpdateForDragDistance(float distance);
|
| @@ -37,6 +42,7 @@ class SpinningCube {
|
| scoped_ptr<GLState> state_;
|
| float fling_multiplier_;
|
| int direction_;
|
| + float color_[3];
|
| };
|
|
|
| } // namespace examples
|
|
|