tobeythorn
03-18-2009, 05:12 PM
Hi,
I've recently learned that in openGL, glVertexPointer, glNormalPointer, etc, are set for deprecation. The new way of doing things seems to be glVertexAttribPointer. However, I haven't found any examples of its use. From what I understand, it passes attribute variables to the shaders program. Not really sure how to name those variables so that I can use them in my shader.
Have any of you used this yet? Any examples?
Thanks,
-Tobey
I've recently learned that in openGL, glVertexPointer, glNormalPointer, etc, are set for deprecation. The new way of doing things seems to be glVertexAttribPointer. However, I haven't found any examples of its use. From what I understand, it passes attribute variables to the shaders program. Not really sure how to name those variables so that I can use them in my shader.
Have any of you used this yet? Any examples?
Thanks,
-Tobey