Sign in to follow this  
Daishim

OpenGL glInterleavedArrays()

Recommended Posts

Using glInterleaved arrays causes OpenGL to enable the specified client states (ie GL_C3F_V3F enables color and vertex arrays), however, once the drawing has finshed, am I right in saying that the states are still active. So if I have a non-interleaved array of vertex and texture coordinates that is drawn after a glInterleavedArray() do I need to manually disable all the states not-used states?

Share this post


Link to post
Share on other sites
Yes the arrays implicitly enabled remain enabled and you are responsible for disabling them.

InterleavedArrays does the equivalent of the corresponding *Pointer and EnableClientState calls. Its really just a convenience function.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this