i haven't done any opengl programming before but i understand the idea of the state machine. when i do some drawing in my draw method its changing the color of all my atlas sprites on the last color i used in my draw routine.
how do i preserve the state before i do custom drawing and restore at the end so my sprites aren't corrupted.
i searched and found glPushAttrib where things like current colors can be saved but I don't think that is in openGL ES? I think maybe glIsEnabled could be used?
i'm not doing anything fancy, just setting color and drawing primitives currently