Mesa (master): mesa: VertexAttribPointer comments

Brian Paul brianp at kemper.freedesktop.org
Thu May 21 22:12:23 UTC 2009


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

Author: Brian Paul <brianp at vmware.com>
Date:   Thu May 21 15:55:33 2009 -0600

mesa: VertexAttribPointer comments

---

 src/mesa/main/varray.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c
index ac30538..7879e00 100644
--- a/src/mesa/main/varray.c
+++ b/src/mesa/main/varray.c
@@ -518,6 +518,12 @@ _mesa_PointSizePointer(GLenum type, GLsizei stride, const GLvoid *ptr)
 
 
 #if FEATURE_NV_vertex_program
+/**
+ * Set a vertex attribute array.
+ * Note that these arrays DO alias the conventional GL vertex arrays
+ * (position, normal, color, fog, texcoord, etc).
+ * The generic attribute slots at #16 and above are not touched.
+ */
 void GLAPIENTRY
 _mesa_VertexAttribPointerNV(GLuint index, GLint size, GLenum type,
                             GLsizei stride, const GLvoid *ptr)
@@ -578,6 +584,11 @@ _mesa_VertexAttribPointerNV(GLuint index, GLint size, GLenum type,
 
 
 #if FEATURE_ARB_vertex_program
+/**
+ * Set a generic vertex attribute array.
+ * Note that these arrays DO NOT alias the conventional GL vertex arrays
+ * (position, normal, color, fog, texcoord, etc).
+ */
 void GLAPIENTRY
 _mesa_VertexAttribPointerARB(GLuint index, GLint size, GLenum type,
                              GLboolean normalized,




More information about the mesa-commit mailing list