| 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 an example that demonstrates the three texture | |
| 6 // wrap modes available on 2D textures. | |
| 7 | |
| 8 #include "gpu/demos/framework/demo_factory.h" | |
| 9 #include "gpu/demos/gles2_book/example.h" | |
| 10 #include "third_party/gles2_book/Chapter_9/TextureWrap/TextureWrap.h" | |
| 11 | |
| 12 namespace gpu { | |
| 13 namespace demos { | |
| 14 | |
| 15 namespace gles2_book { | |
| 16 class TextureWrap : public Example<TWUserData> { | |
| 17 public: | |
| 18 TextureWrap() { | |
| 19 RegisterCallbacks(twInit, NULL, twDraw, twShutDown); | |
| 20 } | |
| 21 | |
| 22 const wchar_t* Title() const { | |
| 23 return L"Texture Wrap"; | |
| 24 } | |
| 25 }; | |
| 26 } // namespace gles2_book | |
| 27 | |
| 28 Demo* CreateDemo() { | |
| 29 return new gles2_book::TextureWrap(); | |
| 30 } | |
| 31 | |
| 32 } // namespace demos | |
| 33 } // namespace gpu | |
| OLD | NEW |