What is the difference between glEnable and glEnableClientState? Every time I need a mode set/unset I have to look at the reference to know which of those will accept it. Os there any general rule which says what modes goes into which one?
What is the difference between glEnable and glEnableClientState? Every time I need a mode
Share
In addition to tibur’s answer, in practice the only use of
glEnableClientStateandglDisableClientStateis for enabling/disabling the builtin fixed-function attribute arrays (likeGL_VERTEX_ARRAY,GL_NORMAL_ARRAY, …). For all other states you useglEnableandglDisable(orglEnableVertexAttribArrayandglDisableVertexAttribArrayfor the generic vertex shader attributes).