Question over glEnable

Hi every one

I have questions about using glEnable and glDisable

  1. Do use of them cost performance?

  2. is it beter to call lots of times glEnable and glDisable than using glEnable somewhere in start up??

  3. What is good implementacion. Enable only what are you using at the moment en after words diable every thing or keap some option enabled Like GL_Texture_2d

I am writing simple engine and i was wondering how to draw images to let per Image enable GL_Texture_2d at begin en afterwords disable it or enable it at start up ( but this could affect other things )

or beter use glIsEnebled to check if option is enabled/disabled and than act on that??

and what about other enable/disable option

thx

Generally you want to try and batch and order your drawing to minimise state changes as much as possible. However glEnable/Disable isn’t very costly - things like texture binding and vertex or fragment shader binding have much higher overhead and are the ones you really need to worry about.