Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: mojo/examples/sample_app/spinning_cube.h

Issue 61423003: Add a SpinningCube to Mojo's sample_app (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698