Index: third_party/gles2_book/Chapter_11/Stencil_Test/Stencil_Test.h |
=================================================================== |
--- third_party/gles2_book/Chapter_11/Stencil_Test/Stencil_Test.h (revision 0) |
+++ third_party/gles2_book/Chapter_11/Stencil_Test/Stencil_Test.h (revision 0) |
@@ -0,0 +1,45 @@ |
+// |
+// Book: OpenGL(R) ES 2.0 Programming Guide |
+// Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner |
+// ISBN-10: 0321502795 |
+// ISBN-13: 9780321502797 |
+// Publisher: Addison-Wesley Professional |
+// URLs: http://safari.informit.com/9780321563835 |
+// http://www.opengles-book.com |
+// |
+ |
+#ifndef STENCIL_TEST_H |
+#define STENCIL_TEST_H |
+ |
+#include "esUtil.h" |
+ |
+#ifdef __cplusplus |
+extern "C" { |
+#endif // __cplusplus |
+ |
+typedef struct |
+{ |
+ // Handle to a program object |
+ GLuint programObject; |
+ |
+ // Attribute locations |
+ GLint positionLoc; |
+ |
+ // Uniform locations |
+ GLint colorLoc; |
+ |
+ // Vertex buffer object handles |
+ GLuint vboIds[2]; |
+ |
+} STUserData; |
+ |
+extern int stInit ( ESContext *esContext ); |
+ |
+extern void stDraw ( ESContext *esContext ); |
+ |
+extern void stShutDown ( ESContext *esContext ); |
+ |
+#ifdef __cplusplus |
+} |
+#endif // __cplusplus |
+#endif // STENCIL_TEST_H |
Property changes on: third_party\gles2_book\Chapter_11\Stencil_Test\Stencil_Test.h |
___________________________________________________________________ |
Added: svn:eol-style |
+ LF |