mesa: added _mesa_VertexAttribIPointer()
authorBrian Paul <brianp@vmware.com>
Wed, 26 May 2010 03:12:24 +0000 (21:12 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 26 May 2010 03:18:33 +0000 (21:18 -0600)
src/mesa/main/varray.c
src/mesa/main/varray.h

index 5f255b39b79eba02c1c1b8b361643e231f559547..853ec177726cdc80c57da5e30325aa938e9305ee 100644 (file)
@@ -710,6 +710,25 @@ _mesa_VertexAttribPointerARB(GLuint index, GLint size, GLenum type,
 #endif
 
 
+/**
+ * New in GL3:
+ * Set an integer-valued vertex attribute array.
+ * Note that these arrays DO NOT alias the conventional GL vertex arrays
+ * (position, normal, color, fog, texcoord, etc).
+ */
+void GLAPIENTRY
+_mesa_VertexAttribIPointer(GLuint index, GLint size, GLenum type,
+                           GLboolean normalized,
+                           GLsizei stride, const GLvoid *ptr)
+{
+   /* NOTE: until we have integer-valued vertex attributes, just
+    * route this through the regular glVertexAttribPointer() function.
+    */
+   _mesa_VertexAttribPointerARB(index, size, type, normalized, stride, ptr);
+}
+
+
+
 void GLAPIENTRY
 _mesa_VertexPointerEXT(GLint size, GLenum type, GLsizei stride,
                        GLsizei count, const GLvoid *ptr)
index b7c3e11674e186989d322e0ee323d39dc4c803ae..66122b76308b67e43a45f8aa4a46e094b90b971b 100644 (file)
@@ -116,6 +116,11 @@ _mesa_VertexAttribPointerARB(GLuint index, GLint size, GLenum type,
                              GLboolean normalized, GLsizei stride,
                              const GLvoid *pointer);
 
+void GLAPIENTRY
+_mesa_VertexAttribIPointer(GLuint index, GLint size, GLenum type,
+                           GLboolean normalized,
+                           GLsizei stride, const GLvoid *ptr);
+
 
 extern void GLAPIENTRY
 _mesa_InterleavedArrays(GLenum format, GLsizei stride, const GLvoid *pointer);