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

Side by Side Diff: gpu/demos/gles2_book/mip_map_2d.cc

Issue 549159: Hooked all demos to gpu/demos.gyp. Now all demos run as both - standalone exe... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 11 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
« no previous file with comments | « gpu/demos/demos.gyp ('k') | gpu/demos/gles2_book/simple_texture_2d.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
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 is a simple example that demonstrates generating a mipmap chain
6 // and rendering with it.
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/MipMap2D/MipMap2D.h"
11
12 namespace gpu {
13 namespace demos {
14
15 namespace gles2_book {
16 class MipMap2D : public Example<MMUserData> {
17 public:
18 MipMap2D() {
19 RegisterCallbacks(mmInit, NULL, mmDraw, mmShutDown);
20 }
21
22 const wchar_t* Title() const {
23 return L"Mip-Map 2D";
24 }
25 };
26 } // namespace gles2_book
27
28 Demo* CreateDemo() {
29 return new gles2_book::MipMap2D();
30 }
31
32 } // namespace demos
33 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/demos/demos.gyp ('k') | gpu/demos/gles2_book/simple_texture_2d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698