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

Side by Side Diff: third_party/gles2_book/Chapter_11/Stencil_Test/Stencil_Test.h

Issue 545092: Added stencil-test demo.... (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
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 #ifndef STENCIL_TEST_H
12 #define STENCIL_TEST_H
13
14 #include "esUtil.h"
15
16 #ifdef __cplusplus
17 extern "C" {
18 #endif // __cplusplus
19
20 typedef struct
21 {
22 // Handle to a program object
23 GLuint programObject;
24
25 // Attribute locations
26 GLint positionLoc;
27
28 // Uniform locations
29 GLint colorLoc;
30
31 // Vertex buffer object handles
32 GLuint vboIds[2];
33
34 } STUserData;
35
36 extern int stInit ( ESContext *esContext );
37
38 extern void stDraw ( ESContext *esContext );
39
40 extern void stShutDown ( ESContext *esContext );
41
42 #ifdef __cplusplus
43 }
44 #endif // __cplusplus
45 #endif // STENCIL_TEST_H
OLDNEW
« no previous file with comments | « gpu/demos/stencil_test/main.cc ('k') | third_party/gles2_book/Chapter_11/Stencil_Test/Stencil_Test.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698