summaryrefslogtreecommitdiff
path: root/src/mesa/main/varray.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-05-25 21:12:24 -0600
committerBrian Paul <brianp@vmware.com>2010-05-25 21:18:33 -0600
commite00d07cff676422d6c58c93bbbe737d672efa761 (patch)
treea01fd91687ec08e8cb5f2d43aeaf072baf3a3995 /src/mesa/main/varray.c
parente793a24d7ca6ca9b50a716563c8c2abe15c9d1b5 (diff)
mesa: added _mesa_VertexAttribIPointer()
Diffstat (limited to 'src/mesa/main/varray.c')
-rw-r--r--src/mesa/main/varray.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c
index 5f255b39b7..853ec17772 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)