有没有人有一个 C 结构,它的成员描述了整个 OpenGL ES 2.0 状态?它看起来像这样:
struct OpenGLES20State
{
int activeTexture;
bool scissorEnabled;
Rectangle scissorRectangle;
bool stencilEnabled;
int stencilFunc;
int stencilOpFail;
int stencilOpDFail;
int stencilOpDPass;
//
// and a lot more...
//
}