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 is a simple example that demonstrates generating a mipmap chain | |
6 // and rendering with it. | |
7 | |
8 #include "gpu/demos/gles2_book/example.h" | |
9 #include "third_party/gles2_book/Chapter_9/MipMap2D/MipMap2D.h" | |
10 | |
11 namespace gpu { | |
12 namespace demos { | |
13 namespace gles2_book { | |
14 typedef Example<MMUserData, | |
15 mmInit, | |
16 NoOpUpdateFunc, | |
17 mmDraw, | |
18 mmShutDown> MipMap2D; | |
19 } // namespace gles2_book | |
20 } // namespace demos | |
21 } // namespace gpu | |
22 | |
23 int main(int argc, char *argv[]) { | |
24 gpu::demos::gles2_book::MipMap2D demo; | |
25 CHECK(demo.Init()); | |
26 | |
27 demo.MainLoop(); | |
28 return EXIT_SUCCESS; | |
29 } | |
OLD | NEW |