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

Side by Side Diff: gpu/demos/simple_texture_2d/main.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/mip_map_2d/main.cc ('k') | gpu/demos/simple_texture_cubemap/main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 draws a quad with a 2D
6 // texture image. The purpose of this example is to demonstrate
7 // the basics of 2D texturing
8
9 #include "gpu/demos/gles2_book/example.h"
10 #include "third_party/gles2_book/Chapter_9/Simple_Texture2D/Simple_Texture2D.h"
11
12 namespace gpu {
13 namespace demos {
14 namespace gles2_book {
15 typedef Example<STUserData,
16 stInit,
17 NoOpUpdateFunc,
18 stDraw,
19 stShutDown> SimpleTexture2D;
20 } // namespace gles2_book
21 } // namespace demos
22 } // namespace gpu
23
24 int main(int argc, char *argv[]) {
25 gpu::demos::gles2_book::SimpleTexture2D demo;
26 CHECK(demo.Init());
27
28 demo.MainLoop();
29 return EXIT_SUCCESS;
30 }
OLDNEW
« no previous file with comments | « gpu/demos/mip_map_2d/main.cc ('k') | gpu/demos/simple_texture_cubemap/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698