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

Side by Side Diff: third_party/gles_book_examples/Chapter_8/Simple_VertexShader/Simple_VertexShader.h

Issue 543002: Renamed gles_book_examples to gles2_book to make it shorter and more correct.... (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
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 SIMPLE_VERTEX_SHADER_H
12 #define SIMPLE_VERTEX_SHADER_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 mvpLoc;
30
31 // Vertex daata
32 GLfloat *vertices;
33 GLuint *indices;
34 int numIndices;
35
36 // Rotation angle
37 GLfloat angle;
38
39 // MVP matrix
40 ESMatrix mvpMatrix;
41 } SVSUserData;
42
43 extern int svsInit ( ESContext *esContext );
44
45 extern void svsUpdate ( ESContext *esContext, float deltaTime );
46
47 extern void svsDraw ( ESContext *esContext );
48
49 extern void svsShutDown ( ESContext *esContext );
50
51 #ifdef __cplusplus
52 }
53 #endif // __cplusplus
54 #endif // SIMPLE_VERTEX_SHADER_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698