| 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 draws a sphere with a cubemap image applied. | |
| 6 | |
| 7 #include "gpu/demos/framework/demo_factory.h" | |
| 8 #include "gpu/demos/gles2_book/example.h" | |
| 9 #include "third_party/gles2_book/Chapter_9/Simple_TextureCubemap/Simple_TextureC
ubemap.h" | |
| 10 | |
| 11 namespace gpu { | |
| 12 namespace demos { | |
| 13 | |
| 14 namespace gles2_book { | |
| 15 class SimpleTextureCubemap : public Example<STCUserData> { | |
| 16 public: | |
| 17 SimpleTextureCubemap() { | |
| 18 RegisterCallbacks(stcInit, NULL, stcDraw, stcShutDown); | |
| 19 } | |
| 20 | |
| 21 const wchar_t* Title() const { | |
| 22 return L"Simple Texture Cubemap"; | |
| 23 } | |
| 24 }; | |
| 25 } // namespace gles2_book | |
| 26 | |
| 27 Demo* CreateDemo() { | |
| 28 return new gles2_book::SimpleTextureCubemap(); | |
| 29 } | |
| 30 | |
| 31 } // namespace demos | |
| 32 } // namespace gpu | |
| OLD | NEW |