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

Side by Side Diff: gpu/demos/gles2_book/demo_simple_texture_2d.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 quad with a 2D
6 // texture image. The purpose of this example is to demonstrate
7 // the basics of 2D texturing.
8
9 #include "gpu/demos/framework/demo_factory.h"
10 #include "gpu/demos/gles2_book/example.h"
11 #include "third_party/gles2_book/Chapter_9/Simple_Texture2D/Simple_Texture2D.h"
12
13 namespace gpu {
14 namespace demos {
15
16 namespace gles2_book {
17 class SimpleTexture2D : public Example<STUserData> {
18 public:
19 SimpleTexture2D() {
20 RegisterCallbacks(stInit, NULL, stDraw, stShutDown);
21 }
22
23 const wchar_t* Title() const {
24 return L"Simple Texture 2D";
25 }
26 };
27 } // namespace gles2_book
28
29 Demo* CreateDemo() {
30 return new gles2_book::SimpleTexture2D();
31 }
32
33 } // namespace demos
34 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/demos/gles2_book/demo_mip_map_2d.cc ('k') | gpu/demos/gles2_book/demo_simple_texture_cubemap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698