示例#1
0
  public void init(DrawEnv d) {
    mDraw = d;

    if (mVbo.id() != 0) {
      return;
    }

    mVbo.alloc(mVertBuf.capacity());
    mVbo.init(d);
    mIbo.alloc(mIndBuf.capacity());
    mIbo.init(d);
    d.checkErr();
  }