Probably over the weekend I'm going to check in some changes related to vertex attributes.

Some of this is precipitated by Michal's changes for the shading language and some by a recent bug report (#6656).

First, the glVertexAttrib*ARB() functions will no longer alias the generic attributes with conventional attributes. For example, glVertexAttrib3fARB(3, ...) is currently equivalent to glColor(...) but after this change, glVertexAttrib3fARB(3, ...) will set the 3rd generic vertex attribute, leaving the current color alone. Note that glVertexAttrib*NV() must alias, however, according to GL_NV_vertex_program.

Aliasing is optional in the GL_ARB_vertex_program extension, but in OpenGL 2.0, aliasing is not optional so this is a direction we need to move in.

Second, at this point all vertex attributes are implemented as GLfloat[4] arrays, except the color index and edge flags attributes. I'd like to do-away with the special-case code for those attributes by moving them into two unused slots in the array of attributes (slots 6 and 7).

The only side-effect is that calling glVertexAttrib*NV([6/7], ...) would set the current color index or current edge flag, and glIndex*(), glEdgeFlag() would set the 6th and 7th NV vertex attributes.

I don't think this is a big deal since: 1) vertex programs aren't used in color-index mode, 2) probaby few/no apps use both GL_NV_vertex_program and edge flags, 3) GL_NV_vertex_program will probably be removed from Mesa in the future.


I'll try not to break anything with my changes, but it's a possibility.

-Brian



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to