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

Side by Side Diff: gpu/demos/gles2_book/demo_stencil_test.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 example shows various stencil buffer operations.
6
7 #include "gpu/demos/framework/demo_factory.h"
8 #include "gpu/demos/gles2_book/example.h"
9 #include "third_party/gles2_book/Chapter_11/Stencil_Test/Stencil_Test.h"
10
11 namespace gpu {
12 namespace demos {
13
14 namespace gles2_book {
15 class StencilTest : public Example<STUserData> {
16 public:
17 StencilTest() {
18 RegisterCallbacks(stInit, NULL, stDraw, stShutDown);
19 }
20
21 const wchar_t* Title() const {
22 return L"Stencil Test";
23 }
24 };
25 } // namespace gles2_book
26
27 Demo* CreateDemo() {
28 return new gles2_book::StencilTest();
29 }
30
31 } // namespace demos
32 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/demos/gles2_book/demo_simple_vertex_shader.cc ('k') | gpu/demos/gles2_book/demo_texture_wrap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698