OLD | NEW |
(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 TEXTURE_WRAP_H |
| 12 #define TEXTURE_WRAP_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 GLint texCoordLoc; |
| 28 |
| 29 // Sampler location |
| 30 GLint samplerLoc; |
| 31 |
| 32 // Offset location |
| 33 GLint offsetLoc; |
| 34 |
| 35 // Texture handle |
| 36 GLuint textureId; |
| 37 |
| 38 // Vertex buffer object handle |
| 39 GLuint vboIds[2]; |
| 40 |
| 41 } TWUserData; |
| 42 |
| 43 extern int twInit ( ESContext *esContext ); |
| 44 |
| 45 extern void twDraw ( ESContext *esContext ); |
| 46 |
| 47 extern void twShutDown ( ESContext *esContext ); |
| 48 |
| 49 #ifdef __cplusplus |
| 50 } |
| 51 #endif // __cplusplus |
| 52 #endif // TEXTURE_WRAP_H |
OLD | NEW |