1

有没有人有一个 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...
  //
}
4

1 回答 1

0

You can create this structure by carefully working with OpenGL ES 2 specification available from Khronos: http://www.khronos.org/opengles/2_X/

Also, interesting place to look for a similar implementation may be Mesa3D library source code.

于 2013-12-08T12:25:43.017 回答