OLD | NEW |
1 // | 1 // |
2 // Book: OpenGL(R) ES 2.0 Programming Guide | 2 // Book: OpenGL(R) ES 2.0 Programming Guide |
3 // Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner | 3 // Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner |
4 // ISBN-10: 0321502795 | 4 // ISBN-10: 0321502795 |
5 // ISBN-13: 9780321502797 | 5 // ISBN-13: 9780321502797 |
6 // Publisher: Addison-Wesley Professional | 6 // Publisher: Addison-Wesley Professional |
7 // URLs: http://safari.informit.com/9780321563835 | 7 // URLs: http://safari.informit.com/9780321563835 |
8 // http://www.opengles-book.com | 8 // http://www.opengles-book.com |
9 // | 9 // |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 { | 21 { |
22 // Handle to a program object | 22 // Handle to a program object |
23 GLuint programObject; | 23 GLuint programObject; |
24 | 24 |
25 // Attribute locations | 25 // Attribute locations |
26 GLint positionLoc; | 26 GLint positionLoc; |
27 | 27 |
28 // Uniform locations | 28 // Uniform locations |
29 GLint mvpLoc; | 29 GLint mvpLoc; |
30 | 30 |
31 // Vertex daata | 31 // Vertex data |
32 GLfloat *vertices; | 32 int numIndices; |
33 GLuint *indices; | 33 GLuint vboIds[2]; |
34 int numIndices; | |
35 | 34 |
36 // Rotation angle | 35 // Rotation angle |
37 GLfloat angle; | 36 GLfloat angle; |
38 | 37 |
39 // MVP matrix | 38 // MVP matrix |
40 ESMatrix mvpMatrix; | 39 ESMatrix mvpMatrix; |
41 } SVSUserData; | 40 } SVSUserData; |
42 | 41 |
43 extern int svsInit ( ESContext *esContext ); | 42 extern int svsInit ( ESContext *esContext ); |
44 | 43 |
45 extern void svsUpdate ( ESContext *esContext, float deltaTime ); | 44 extern void svsUpdate ( ESContext *esContext, float deltaTime ); |
46 | 45 |
47 extern void svsDraw ( ESContext *esContext ); | 46 extern void svsDraw ( ESContext *esContext ); |
48 | 47 |
49 extern void svsShutDown ( ESContext *esContext ); | 48 extern void svsShutDown ( ESContext *esContext ); |
50 | 49 |
51 #ifdef __cplusplus | 50 #ifdef __cplusplus |
52 } | 51 } |
53 #endif // __cplusplus | 52 #endif // __cplusplus |
54 #endif // SIMPLE_VERTEX_SHADER_H | 53 #endif // SIMPLE_VERTEX_SHADER_H |
OLD | NEW |