Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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. | |
| 4 | |
| 5 #ifndef MOJO_EXAMPLES_SAMPLE_APP_SPINNING_CUBE_H_ | |
| 6 #define MOJO_EXAMPLES_SAMPLE_APP_SPINNING_CUBE_H_ | |
| 7 | |
| 8 #include "base/memory/scoped_ptr.h" | |
| 9 | |
| 10 namespace gpu { | |
| 11 namespace gles2 { | |
| 12 class GLES2Interface; | |
| 13 } | |
| 14 } | |
| 15 | |
| 16 namespace mojo { | |
| 17 namespace examples { | |
| 18 | |
| 19 class SpinningCube { | |
| 20 public: | |
| 21 explicit SpinningCube(gpu::gles2::GLES2Interface* gl, | |
| 22 int width, | |
| 23 int height); | |
| 24 virtual ~SpinningCube(); | |
| 25 | |
| 26 void Update(float delta_time); | |
| 27 void Draw(); | |
|
jamesr
2013/11/06 01:42:45
what do you expect will call these functions?
abarth-chromium
2013/11/06 02:25:10
Probably something in sample_app.cc. Once we have
| |
| 28 | |
| 29 private: | |
| 30 class GLState; | |
| 31 | |
| 32 void Initialize(); | |
| 33 | |
| 34 gpu::gles2::GLES2Interface* gl_; | |
|
jamesr
2013/11/06 01:42:45
does this have some sort of ownership stake in the
abarth-chromium
2013/11/06 02:25:10
We're probably going to end up calling static C fu
| |
| 35 int width_; | |
| 36 int height_; | |
| 37 | |
| 38 scoped_ptr<GLState> state_; | |
| 39 }; | |
| 40 | |
| 41 } // namespace examples | |
| 42 } // namespace mojo | |
| 43 | |
| 44 #endif // MOJO_EXAMPLES_SAMPLE_APP_SPINNING_CUBE_H_ | |
| OLD | NEW |