| Index: examples/spinning_cube/spinning_cube.h
|
| diff --git a/examples/spinning_cube/spinning_cube.h b/examples/spinning_cube/spinning_cube.h
|
| index 12f34d74b93b2207b61e2108dfa60a5c5fddc109..03529701d4609c4099f2b2a9b6e2d6432b5ac81a 100644
|
| --- a/examples/spinning_cube/spinning_cube.h
|
| +++ b/examples/spinning_cube/spinning_cube.h
|
| @@ -16,13 +16,17 @@ class SpinningCube {
|
| SpinningCube();
|
| ~SpinningCube();
|
|
|
| - void Init(uint32_t width, uint32_t height);
|
| + void Init();
|
| 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 set_size(uint32_t width, uint32_t height) {
|
| + width_ = width;
|
| + height_ = height;
|
| + }
|
| void SetFlingMultiplier(float drag_distance, float drag_time);
|
| void UpdateForTimeDelta(float delta_time);
|
| void UpdateForDragDistance(float distance);
|
|
|