A struct containing entire OpenGL ES 2.0 state
===

Has anyone got a C struct that has members describing the entire OpenGL ES 2.0 state? It would look something like that:

    struct OpenGLES20State
    {
      int activeTexture;
      bool scissorEnabled;
      Rectangle scissorRectangle;
      bool stencilEnabled;
      int stencilFunc;
      int stencilOpFail;
      int stencilOpDFail;
      int stencilOpDPass;
      //
      // and a lot more...
      //
    }

