Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
gl:vertex-attrib-pointer should take an integer as the last argument #35
I'm following the great modern OpenGL tutorial at http://www.arcsynthesis.org/gltut/.
If I want to use an integer index into a vertex array from CL, I have to use
The same probably holds for
Since the binding is autogenerated, I'd need to special-case it to somehow not follow
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
It also needs to accept a pointer, since not everyone has recent OpenGL versions, and if possible I'd like to keep support any old code using the old interpretation. Not sure how to efficiently specify that an argument is either a pointer or pointer-sized int for CFFI though.
A possible solution would be:
I can provide a patch that does this in a few days.
If you want to keep the
Both solutions will require changes to the binding generator, though.