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

Unified Diff: third_party/gles2_book/Chapter_9/TextureWrap/TextureWrap.h

Issue 552012: Added texture wrap demo.... (Closed) Base URL: svn://chrome-svn/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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/demos/texture_wrap/main.cc ('k') | third_party/gles2_book/Chapter_9/TextureWrap/TextureWrap.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/gles2_book/Chapter_9/TextureWrap/TextureWrap.h
===================================================================
--- third_party/gles2_book/Chapter_9/TextureWrap/TextureWrap.h (revision 0)
+++ third_party/gles2_book/Chapter_9/TextureWrap/TextureWrap.h (revision 0)
@@ -0,0 +1,52 @@
+//
+// 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 TEXTURE_WRAP_H
+#define TEXTURE_WRAP_H
+
+#include "esUtil.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif // __cplusplus
+
+typedef struct
+{
+ // Handle to a program object
+ GLuint programObject;
+
+ // Attribute locations
+ GLint positionLoc;
+ GLint texCoordLoc;
+
+ // Sampler location
+ GLint samplerLoc;
+
+ // Offset location
+ GLint offsetLoc;
+
+ // Texture handle
+ GLuint textureId;
+
+ // Vertex buffer object handle
+ GLuint vboIds[2];
+
+} TWUserData;
+
+extern int twInit ( ESContext *esContext );
+
+extern void twDraw ( ESContext *esContext );
+
+extern void twShutDown ( ESContext *esContext );
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+#endif // TEXTURE_WRAP_H
Property changes on: third_party\gles2_book\Chapter_9\TextureWrap\TextureWrap.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « gpu/demos/texture_wrap/main.cc ('k') | third_party/gles2_book/Chapter_9/TextureWrap/TextureWrap.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698