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 SIMPLE_TEXTURE_CUBEMAP_H |
| 12 #define SIMPLE_TEXTURE_CUBEMAP_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 normalLoc; |
| 28 |
| 29 // Sampler location |
| 30 GLint samplerLoc; |
| 31 |
| 32 // Texture handle |
| 33 GLuint textureId; |
| 34 |
| 35 // Vertex data |
| 36 int numIndices; |
| 37 GLuint vboIds[3]; |
| 38 } STCUserData; |
| 39 |
| 40 extern int stcInit ( ESContext *esContext ); |
| 41 |
| 42 extern void stcDraw ( ESContext *esContext ); |
| 43 |
| 44 extern void stcShutDown ( ESContext *esContext ); |
| 45 |
| 46 #ifdef __cplusplus |
| 47 } |
| 48 #endif // __cplusplus |
| 49 #endif // SIMPLE_TEXTURE_CUBEMAP_H |
OLD | NEW |