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

Side by Side Diff: gpu/demos/gles2_book/demo_simple_vertex_shader.cc

Issue 22299002: Reland a portion of r215672. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 months 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 (c) 2010 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 // This is a simple example that draws a rotating cube in perspective
6 // using a vertex shader to transform the object.
7
8 #include "gpu/demos/framework/demo_factory.h"
9 #include "gpu/demos/gles2_book/example.h"
10 #include "third_party/gles2_book/Chapter_8/Simple_VertexShader/Simple_VertexShad er.h"
11
12 namespace gpu {
13 namespace demos {
14
15 namespace gles2_book {
16 class SimpleVertexShader : public Example<SVSUserData> {
17 public:
18 SimpleVertexShader() {
19 RegisterCallbacks(svsInit, svsUpdate, svsDraw, svsShutDown);
20 }
21
22 const wchar_t* Title() const {
23 return L"Simple Vertex Shader";
24 }
25
26 virtual bool IsAnimated() {
27 return true;
28 }
29 };
30 } // namespace gles2_book
31
32 Demo* CreateDemo() {
33 return new gles2_book::SimpleVertexShader();
34 }
35
36 } // namespace demos
37 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/demos/gles2_book/demo_simple_texture_cubemap.cc ('k') | gpu/demos/gles2_book/demo_stencil_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698