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

Side by Side Diff: third_party/gles_book_examples/Chapter_2/Hello_Triangle/Hello_Triangle.h

Issue 465051: Added an application framework for demos. Ported hello-triangle example in Op... (Closed) Base URL: svn://svn.chromium.org/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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 //
2 // Book: OpenGL(R) ES 2.0 Programming Guide
3 // Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner
4 // ISBN-10: 0321502795
5 // ISBN-13: 9780321502797
6 // Publisher: Addison-Wesley Professional
7 // URLs: http://safari.informit.com/9780321563835
8 // http://www.opengles-book.com
9 //
10
11 //
12 // Hello_Triangle.h
13 //
14 // This is a simple example that draws a single triangle with
15 // a minimal vertex/fragment shader. The purpose of this
16 // example is to demonstrate the basic concepts of
17 // OpenGL ES 2.0 rendering.
18
19 #ifndef HELLO_TRIANGLE_H
20 #define HELLO_TRIANGLE_H
21
22 #include "esUtil.h"
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif // __cplusplus
27
28 typedef struct
29 {
30 // Handle to a program object
31 GLuint programObject;
32 // Handle to vbo object
33 GLuint vbo;
34
35 } HTUserData;
36
37 extern int htInit ( ESContext *esContext );
38
39 extern void htDraw ( ESContext *esContext );
40
41 extern void htShutDown ( ESContext *esContext );
42
43 #ifdef __cplusplus
44 }
45 #endif // __cplusplus
46 #endif // HELLO_TRIANGLE_H
OLDNEW
« no previous file with comments | « gpu/demos/hello_triangle/main.cc ('k') | third_party/gles_book_examples/Chapter_2/Hello_Triangle/Hello_Triangle.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698