Mesa (master): mesa: added _mesa_VertexAttribIPointer()

Brian Paul brianp at kemper.freedesktop.org
Wed May 26 04:00:44 UTC 2010


Module: Mesa
Branch: master
Commit: e00d07cff676422d6c58c93bbbe737d672efa761
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e00d07cff676422d6c58c93bbbe737d672efa761

Author: Brian Paul <brianp at vmware.com>
Date:   Tue May 25 21:12:24 2010 -0600

mesa: added _mesa_VertexAttribIPointer()

---

 src/mesa/main/varray.c |   19 +++++++++++++++++++
 src/mesa/main/varray.h |    5 +++++
 2 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c
index 5f255b3..853ec17 100644
--- a/src/mesa/main/varray.c
+++ b/src/mesa/main/varray.c
@@ -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)
diff --git a/src/mesa/main/varray.h b/src/mesa/main/varray.h
index b7c3e11..66122b7 100644
--- a/src/mesa/main/varray.h
+++ b/src/mesa/main/varray.h
@@ -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);




More information about the mesa-commit mailing list