1 // Copyright 2014 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 PPAPI_EXAMPLES_GLES2_SPINNING_CUBE_SPINNING_CUBE_H_
6 #define PPAPI_EXAMPLES_GLES2_SPINNING_CUBE_SPINNING_CUBE_H_
8 #include "ppapi/c/pp_stdint.h"
15 void Init(uint32_t width
, uint32_t height
);
16 void set_direction(int direction
) { direction_
= direction
; }
17 void SetFlingMultiplier(float drag_distance
, float drag_time
);
18 void UpdateForTimeDelta(float delta_time
);
19 void UpdateForDragDistance(float distance
);
22 void OnGLContextLost();
27 // Disallow copy and assign.
28 SpinningCube(const SpinningCube
& other
);
29 SpinningCube
& operator=(const SpinningCube
& other
);
38 float fling_multiplier_
;
42 #endif // PPAPI_EXAMPLES_GLES2_SPINNING_CUBE_SPINNING_CUBE_H_