OLD | NEW |
| (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/gles2_book/example.h" | |
8 #include "third_party/gles2_book/Chapter_11/Stencil_Test/Stencil_Test.h" | |
9 | |
10 namespace gpu { | |
11 namespace demos { | |
12 namespace gles2_book { | |
13 typedef Example<STUserData, | |
14 stInit, | |
15 NoOpUpdateFunc, | |
16 stDraw, | |
17 stShutDown> StencilTest; | |
18 } // namespace gles2_book | |
19 } // namespace demos | |
20 } // namespace gpu | |
21 | |
22 int main(int argc, char *argv[]) { | |
23 gpu::demos::gles2_book::StencilTest demo; | |
24 CHECK(demo.Init()); | |
25 | |
26 demo.MainLoop(); | |
27 return EXIT_SUCCESS; | |
28 } | |
OLD | NEW |