Skip to main content
gamedev.net
🔒 Locked

glPushClientAttrib

Started by indigox3 Aug 25, 2005 at 2:38 PM 0 replies 1.4k views
Original Post
indigox3
indigox3
This is probably a dumb question but does glPushClientAttrib save which arrays (vertex, normal, etc ) have been enabled with a glEnableClientState? So you could do something like glPushClientAttrib( GL_CLIENT_VERTEX_ARRAY_BIT ) // enable/disable whatever glPopClientAttrib() and at this point have everything back to normal ( before the push )
Kalidor
Kalidor
Quote:
Original post by indigox3
This is probably a dumb question but does glPushClientAttrib save which arrays (vertex, normal, etc ) have been enabled with a glEnableClientState?
So you could do something like

glPushClientAttrib( GL_CLIENT_VERTEX_ARRAY_BIT )

// enable/disable whatever

glPopClientAttrib()

and at this point have everything back to normal ( before the push )
It will reset all vertex array client states you enable. So only GL_VERTEX_ARRAY, GL_NORMAL_ARRAY, etc. that you enable with glEnableClientState. It will NOT reset state that you enable with glEnable.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.