Sign in to follow this  

Python: glVertexPointer

This topic is 3577 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

glVertexPointer takes size, type, stride, and pointer to the beginning of the array. If you are going to interleave the array, by, say, 3 floats, you would have to make the starting pointer be incremented by 3 * sizeof(float) How is this done in python? In other words, how do I increment a pointer to an array in python? On a related note, how do you specify the stride? Since there isn't a sizeof in python.

Share this post


Link to post
Share on other sites
You should really ask that in a Python forum since the problem is related to what that language/environment can do.

Share this post


Link to post
Share on other sites
Sign in to follow this